Docker optimized LAMP stack for Drupal developers

Docker is an open platform for developers and sysadmins to build, ship, and run distributed applications, whether on laptops, data center VMs, or the cloud. With docker, you can setup and run a fully isolated environment with just one command, and this environment will be able to run on any platform where Docker runs. It's trully amazing how fast you can now deploy environments. I just created a complete docker optimized LAMP stack for Drupal developers, based on Debian 7.5 Wheezy, with : Apache/2.2.22 (Debian) on port 80 PHP 5.4.4-14 (/phpinfo.php) MySQL 5.5.37 (root / testenv) Drush 6.2.0 phpMyAdmin 3.4.11.1 (/phpmyadmin) APC 3.1.13 (/apc.php) Memcache 1.4.13 (/memcache.php // memcache / password) Postfix 2.9.6 SVN 1.8.9 GIT 1.7.10.4 ...

How to reset Drupal password for a large number of users

If you need to mass reset the password for some of your Drupal users, drush can help you. The drush command to reset a user's password is: drush upwd username --password="newpassword" Now, let's say you need to reset 150 user's passwords. 1) Create a file named accounts.txt with all usernames you want to reset (one per line) 2) Run the following command: while read line; do drush upwd "$line" --password="newpassword"; done < accounts.txt Enjoy. ...

How to install Apache SOLR 3.6 on Debian 7 or Ubuntu 12.04

I already explained how to install Apache SOLR 4 here and here, but some hosting companies keep using SOLR 3.6 (Acquia for example), so let's explain how to install this version on Debian 7 or Ubuntu 12.04. Installation Install Tomcat 6: apt-get update apt-get install tomcat6 tomcat6-admin Download SOLR 3.6 and extract it: wget http://archive.apache.org/dist/lucene/solr/3.6.0/apache-solr-3.6.0.tgz tar -vxf apache-solr-3.6.0.tgz Now, copy all needed files from the extracted archive: cd apache-solr-3.6.0 cp dist/apache-solr-3.6.0.war /var/lib/tomcat6/webapps/ mv /var/lib/tomcat6/webapps/apache-solr-3.6.0.war /var/lib/tomcat6/webapps/solr.war cp -r example/solr/ /var/lib/tomcat6/ Create solr.xml context file: vi /etc/tomcat6/Catalina/localhost/solr.xml With the content below: <Context ...

How to install multicore Apache SOLR 4.7 on Debian 7 or Ubuntu 12.04

As already stated in another article, Apache SOLR is a very fast and extremely powerful search engine which can easily be connected to your Drupal website (for example) using the Drupal module. Its major features include powerful full-text search, hit highlighting, faceted search, near real-time indexing, dynamic clustering, database integration, rich document (e.g., Word, PDF) handling, and geospatial search. In the previous article I explained how to install a basic Apache SOLR server, in this one we will install a multicore server with the latest SOLR 4.7 version. The installation procedure below works both on Debian 7 and Ubuntu 12.04. Installation For now, the latest version of Apache SOLR is currently 4.7, and we will install it on a Tomcat 6 web server. Install Tomcat 6: apt-get update apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user -y Download ...

How to install Memcache for Drupal

If you host a high traffic website, you probably have already wondered how to improve performances and reduce the load of your web server. To do this, you can start to optimize Apache and MySQL parameters, but at the end, you will always need powerful caching systems. In my opinion, the two important ones for a PHP website are APC (to cache PHP opcode) and Memcache (database oriented). Of course, you can also work with Redis, Varnish, and so on. This tutorial will help you to set up Memcache on a Apache/MySQL Debian 6 server, to use it with Drupal. It may work without troubles on Ubuntu server too. Method On your web server, run the following commands to install everything: apt-get update apt-get install memcached libmemcached-tools apt-get install php5-dev php-pear make apt-get install php5-memcached pecl install memcache-3.0. ...

How to install Apache SOLR 4.4 on Ubuntu 12.04

EDIT: new version with SOLR 4.7 and multicore can be found here : http://www.arborisoft.com/how-to-install-multicore-apache-solr-4-7-on-debian-7/ Apache SOLR is a very fast and extremely powerful search engine which can easily be connected to your Drupal website (for example) using the Drupal module. Its major features include powerful full-text search, hit highlighting, faceted search, near real-time indexing, dynamic clustering, database integration, rich document (e.g., Word, PDF) handling, and geospatial search. Yeah I know it sounds great, but there is still one little thing you should now, it requires a Java web server (Tomcat, Jetty)... Installation on Ubuntu 12.04 When I write this article, the latest version of Apache SOLR is currently 4.4, and we will install it on a Tomcat web server. On Ubuntu 12.04, it's possible to use the command "apt-get install solr-tomcat" to ...