wget http://in1.php.net/get/php-5.4.25.tar.gz/from/this/mirror
tar –xvzf php-5.4.25.tar.gz
cd php-5.4.25
configure with required options.
./configure --prefix=/usr/local/php-5.4 --enable-cli --enable-cgi --enable-fastcgi --enable-zend-multibyte --enable-bcmath --enable-json --with-bz2 --enable-calendar --with-curl --enable-dbase --enable-exif --enable-ftp --with-gettext --with-gmp --with-iconv --enable-mbstring --with-mcrypt --enable-memory-limit --with-mhash --enable-hash --with-ming --with-ncurses --with-openssl --with-pspell --enable-shmop --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --with-xmlrpc --with-zlib --disable-debug --enable-dba --with-cdb --with-db4 --with-gdbm --with-inifile --enable-dbx --with-freetype-dir=/usr --enable-gd-native-ttf --with-jpeg-dir=/usr --with-png --with-gd --with-readline --with-xsl=shared --enable-soap=shared --enable-pdo=shared --with-sqlite=shared --with-pdo-sqlite=shared --with-pdo-mysql=shared --with-pdo-pgsql=shared --with-mysql=shared --with-mysqli=shared --with-pgsql=shared --enable-mbstr-enc-trans --enable-mbregex --enable-magic-quotes --enable-discard-path --with-pear --enable-safe-mode --enable-track-vars --with-ttf --enable-zip=shared --enable-hts=shared --enable-htscanner=shared --enable-adodb=shared --enable-ew=shared --enable-ea=shared --with-imagick=shared --with-kerberos --with-pdo-odbc-dir=/usr/local/myunixodbc/
Make
Make install
You can verify that the PHP is installed from the command,
/usr/local/php-5.4/bin/php –v
Once complete, add the Handlers.
Go to suPHP config file /etc/suphp/conf/suphp.conf and add the below entry,
[Handlers]
application/x-httpd-php5.4=php:/usr/local/php-5.4/bin/php-cgi
Once that is complete, add the handler to the htaccess file,
<Directory "/usr/local/php5.4/bin">
Allow from All
</Directory>
<Directory /home/accname/public_html>
suPHP_AddHandler application/x-httpd-php5.4
AddType application/x-httpd-php5.3 .php
</Directory>
Done
tar –xvzf php-5.4.25.tar.gz
cd php-5.4.25
configure with required options.
./configure --prefix=/usr/local/php-5.4 --enable-cli --enable-cgi --enable-fastcgi --enable-zend-multibyte --enable-bcmath --enable-json --with-bz2 --enable-calendar --with-curl --enable-dbase --enable-exif --enable-ftp --with-gettext --with-gmp --with-iconv --enable-mbstring --with-mcrypt --enable-memory-limit --with-mhash --enable-hash --with-ming --with-ncurses --with-openssl --with-pspell --enable-shmop --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx --with-xmlrpc --with-zlib --disable-debug --enable-dba --with-cdb --with-db4 --with-gdbm --with-inifile --enable-dbx --with-freetype-dir=/usr --enable-gd-native-ttf --with-jpeg-dir=/usr --with-png --with-gd --with-readline --with-xsl=shared --enable-soap=shared --enable-pdo=shared --with-sqlite=shared --with-pdo-sqlite=shared --with-pdo-mysql=shared --with-pdo-pgsql=shared --with-mysql=shared --with-mysqli=shared --with-pgsql=shared --enable-mbstr-enc-trans --enable-mbregex --enable-magic-quotes --enable-discard-path --with-pear --enable-safe-mode --enable-track-vars --with-ttf --enable-zip=shared --enable-hts=shared --enable-htscanner=shared --enable-adodb=shared --enable-ew=shared --enable-ea=shared --with-imagick=shared --with-kerberos --with-pdo-odbc-dir=/usr/local/myunixodbc/
Make
Make install
You can verify that the PHP is installed from the command,
/usr/local/php-5.4/bin/php –v
Once complete, add the Handlers.
Go to suPHP config file /etc/suphp/conf/suphp.conf and add the below entry,
[Handlers]
application/x-httpd-php5.4=php:/usr/local/php-5.4/bin/php-cgi
Once that is complete, add the handler to the htaccess file,
<Directory "/usr/local/php5.4/bin">
Allow from All
</Directory>
<Directory /home/accname/public_html>
suPHP_AddHandler application/x-httpd-php5.4
AddType application/x-httpd-php5.3 .php
</Directory>
Done