Knowledge Base

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 and reseller hosting accounts that have CageFS enabled: For accounts on servers that have CageFS enabled, you use cPanel to control PHP settings. For more information about how to do this, please see this article.
    To determine if CageFS is enabled for your account, please see this article.
  • Shared hosting and reseller hosting accounts that do not have CageFS enabled: For accounts on servers that do not have CageFS enabled, you use custom php.ini files to control PHP settings. For more information about how to do this, please see this article.
    To determine if CageFS is enabled for your account, please see this article.
  • 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 and reseller hosting accounts that have CageFS enabled: For information about how to change the PHP version for an account that has CageFS enabled, please see this article.
    To determine if CageFS is enabled for your account, please see this article.
  • Shared hosting and reseller hosting accounts that do not have CageFS enabled: For information about how to change the PHP version for an account that does not have CageFS enabled, please see this article.
    To determine if CageFS is enabled for your account, please see this article.
  • 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.