Wind Network (ithov.com) original article: Ispconfig 3.0.5 can use multiple PHP versions on a single server and choose the best PHP version for a website. This feature is available for PHP-FPM (PHP 5.3 and above) and FastCGI (PHP 5.x version). This tutorial describes how to build PHP 5.3 and PHP 5.4来 on the http://www.aliyun.com/zixun/aggregation/13835.html ">ubuntu 13.04 Server" as a php-fpm and FastCGI version. These versions of PHP can be used with the default PHP in Ispconfig (installed via APT). This tutorial is divided into four articles, this is the fourth article.
Continuation of the third "PHP multiple version (PHP-FPM & FastCGI) support for the installation of Ispconfig 3 instructions three" ...
5. Build PHP 5.4.14 (FastCGI)
Download and extract PHP 5.4.14:
mkdir/opt/phpfcgi-5.4.14 mkdir/usr/local/src/php5-build cd/usr/local/src/php5-build wget http://de.php.net/get/ Php-5.4.14.tar.bz2/from/this/mirror-o php-5.4.14.tar.bz2 tar jxf php-5.4.14.tar.bz2 cd php-5.4.14/
Install prerequisite software to establish PHP5:
Apt Install build-essential
Apt BUILD-DEP php5
Apt Install libfcgi-dev libfcgi0ldbl libjpeg62-dbg libmcrypt-dev libssl-dev libc-client2007e Libc-client2007e-dev
Ln-s/USR/LIB/LIBC-CLIENT.A/USR/LIB/X86_64-LINUX-GNU/LIBC-CLIENT.A
If you use--with-imap to build PHP, you need to enter the last command, otherwise./configure will stop with the following error:
Checking for crypt In-lcrypt ... yes
Configure:error:Cannot Find IMAP library (LIBC-CLIENT.A). Please check your c-client installation.
root@server1:/usr/local/src/php5-build/php-5.4.14#
Configure and build PHP 5.4.14 as follows (can be adjusted according to your requirements./configure command):
./configure--help