#!/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?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
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?As we use mod_fcgid, the simplest way - possible to use .htaccess fcgidwrapper to specify the path /usr/local/safe-bin/fcgid4.sh