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.
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.
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 Set a Custom PHP Version for an Existing Host:
How to Set a Custom PHP Version for a New Host:
Note: Any changes to the PHP version will apply to all subdirectories of the selected host.