New php5-fpm testing candidate
Today I am pleased to announce an updated php5-fpm debian package.
Php5 Sources (github) - php5-5.2.10.dfsg.1-2ubuntu3 - (launchpad) php5-5.2.10.dfsg.1-2ubuntu3
Php-fpm Sources (github) - fpm-0.6.3-dreamcat4 - (launchpad) fpm-0.6.3-dreamcat4
Build command - debian/rules:297
Build log - php5_5.2.10.dfsg.1-2ubuntu3%7Epre12_FULLYBUILT.txt.gz
Status - Compiled: YES, Tested: SOME, Verified: NO
Issues - No known issues at this time
How was it done? - php5 - Packaging fpm for ubuntu 9.10
Bug Page - Ubuntu Bug #397721
Download Link - dreamcat4-ppa
Installation
This fpm binary package was made for ubuntu 9.10 karmic. If you have 9.10, you'll probably experience some kind of version conflict if you already have other php5-* packages installed. The best approach is remove any existing php5* packages and start with a clean system. You may make a note of the package names and go back to them later on. Apt pinning to correct dependency issues. Apt pinning also provides for a way also allow installation on other non-karmic distribution such as jaunty and lenny.
wget https://launchpad.net/~dreamcat4/+archive/ppa/+files/php5-common_5.2.10.dfsg.1-2ubuntu3~pre2_i386.deb
dpkg --install php5-common_5.2.10.dfsg.1-2ubuntu3~pre2_i386.deb
wget https://launchpad.net/~dreamcat4/+archive/ppa/+files/php5-fpm_5.2.10.dfsg.1-2ubuntu3~pre2_i386.deb
dkpg --install php5-fpm_5.2.10.dfsg.1-2ubuntu3~pre2_i386.deb
Configuration
After downloading the 2 PHP packages, just a little bit more to do
aptitude install -y nginx
aptitude install -y php5-xcache
Edit your nginx configuration file like the example below. Sorry, but I have no clue for Apache and the other webservers.
/etc/nginx/sites-available/default:
server {
listen 80;
server_name localhost;
access_log /var/log/nginx/localhost.access.log;
location / {
root /var/www/nginx-default;
index index.html index.htm;
}
location ~ \.php$ {
root /var/www/nginx-default;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SERVER_NAME $http_host;
fastcgi_ignore_client_abort on;
}
}
Allright - its time to get rockin!
/etc/init.d/php5-fpm start
/etc/init.d/nginx start
Package uninstallation / upgrade proceedure
As this is a testing package, it's probably going to be superseded later on by an official release. Here's the recommended method:
# Remove TESTING packages
aptitude remove php5-fpm php5-common
# To install the official package (when available)
aptitude update -y
aptitude install -y php5-fpm