An option to modify the PHP version for each host is now available within the Control Panel

December 6, 2019
A new feature in the Web Hosting Control Panel now enables users to easily select their preferred PHP version for their projects with a simple click.

This provides an elevated level of control for both you and your customers over the PHP version used in your web hosting account(s), allowing you to set distinct PHP versions for various hosts. Explore further details about this enhanced functionality in the accompanying post.

What does the new PHP version option entail?

Having control over the PHP settings in your shared hosting account offers tremendous flexibility in managing your websites and applications.

Until now, you had the option to select your preferred PHP version for your entire web hosting account and change it at your convenience with a simple click.

We've consistently supported all stable PHP versions currently in use, including the latest beta releases, to provide users and developers with a wide range of choices for their projects.

Additionally, we've granted advanced users the freedom to specify a custom PHP version for each host within their accounts through a .htaccess file.

To make this feature more user-friendly for all, we've now enabled it in the Control Panel.

Starting today, users can effortlessly set a custom PHP version for each of their hosts with a single click.

The supported PHP versions currently include: PHP 4, PHP 5, PHP 5.3, PHP 5.4, PHP 5.5, PHP 5.6, PHP 7.0, PHP 7.1, PHP 7.2, PHP 7.3, and PHP 7.4.

When is it appropriate to utilize this feature?

While it's generally advisable to use the most recent PHP version available, there may be instances where you're using applications that are not compatible with the latest releases.

So, if you need to have two different applications within your account, each requiring distinct PHP versions, you can easily achieve this by setting custom PHP versions for each respective host.

For instance, you might want to use PHP 5.4 for one part of your account due to legacy applications, while simultaneously installing the latest versions of Drupal or Magento for a new website that demands PHP 7.3.

To accomplish this, simply follow the brief steps outlined below.

How to Modify the PHP Version for Each Host (a Step-by-Step Tutorial)

How to Set a Custom PHP Version for an Existing Host:

  • 1. Log in to your Web Hosting Control Panel.
  • 2. Navigate to the 'Hosted Domains' section.
  • 3. Locate the domain name corresponding to the host for which you wish to set a custom PHP version in the table of domain names.
  • 4. Click on the gear icon labeled 'Edit Domain.'
  • 5. In the pop-up box, click the 'Choose a PHP version' drop-down list and select your preferred PHP version.
  • 6. After making your selection, click the 'Edit Host' button at the bottom of the pop-up box.

How to Set a Custom PHP Version for a New Host:

  • 1. Log in to your Web Hosting Control Panel.
  • 2. Go to the 'Hosted Domains' section.
  • 3. Click the blue 'Host Domain' button located in the top right corner.
  • 4. In the pop-up box, specify the host you want to add.
  • 5. Click on 'Advanced Settings,' and then select your preferred PHP version from the 'Choose a PHP version' drop-down list.
  • 6. The changes you make in both scenarios will take effect immediately for the selected host.
  • 7. You can modify the selected PHP version at any time thereafter.

Note: Any changes to the PHP version will apply to all subdirectories of the selected host.