Experimental: Aegir 2 on Ubuntu 12.04 with apache, php-fpm
These notes describes a possible way of installing Apache with fastcgi using php-fpm. This is just the first step to get it a try, the configuration is experimental.
On a Ubuntu 12.04 box: enable multiverse repo in /etc/apt/sources.list
add the Aegir package "Software Source" repository
echo "deb http://debian.aegirproject.org stable main" | sudo tee -a /etc/apt/sources.list.d/aegir-stable.list
wget -q http://debian.aegirproject.org/key.asc -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install mysql-server
sudo mysql_secure_installation
sudo apt-get install aegir2
sudo apt-get install php5-fpm libapache2-mod-fastcgi
sudo apt-get --purge remove libapache2-mod-php5
Modify /etc/php5/fpm/pool.d/www.conf Make it listen on socket, instead of IP:
;listen = 127.0.0.1:9000
listen = /var/run/php-fpm.sock
create /etc/apache2/conf.d/php-fpm.conf
ScriptAlias /php5.fastcgi /srv/www/fastcgi
FastCGIExternalServer /srv/www/fastcgi -socket /run/php-fpm.sock
AddHandler php-fastcgi .php
Action php-fastcgi /php5.fastcgi virtual
Options FollowSymLinks ExecCGI
<Directory /srv/www/fastcgi>
Options ExecCGI FollowSymLinks
SetHandler fastcgi-script
Order allow,deny
Allow from all
</Directory>