Quantcast
Channel: Blog- Dedicated Server | Windows Dedicated Server India | Web Hosting | Web Development | Data Center India » PHP mySQL Web Hosting
Viewing all articles
Browse latest Browse all 6

Install PHP 4 with Latest cPanel 11.34

0
0

Recently, there has been some questions and confusion which I have encountered in regards to cPanel dropping PHP4 support from EasyApache when updating to the latest cPanel (11.34.X).

PHP4 is still supported and it can be installed without causing conflicts with the current PHP5 installation, as it is added through the EasyApache process, which cPanel provides.

First, install the cPanel custom mod for PHP4 (information available here http://docs.cpanel.net/twiki/bin/view/EasyApache3/CustomMods) and proceed with a recompile. Steps to handle the installation are as below:

cd /var/cpanel/easy/apache/custom_opt_mods/
wget http://docs.cpanel.net/twiki/pub/EasyApache3/CustomMods/custom_opt_mod-PHP449.tar.gz
tar zxvf custom_opt_mod-PHP449.tar.gz
rm -fv custom_opt_mod-PHP449.tar.gz
/scripts/easyapache

Under the Short Options List simply enable: PHP4.4.9 support

Complete the recompile and you can check “php4 -v” once it has been finished to see if it has been added successfully. If it has, it will not have a handler which can be confirmed by running “usr/local/cpanel/bin/rebuild_phpconf –current”.

You MUST ensure to set a handler or PHP4 will not function, and your PHP file will simply be requested as a download in the browser. As PHP5 will be default you will have to add the following to the local .htaccess file for any account you are requiring PHP4 default settings:

AddHandler application/x-httpd-php4 .php

Keep in mind that this is for cPanel servers only, and when running a recompile, it should be done at off-peak hours to minimize disruption on a live server.


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images