PHP

You can add support to your own PHP scripts. Currently, we support 4.x and 5.x.

To add PHP support, do the following:

  1. Select Domain info in the Domain Settings menu.
  2. Click the Edit icon in the Web Service field.
  3. On the Web Service page, scroll down to find the PHP option and turn it on.
  4. If you wish to have the different PHP version than the default one set by the administrator. Choose the PHP version from the drop-down box if you wish to have the different version than the default one set by the administrator. Agree with the charges.
  5. Skip this step if you are using a Windows-based plan. At the top of the Web Service page, click the Apply link for the Server configuration to change. The changes will take effect within 15 minutes.
  6. On the Web Service page, click the Add icon that has appeared next to the PHP option.
  7. On the page that appears, enter an extension for your PHP pages beginning with a dot, for instance .php4. Select the MIME type from the list.
  8. Skip this step if you are using a Windows-based plan. At the top of the Web Service page, click the Apply link for the Server configuration to change. The changes will take effect within 15 minutes.
  9. Starting from H-Sphere 3.1, you have more PHP configuration options. To access them, first disable the PHP resource on the Web Service page and then enable the Advanced PHP resource. You can choose between the following modes, if enabled by your administrator: