Compiling Extra PHP version (Directadmin)
Compiling another version PHP in Directadmin
'./configure' '--with-curl=/usr/local/lib' '--with-gd' '--enable-gd-native-ttf' '--with-gettext' '--with-jpeg-dir=/usr/local/lib' '--with-freetype-dir=/usr/local/lib' '--with-kerberos' '--with-openssl' '--with-mcrypt' '--with-mhash' '--with-mysql' '--with-mysqli' '--with-pcre-regex=/usr/local' '--with-pdo-mysql' '--with-pear' '--with-png-dir=/usr/local/lib' '--with-xsl' '--with-zlib' '--with-zlib-dir=/usr/local/lib' '--enable-zip' '--with-iconv=/usr/local' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-sockets' '--enable-mbstring' '--enable-exif' '--prefix=/usr/local/php5.6' '--sysconfdir=/usr/local/php5.6/etc' '--bindir=/usr/local/php5.6/bin'make && make install ln -s /usr/local/php5.6/etc/php.ini php.ini#!/bin/bash
if [ -z "$1" ]; then
Please enter php56.sh xxxx ---> where xxx is the userid that you need to run PHP 5.6
exit
fi
USER_ID=$1
mkdir /fcgi
mkdir -p /fcgi/$USER_ID/public_html/
touch /fcgi/$USER_ID/public_html/fcgid.sh
chown -R $USER_ID:$USER_ID /fcgi/$USER_ID
echo '#!/bin/sh' > /fcgi/$USER_ID/public_html/fcgid.sh
echo 'export PHP_FCGI_MAX_REQUESTS=0' >> /fcgi/$USER_ID/public_html/fcgid.sh
echo 'exec /usr/local/php5.6/bin/php-cgi \' >> /fcgi/$USER_ID/public_html/fcgid.sh
echo ' -c /usr/local/php5.6/etc/php.ini -d \' >> /fcgi/$USER_ID/public_html/fcgid.sh
echo ' -d open_basedir=/home/$USER_ID/ \' >> /fcgi/$USER_ID/public_html/fcgid.sh
echo ' -d upload_tmp_dir=/tmp \' >> /fcgi/$USER_ID/public_html/fcgid.sh
echo ' -d session.save_path=/tmp \' >> /fcgi/$USER_ID/public_html/fcgid.sh
echo ' $1' >> /fcgi/$USER_ID/public_html/fcgid.sh
chmod 755 /fcgi/$USER_ID/public_html/fcgid.shLast updated