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:
- Log on to the Web Hosting console.
- 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.
- In the left-side navigation pane, click Environment Settings > PHP Version Settings.
- 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.