Comments on How To Use PHP 4.4.9 (FastCGI) With Apache & ISPConfig 3 (Debian Wheezy)

Since ISPConfig 3.0.5, it is possible to use multiple PHP versions on one server and select the optimal PHP version for a website. If you have some very old websites on your server, they might not work with PHP5, but only with PHP4. This tutorial shows how to build PHP 4.4.9 as a FastCGI version for use with Apache2 on a Debian Wheezy server. This PHP version can be used together with the default PHP (installed through apt) in ISPConfig.

15 Comment(s)

Add comment

Please register in our forum first to comment.

Comments

By:

Don't use PHP 4 on a web server accessible to the internet, though.  There have been no security patches released for over 9000 years now, so it will be exploited.

By: bozo

to patch php-4.4.9 with openssl-1.0.x

http://wg.drive.ne.jp/rose/tips_php449_openssl_101j/

By: Anonymous


hi,

this script does not work for me, stops after /configure command with:

configure: error: libjpeg.(a|so) not found.

when I try to compile the make file: 

/usr/local/src/php4-build/php-4.4.9 # make
make: *** No targets specified and no makefile found.  Stop.

By: Anonymous

Thank you very much.

It works for me fine.

If you have a problem with libjpeg.so, try to find it in your system

# find / -name libjpeg.so

If you use i386 version of your OS, then your path will be /lib/i386-linux-gnu

 

 

 

By: Arie

Good morning, 

 Do you have a kind of uninstall? Right now the shell defaults to 4.4.9 instead of 5.4. 

 Within ispconfig this is not a problem, but when using phpmyadmin I can't change the upload_max settings.. 

By: Nadir

  worked on wheezy.

 I had to install this:

  apt-get install libjpeg8-dev
 apt-get install libpng12-dev
 apt-get install freetype2
 apt-get install libfreetype6-dev
 apt-get install libmcrypt-dev
  apt-get install  libmysqlclient-dev
  apt-get install  libexpat-dev

then my configure command was:
 
 ./configure --prefix=/opt/phpfcgi-4.4.9 --with-pdo-pgsql --with-zlib-dir --with-freetype-dir --enable-mbstring --with-libxml-dir=/usr --enable-soap --enable-calendar --with-mcrypt --with-zlib --with-gd --disable-rpath --enable-inline-optimization --with-zlib --enable-sockets --enable-sysvsem --enable-sysvshm --enable-pcntl --enable-mbregex --with-mhash --enable-zip --with-pcre-regex --with-mysql=/usr --with-mysql-sock=/var/run/mysqld/mysqld.sock --with-jpeg-dir=/usr --with-png-dir=/usr --enable-gd-native-ttf --with-openssl=/usr/local/openssl-0.9.8 --with-openssl-dir=/usr/local/openssl-0.9.8 --with-libdir=/lib/x86_64-linux-gnu --enable-ftp --with-kerberos --with-gettext --with-expat-dir=/usr --enable-fastcgi 
 
 
 

By: Nadir


Addition for the APC part:

 if the phpize command fails, you should add this:

 apt-get install autoconf

 this is required by phpize.

 

By: lonix

I use - 32bit debian 7 (3.2.0-4-686-pae #1 SMP Debian 3.2.65-1+deb7u1 i686 GNU/Linux)

Unfortunately I get for "./configure \ ..." getting this message:configure: error: Kerberos libraries not found.             Check the path given to --with-kerberos (if no path is given, searches in /usr/kerberos, /usr/local and /usr ) All paths are correct, soft links set in all possible directions.the installation of php 5.3 went well. About a tip I can still check I am grateful.

By: Seb

Thank you for this guideline.

By the way, you should never set ttl=0 for APC. It makes it useless.

http://stackoverflow.com/questions/3723316/what-is-causing-unable-to-allocate-memory-for-pool-in-php/12146046#12146046

By: T.J. Janssen

A very nice step-by-step tutorial for newbies. Thank you. How do the "AddHandler" and "Action" statemets have to look in this scenario? Thanks in advance T.J.

By: Domenico

Very usefull, it works for me fine on Debian jessie.

By: Sp4x18

I get this error 

configure: error: Cannot find OpenSSL's

I check the SSL installation, /usr/local/openssl-0.9.8 exists but if i want to ./configure then he give me this error 

Does everyone know this error and have an Solution.. i search in the Web for fixes but nothing help.

By: mrairbrush

 How it works with jessie? Error 500

By: kyferez

Can someone please do this guide for CentOS 7.3?

By: zzzon

patched version of php-4.4.9 supporting openssl 1.1.x + suhosin + code optimization and security error free with gcc9+

performance is the same as php7

https://github.com/ROBERT-MCDOWELL/php-legacy-with-last-openssl