New php5-fpm testing candidate

Today I am pleased to announce an updated php5-fpm debian package.


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.

dpkg --install php5-common_5.2.10.dfsg.1-2ubuntu3~pre2_i386.deb

dkpg --install php5-fpm_5.2.10.dfsg.1-2ubuntu3~pre2_i386.deb


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.

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_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
changed September 4, 2009