Using PHP 5.3 or Prior

While our shared servers do allow for the selection of multiple PHP versions, we highly recommend only using up-to-date software which supports the use of a current PHP version (more information here). Outdated PHP versions no longer receive security updates, and can open your sites up to major vulnerabilities.

More information on end-of-life PHP versions

Please keep in mind that we do regularly apply patches and updates to the software on the servers. It is the customer's responsibility to ensure that their sites are up-to-date and compatible with current, supported software. Using legacy software that requires end-of-life PHP versions may require periodic maintenance on the customer’s part to account for compatibility issues.

Common issues with sites requiring PHP 5.3 or prior:

  • Sites requiring PHP's 'register_globals' function will need their PHP version manually set to 5.3 or prior; this function was removed from PHP 5.4+ in 2012 for security vulnerabilities. The ‘register_globals’ function was deprecated in PHP 5.3 in 2009, which means it is disabled by default. It will need to be manually enabled in cPanel > 'Select PHP Version' > PHP Options

 

  • A 500 Internal Server Error or ‘missing mysql/mysqli extensions’ warnings may be caused by a 'suPHP_ConfigPath' directive in an .htaccess file, which may be in the /home/username/ or /home/username/public_html directories.

    This directive is no longer supported, and is not compatible with custom PHP versions set via 'Select PHP Version' in cPanel. 'Select PHP Version' should be used for all customizations to PHP versions and settings for an account. The 'suPHP_ConfigPath' directive should be removed or commented out with a '#' character in that .htaccess file, as follows:

    Change this:

    suPHP_ConfigPath /home/username

    to this:

    #suPHP_ConfigPath /home/username

 

  • A site loading a blank page may indicate that an earlier PHP version is required. Try reviewing the software’s error_log file for ‘Deprecated’ warnings and/or setting an older PHP version in ‘Select PHP Version’ in cPanel.
 
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Why have I been blocked on the server?

While there are other situations (for example too many connections) under which an IP may be...

How do I recover a forgotten client area password?

You can access your client area at the following link:...

Trouble Tickets

Support tickets can be submitted at the following...

How do I verify my account?

To verify any changes to the account, the following will be accepted: The 5 digit support pin...

Is ImageMagick available at HostRocket?

Yes. We can install ImageMagick on any/all servers upon request, and most of our servers already...