Oliver Weissbarth 3D-Artist, Trainer & Developer

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 archiv
    tar xvjf php-5.5.10.tar.bz2
    rm php-5.5.10.tar.bz2
    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. Install php5.5 
    sudo make install
  6. Enable the default fpm configuration
    sudo mv /usr/local/etc/php-fpm.conf.default /usr/local/etc/php-fpm.conf
  7. 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
    sudo chmod 755 /etc/init.d/php-fpm
  8.  Add php-fpm as a service and start it
    sudo update-rc.d php-fpm defaults
    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.

oliver

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.