Change the PHP version

Last Updated: Sep 29, 2017

Web Hosting supports PHP currently and uses PHP 5.3 by default.

If the default PHP version is different from what is required by your program, you can change the PHP version.

NOTE: After the PHP version is switched, the instance automatically restarts. To switch the PHP version, follow these steps:

  1. Log on to the Web Hosting console.

  2. On the Host List page, find the Web Hosting instance for which you want to change the PHP version and click Manage in the Operation column.


  3. In the left-side navigation pane, click Environment Settings > PHP Version Settings.


  4. Select the required PHP version and click Save.

You can then visit your website to test if the change is successful. If any problem occurs, modify the program or switch the PHP to another version.

Thank you! We've received your feedback.