How do I change my version of PHP?

PHP is a widely-used, open source scripting language that is especially suited for website development. PHP code is executed on the web server, and the result is returned to the visitors browser as plain HTML.

PHP forms the basis of practically all of the commonly used website software on the internet, powering applications such as WordPress, Drupal and Joomla.

However, as new versions of PHP are released some of the code that has been used to write these applications is not updated as frequently. Therefore there may be occasions when you may want to use an "older" version of PHP to power your website.

This article explains how to change the default version of PHP which is applied to your entire account.

If you wish to enable different version of PHP for either Subdomains or Addon Domains please use the MultiPHP Manager.

Also certain applications require specific PHP extensions which we do not enable by default. We allow you full control over what extensions are enabled in the particular version of PHP that you select.

For cPanel accounts, the Select PHP Version icon is in the SOFTWARE section.

PHP Version

This will display the native (or default version of PHP) if you have not changed it previously. Please note that you cannot change the default Extensions or Options for the native version of PHP. If you wish to modify these, you would apply that particular version of PHP to your account using the dropdown.

PHP Native Version

To select a version of PHP to apply, click on the dropdown arrow and a complete list of the available versions of PHP will be shown.

PHP Versions

From here you can now see What PHP Extensions are enabled in my version of PHP? and change them accordingly, you can also change the PHP Options used for your default version of PHP.

PHP Extensions

Once you have finished just click "Set as current" to apply that version of PHP as the default for your account.

However, there is one final and important step - you must now follow the instructions for Using MultiPHP Manager to apply versions of PHP to my account.

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

htaccess code examples

Your .htaccess file is commonly used to change the way that people access or view your site. This...

How to run php code in an html page?

If you want to run php code in your html web pages we recommend that you rename them using the...

What does SSI (Server Side Includes) mean?

SSI or Server Side Includes are used to add contents of other files or variables from the server...

What is a shtml file type?

A web file type with the suffix of ".shtml" (rather than the usual ".html" or ".htm") indicates...

Resources (Limits and Usage) - Pay Monthly Hosting plan

Within cPanel you can see the particular Pay Monthly Hosting plan resources that are allocated to...

Powered by WHMCompleteSolution