How to change the PHP version on your server

To change the version of PHP that is set for your domain log into your hosting control panel. If you are not sure how to do that, check this article.

How to change PHP version for your domain on Linux servers?

Firstly, you need to find out the number of the control panel that you use. To do this, check the address bar of your browser when you are on your control panel.

In case you use the control panel 8+, you can change the version of PHP following the steps below:

  • In the main menu section, click Web Options icon on your control panel and then click the domain name you need to modify the PHP version for.

  • Click the “ON” button inside the “PHP” section to disable this mode. This mode includes PHP 5.2 version only.

  • If you need a higher version of PHP 5.2, click on the “OFF” button above the “PHP Advanced” section. After you have clicked on the off icon, in the PHP Advanced menu click on “Add” next after PHP mode.

  • Select the PHP version you need from the list and click “Submit.”

  • After you have selected your needed version of PHP, click on the “Apply” in the Server Configuration column. After the services have been restarted, it may take up to 15 min for the new PHP version is implemented.

If your Linux account’s control panel number is below 8, please turn to support for assistance with PHP version change.

How to change PHP version for your domain on Windows servers?

To modify the PHP version for your domain hosted on a Windows server follow next steps below:

  • Click Web Options icon on your control panel and then click the domain name you need to change the version of PHP for.

  • In the PHP menu, click on the “Edit.”.

  • Choose the required PHP version from the drop-down list and click “Submit.”

  • Selected PHP version will be set for your domain right away.

How to check the version of PHP set for your domain?

File phpinfo.php shows the information about your current PHP configuration. You may find this file in your domain folder. If there is no such file, you may add it yourself. This should be a file with the .php extension and the following code:


Run this file in your browser via the link (where is the name of your domain). This PHP command will display the PHP version and all the PHP parameters set for the site you are visiting.

Was this article helpful?

Yes (8)
No (4)

We're sorry you didn't find this article very helpful. Please help us improve it by leaving your feedback below.