Oliver Weissbarth Software Developer, 3D-Graphics Enthusiast

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
    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
  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
    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
    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.

2 thoughts on “Build php5.5 with fpm on ubuntu linux”

  1. I get an error on make

    Makefile:619: recipe for target ‘ext/openssl/openssl.lo’ failed
    make: *** [ext/openssl/openssl.lo] Error 1

    1. Hi Constantine,
      Are you trying to build php5.5 or a more recent version of php? What operating system and version are you using? Please also post the full terminal output.
      Probably the openssl version that is installed on your system is incompatible with this old version of php.
      Have a nice day.

Leave a Reply

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