Install latest Docker version on Debian 7 Wheezy

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. The installation is pretty easy on Ubuntu but can be a little bit tricky on Debian 7. Here is the quickest way to install the latest docker version on Debian 7 Wheezy: wget http://get.docker.io/builds/Linux/x86_64/docker-latest -O /usr/bin/docker curl -o /etc/init.d/docker https://raw.githubusercontent.com/dotcloud/docker/master/contrib/init/sysvinit-debian/docker chmod +x /usr/bin/docker /etc/init.d/docker addgroup docker update-rc.d ...

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 configure MySQL master/slave replication with MHA automatic failover

This post is the first one of a package called "complete infrastructure". Following all posts of this package, you will be able to setup, from scratch, a complete "high available" web infrastructure with : 2 load balancer servers 2 web servers (Drupal in my case) with real-time files synchronization 2 database servers sharing a VIP in a master/slave replication, with MHA automatic failover To find all posts of this package, just click the tag "complete infrastructure" at the end of the page. Overview The purpose of this installation is to have two database servers, in a master/slave replication configuration. All requests from your web servers are always forwarded to the master server, which is replicated in real-time. Most of the time, the slave server will just act as a simple backup, and will not be used by the website. ...

Microsoft Remote Connectivity Analyzer

Another really quick post for tonight :) If you are currently installing an Exchange server, and have a lot of troubles with debugging, Microsoft has a really nice website to help you test your configuration. https://testconnectivity.microsoft.com/ With this tool, you can easily check the connection to your Exchange server from the Internet, and get a lot of usefull information. ...