Is it always possible to install PHP 4.4.7 ??

pppplus

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

Thanks
 

zEitEr

Super Moderator
Joined
Apr 11, 2005
Messages
14,255
Location
GMT +7.00
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.
 

ccto

Verified User
Joined
Feb 24, 2005
Messages
142
Location
Hong Kong
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
 

Mariusz

Verified User
Joined
May 14, 2020
Messages
5
and how to do it manually? how to call this php4 compilation in directadmin? or differently?
 

ccto

Verified User
Joined
Feb 24, 2005
Messages
142
Location
Hong Kong
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
 
Top