Compile php 5.5 with apache prefork support

PHP 5.5 introduces new features and improves several existing ones but to make use of them in distributions such as Debian, CentOS, Ubuntu, Fedora we should compile it because at the moment in which I write this article PHP 5.5 has not been included in official repositories today LibreByte will show how to compile PHP 5.5 on Debian GNU/Linux

This procedure has been tested on Debian GNU/Linux 7 (squeeze), make the necessary modifications so that it fits to your distribution.

Download PHP 5.5

$ wget

Unpack PHP 5.5

$ tar xJvf php-5.5.15.tar.xz

Download and run the script to install dependencies

$ wget --no-check-certificate && 
chmod a+x -c && 

Download script to compile php

$ wget --no-check-certificate && 
chmod a+x -c

Compile php

$./ -a php-5.5.15


$ cd  php-5.5.15 && sudo make install

Deploy configuration file

$ sudo cp -v php.ini-development /etc/php/php.ini

Activate OpCache

$ sudo bash -c 'echo "" > /etc/php/conf.d/20-opcache.ini'

Restart Apache

$ sudo service apache2 restart


$ firefox http://localhost/info.php

Serie(s): How to compile PHP from the source code, 7 (11)

The tutorials here on LibreByte are provided under a free software licence. if you like my work you should consider:
Buy a Hosting/VPS or Dedicated Server at MCKHost

Leave a Reply

Your email address will not be published.

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