Build php5.5 with fpm on ubuntu linux

In this article I’m gonna give a quick guide on building and installing php5.5 with FastCGI Process Manager on Linux. I did test it on Ubuntu 12.04 but it should work on nearly any Linux distribution out there.
 

  1.  Get the source-code
    wget http://de2.php.net/distributions/php-5.5.10.tar.bz2 
  2. Extract and remove the archive
    tar xvjf php-5.5.10.tar.bz2<br> rm php-5.5.10.tar.bz2<br> cd php-5.5.10` 
  3. Configure and create the Makefile
    ./configure --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --with-mysqli --with-mysql --with-openssl --with-curl --with-zlib  
  4. Compile the source-code
    make 
  5. Enable the default fpm configuration
    sudo mv /usr/local/etc/php-fpm.conf.default /usr/local/etc/php-fpm.conf 
  6. Copy the php-fpm executable into /etc/init.d/ and set permissions
    sudo cp sapi/fpm/init.d.php-fpm /etc/init.d/php-fpm<br> sudo chmod 755 /etc/init.d/php-fpm 
  7.  Add php-fpm as a service and start it
    sudo update-rc.d php-fpm defaults<br> sudo service php5-fpm restart  

If you have any problems getting this to work or any further questions please leave a comment or mail me.