Installation usage of PHP 4.4.9 (FastCGI) version in Apache & Ispconfig 3

Source: Internet
Author: User
Keywords apache ispconfig php installation FastCGI)
Tags aliyun apache apache2 debian gnu how to how to do html

Ispconfig version 3.0.5 can use a variety of PHP versions on a single server and can choose the best PHP version for the site. If you have some very old Web sites on your server, they may not work properly with PHP5 and can only be compatible with PHP4. This tutorial describes how to build FastCGI PHP on the http://www.aliyun.com/zixun/aggregation/14417.html ">apache2 Debian wheez Server" How to use the 4.4.9 version. This version of PHP can be used with the Ispconfig default PHP (via apt installation).

Installation usage:

1. Preliminary notes
PHP4 cannot be used for PHP-FPM, so here's just a description of how to build a PHP4 FastCGI version. FastCGI is only available for Apache servers, and it cannot be used for nginx.

2. Build PHP 4.4.9 (FastCGI)

To install the prerequisite software that you need to build from your source code:

Apt Install build-essential

PHP 4.4.9 cannot compile the modern OpenSSL version, so we need to install the older OpenSSL version (0.9.8x) First:

cd/tmp wget http://www.openssl.org/source/openssl-0.9.8x.tar.gz tar xvfz openssl-0.9.8x.tar.gz cd openssl-0.9.8x./ Config--prefix=/usr/local/openssl-0.9.8 make make install

Download and extract PHP 4.4.9:

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

Establish some necessary symbolic connections:

Ln-s/usr/lib/x86_64-linux-gnu/libjpeg.so/usr/lib/ln-s/usr/lib/x86_64-linux-gnu/libpng.so/usr/lib/ln-s/usr/lib/ X86_64-linux-gnu/libmysqlclient.so.18/usr/lib/ln-s/usr/lib/x86_64-linux-gnu/libexpat.so/usr/lib/ln-s/usr/lib/ x86_64-linux-gnu/libmysqlclient.so/usr/lib/libmysqlclient.so Mkdir/usr/kerberos ln-s/usr/lib/x86_64-linux-gnu Usr/kerberos/lib

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.