Is it always possible to install PHP 4.4.7 ??

pppplus

Verified User
Joined
Dec 19, 2008
Messages
528
It's not available on custombuild.
And I have to install a very old website... before to update it to new PHP version.

Thanks
 
PHP 4 might fail to compile in Directadmin.

You might try and find an old CentOS 5 or at least CentOS 6.... though not too much sure it will compile. I'd rather rent a VPS for $2-5 USD /month for this and run the site there, until it's ready for migration to Directadmin.
 
Possible, but not recommended.

We manually compiled PHP 4.4.9 for very legacy customers in both CentOS 6, CentOS 7.

(I had removed openssl and zip modules in default PHP4 configure due to compatibility)

F.Y.I. -
Below is my PHP 4 configure in CentOS 7 (mod_fcgid , MariaDB 10.1.x)
(Test it before live usage)

Code:
#!/bin/sh

# ### Configure Process ###
./configure \
        --prefix=/usr/local/php4 \
        --enable-force-cgi-redirect \
        --enable-fastcgi \
        --with-config-file-path=/usr/local/etc/php4/cgi \
        --with-curl \
        --with-curl-dir=/usr/local/lib \
        --with-dom=/usr/lib \
        --with-gd \
        --with-gd-dir=/usr/local \
        --with-gettext \
        --with-iconv \
        --with-jpeg-dir=/usr/local/lib \
        --with-freetype \
        --with-freetype-dir=/usr/local/lib \
        --with-mcrypt \
        --with-mhash \
        --with-mime-magic \
        --with-mysql=/usr \
        --with-mysqli \
        --with-pear \
        --with-png-dir=/usr/local/lib \
        --with-sqlite=shared --enable-sqlite --enable-sqlite-utf8 --enable-static=sqlite \
        --with-xml \
        --with-zlib \
        --with-zlib-dir=/usr/local/lib \
        --enable-bcmath \
        --enable-calendar \
        --enable-exif \
        --enable-ftp \
        --enable-magic-quotes \
        --enable-sockets \
        --enable-track-vars \
        --enable-mbstring=all \
        --enable-mbregex \
        --enable-memory-limit
 
and how to do it manually? how to call this php4 compilation in directadmin? or differently?
 
In CentOS 6 or CentOS 7, I download PHP 4 tar.gz manually ,
configure it,
compile it,
then add those the script inside /usr/local/safe-bin/fcgid4.sh accordingly
 
Possible, but not recommended.

We manually compiled PHP 4.4.9 for very legacy customers in both CentOS 6, CentOS 7.

(I had removed openssl and zip modules in default PHP4 configure due to compatibility)

F.Y.I. -
Below is my PHP 4 configure in CentOS 7 (mod_fcgid , MariaDB 10.1.x)
(Test it before live usage)

Code:
#!/bin/sh

# ### Configure Process ###
./configure \
        --prefix=/usr/local/php4 \
        --enable-force-cgi-redirect \
        --enable-fastcgi \
        --with-config-file-path=/usr/local/etc/php4/cgi \
        --with-curl \
        --with-curl-dir=/usr/local/lib \
        --with-dom=/usr/lib \
        --with-gd \
        --with-gd-dir=/usr/local \
        --with-gettext \
        --with-iconv \
        --with-jpeg-dir=/usr/local/lib \
        --with-freetype \
        --with-freetype-dir=/usr/local/lib \
        --with-mcrypt \
        --with-mhash \
        --with-mime-magic \
        --with-mysql=/usr \
        --with-mysqli \
        --with-pear \
        --with-png-dir=/usr/local/lib \
        --with-sqlite=shared --enable-sqlite --enable-sqlite-utf8 --enable-static=sqlite \
        --with-xml \
        --with-zlib \
        --with-zlib-dir=/usr/local/lib \
        --enable-bcmath \
        --enable-calendar \
        --enable-exif \
        --enable-ftp \
        --enable-magic-quotes \
        --enable-sockets \
        --enable-track-vars \
        --enable-mbstring=all \
        --enable-mbregex \
        --enable-memory-limit
That's interesting. How did you activate PHP4 so the domains needing it could use it?
 
As we use mod_fcgid, the simplest way - possible to use .htaccess fcgidwrapper to specify the path /usr/local/safe-bin/fcgid4.sh
 
As we use mod_fcgid, the simplest way - possible to use .htaccess fcgidwrapper to specify the path /usr/local/safe-bin/fcgid4.sh
Does DirectAdmin come with a ready-made /usr/local/safe-bin/fcgid4.sh file on Centos 7 or was that file created when you compiled 4.4?
 
Back
Top