PHP Multiple Versions (PHP-FPM & FastCGI) Support installation instructions for Ispconfig 3

Source: Internet
Author: User
Keywords ubuntu fastcgi ispconfig php-fpm php Installation
Tags aliyun apt available for client how to html http install

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). is divided into four articles, this is the first article.

1. Preliminary notes

Here we will install the latest PHP 5.3.24 and PHP version 5.4.14 and also show how to build some additional PHP extensions, such as apc,memcache,memcached and Ioncube.

PHP-FPM can be used in Apache and Nginx servers, and FastCGI only for Apache servers.

PHP-FPM and FastCGI are mutually exclusive in PHP 5.3 and 5.4, so we've shown two ways to build PHP (PHP-FPM and FastCGI), but you can compile PHP two times,--ENABLE-FPM and--enable-cgi each time , (must use the unused catalogue, PHP-FPM uses/opt/php-5.3.24,fastcgi to use/opt/phpfcgi-5.3.24).

2. Build PHP 5.3.24 (PHP-FPM)

Download and extract PHP 5.3.24:

mkdir/opt/php-5.3.24 mkdir/usr/local/src/php5-build cd/usr/local/src/php5-build wget http://de.php.net/get/ Php-5.3.24.tar.bz2/from/this/mirror-o php-5.3.24.tar.bz2 tar jxf php-5.3.24.tar.bz2 cd php-5.3.24/

To install the prerequisites for establishing 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

You need to use the last command above to build PHP--with-imap, 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.3.24#

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.