Compile Additional PHP in Directadmin
Login to SSH
cd /usr/local/directadmin/custombuild
./build freetype
yum install freetype-devel -y
PHP 5.4
cd /usr/local/directadmin/custombuild
wget http://files.directadmin.com/services/custombuild/php-5.4.45.tar.gz
tar xvf php-5.4.45.tar.gz
cd php-5.4.45
cp ../configure/fastcgi/configure.php54 ./
chmod 755 configure.php54
./configure.php54
make
make install
cd /usr/local/safe-bin
cp /usr/local/directadmin/custombuild/configure/fastcgi/fcgid54.sh ./
chown apache. fcgid54.sh
chmod 555 fcgid54.sh
PHP 5.5
cd /usr/local/directadmin/custombuild
wget http://files.directadmin.com/services/custombuild/php-5.5.38.tar.gz
tar xvf php-5.5.38.tar.gz
cd php-5.5.38
cp ../configure/fastcgi/configure.php55 ./
chmod 755 configure.php55
./configure.php55
make
make install
cd /usr/local/safe-bin
cp /usr/local/directadmin/custombuild/configure/fastcgi/fcgid55.sh ./
chown apache. fcgid55.sh
chmod 555 fcgid55.sh
PHP 7.0
cd /usr/local/directadmin/custombuild
wget http://files.directadmin.com/services/custombuild/php-7.0.28.tar.gz
tar xvf php-7.0.28.tar.gz
cd php-7.0.28
cp ../configure/fastcgi/configure.php70 ./
chmod 755 configure.php70
./configure.php70
make
make install
cd /usr/local/safe-bin
cp /usr/local/directadmin/custombuild/configure/fastcgi/fcgid70.sh ./
chown apache. fcgid70.sh
chmod 555 fcgid70.sh
PHP 7.1
cd /usr/local/directadmin/custombuild
wget http://files.directadmin.com/services/custombuild/php-7.1.15.tar.gz
tar xvf php-7.1.15.tar.gz
cd php-7.1.15
cp ../configure/fastcgi/configure.php71 ./
chmod 755 configure.php71
./configure.php71
make
make install
cd /usr/local/safe-bin
cp /usr/local/directadmin/custombuild/configure/fastcgi/fcgid71.sh ./
chown apache. fcgid71.sh
chmod 555 fcgid71.sh
PHP 7.2
cd /usr/local/directadmin/custombuild
wget http://files.directadmin.com/services/custombuild/php-7.2.3.tar.gz
tar xvf php-7.2.3.tar.gz
cd php-7.2.3
cp ../configure/fastcgi/configure.php72 ./
chmod 755 configure.php72
./configure.php72
make
make install
cd /usr/local/safe-bin
cp /usr/local/directadmin/custombuild/configure/fastcgi/fcgid72.sh ./
chown apache. fcgid72.sh
chmod 555 fcgid72.sh
To add in CUSTOM3 httpd config
|?HAVE_PHP1_FCGI=0|
|?HAVE_PHP2_FCGI=0|
FCGIWrapper '/usr/local/safe-bin/fcgid55.sh /usr/local/directadmin/data/users/USERNAME/php/domain.com.ini -d sendmail_from="[email protected]" -d open_basedir="/home/USERNAME/:/tmp:/var/tmp:/usr/local/lib/php/:/usr/local/php53/lib/php/:/usr/local/php56/lib/php/:/usr/local/php70/lib/php/"-d mail.log="/home/USERNAME/.php/php-mail.log"' .php
<FilesMatch ".php$">
SetHandler fcgid-script
Options +ExecCGI