25th Anniversary Savings | 25% Off Dedicated Servers*Shop Now
25th Anniversary Savings | 25% Off VPS Hosting* †††Shop Now
Limited Inventory: High-Performance AMD-Powered Servers Now Available.* Shop Now >
Dedicated Hosting Deals | From $99/moShop Now

The End of PHP 4

Posted on by Patrick Hawkins | Updated:
Reading Time: 2 minutes
Please note that this article is considered legacy documentation because PHP 4 has reached its end-of-life support.

Back in 2008, all development stopped on PHP 4. Since that time, no features have been added, no bugs have been fixed, and no security holes have been patched up.

After supporting it for years, cPanel recently removed PHP4 as an option from EasyApache. Since Liquid Web relies on cPanel to administer a good number of our servers, we too have stopped fully supporting PHP 4.

While it is in your best interest to move to the most recent version of PHP 5, it may not be possible to do so immediately. cPanel does give us an unsupported way to run PHP 4 in the interim.

Installing cPanel's PHP 4 Module

Running PHP 4.4.9 involves installing a custom module for EasyApache. First, download the module to the proper location:

cd /var/cpanel/easy/apache/custom_opt_mods/
wget http://docs.cpanel.net/twiki/pub/EasyApache/EasyApacheCustomModules/custom_opt_mod-PHP449.tar.gz
tar -zxvf custom_opt_mod-PHP449.tar.gz
rm -f custom_opt_mod-PHP449.tar.gz

To install the module, run an EasyApache as you normally would. PHP 4.4.9 will be a new option in the Short Options list. (If you are not familiar with running EasyApache, it may be best to contact Liquid Web's Heroic Support team for assistance.)

After the installation, check to see that it has been installed:

php -v
php4 -v

You may also need to set the php4 handler:


Remove When Finished

The goal of this unsupported module is to provide a bit of breathing room while code is migrated over to PHP 5. When all your site code is running on PHP 5, be sure to remove PHP 4 from the server. Leaving PHP 4 on your server when it is not needed could open your server up to security vulnerabilities.


Liquid Web's Heroic Support is always available to assist customers with this or any other issue. If you need our assistance please contact us:
Toll Free 1.800.580.4985
International 517.322.0434

About the Author: Patrick Hawkins

Patrick Hawkins is a former Test Engineer and Managed WordPress admin with Liquid Web

Latest Articles

How to Edit the PHP Memory for Your WordPress Site via WP Toolkit

Read Article

What is CGI-Bin and What Does it Do?

Read Article

Top 10 Password Security Standards

Read Article

Top 10 Password Security Standards

Read Article

How to Use the WP Toolkit to Secure and Update WordPress

Read Article