Skip to content
Host4u Limited

Choosing a PHP version and changing PHP settings

Support Portal  »  Knowledgebase  »  Viewing Article
There was a problem loading the comments.
  Print

You can choose which version of PHP your websites run, change common PHP settings and turn PHP extensions on or off yourself in cPanel, with the CloudLinux PHP Selector. You can set one version for the whole account, or a different version for each domain.

Changing the PHP version for the whole account

  1. Log in to cPanel and open Select PHP Version (in the Software section).
  2. On the Account Global Settings tab, choose a version under PHP version.
  3. Check your websites straight away. Older websites and plugins may not work on the newest PHP version; switch back if something breaks.

These settings apply to every domain on the account, except domains you give their own settings (below).

A different PHP version for one domain

  1. In Select PHP Version, open the Per Domain Settings tab.
  2. Turn on Isolation for the domain. This gives the domain its own isolated space on the server and its own PHP settings. To start with, it copies your account settings.
  3. Choose the PHP version and settings for that domain.

Domains without isolation keep using the account settings.

Changing PHP settings

On the Options tab, you can change common settings, including:

Setting What it does
memory_limit Memory each PHP script can use. The default is 128 MB, which is often too low for WordPress or shops
post_max_size and upload_max_filesize The largest form submission and upload
display_errors Shows PHP errors on the page. Turn it on only while fixing a problem
log_errors Writes PHP errors to a log file instead

On the Extensions tab you can turn PHP extensions (modules) on or off, if your software needs one that is not enabled. Reset PHP Extensions to default undoes your changes.

If you need a different PHP version for one folder rather than a whole domain, open a support ticket.


Share via
Did you find this article useful?  

Related Articles


Self-Hosted Help Desk Software by SupportPal