How to change PHP settings and versions on managed hosting accounts

This article discusses how to change the PHP settings and version for your account. The methods to do this depend on the type of hosting account that you have.

Changing PHP settings

PHP enables you to change many configuration settings. How you do this, however, depends on the type of hosting account you have:

  • Shared hosting reseller hosting and Managed WordPress accounts that have CageFS enabled: For accounts on servers that have CageFS enabled, you use cPanel or Plesk to control PHP settings.
    • For more information about changing settings in cPanel, please see this article.
    • For more information about changing settings in Plesk, please see this article.
    To determine if CageFS is enabled for your account, please see this article. Please note that all shared and reseller accounts should have CageFS enabled.
  • Managed VPS and Managed Flex Dedicated Servers activated on or after January 16, 2014, or any server that runs PHP as an Apache module: For these servers, you use custom .htaccess files to control PHP settings. For more information about how to do this, please see this article.
  • Managed VPS and Managed Flex Dedicated Servers activated before January 16, 2014: For these servers, you use custom php.ini files to control PHP settings. For more information about how to do this, please see this article.

Changing the PHP version

As with PHP settings, the method to change the PHP version depends on the type of hosting account you have:

  • Shared hosting, reseller hosting and Managed WordPress accounts that have CageFS enabled:
    • For information about changing versions in cPanel, please see this article.
    • For information about changing versions in Plesk, please see this article.
    To determine if CageFS is enabled for your account, please see this article. Please note that all shared and reseller accounts should have CageFS enabled.
  • All Managed VPS and Managed Flex Dedicated server accounts: To change the PHP version for one of these accounts, open a support ticket with our Guru Crew on the Customer Portal at https://my.a2hosting.com. Please include in the ticket which PHP version you would like to use.

    Please note that your server will be unavailable for 15 to 20 minutes while we compile the new PHP version.
Get PHP Hosting

Article Details

  • Product: All managed hosting accounts
  • Level: Beginner

Did you find this article helpful? Then you'll love our support. Experience the A2 Hosting difference today and get a pre-secured, pre-optimized website. Check out our web hosting plans today.