Notice:

We've recently performed some software upgrades to both cPanel and the Client Area that has resulted in some of the KB articles appearing outdated and obsolete. We are working to update and/or remove the affected articles but this may take some time. We appreciate your patience!

How do I change my PHP Version and/or Options

Lithium Hosting supports multiple PHP versions.  You may choose which version you run and have it instantly changed.
First, login to cPanel.  Find the PHP Selector like in the image below. "Select PHP Version"

PHP Selector

Next, choose which Version you'd like to use.  In this example we're using PHP 5.5

PHP Version Selector

Be sure to click "Set as current", this will make your PHP version change effective immediately.
Next we need to enable extensions and set default PHP options.  We've enabled some popular ones, you may enable or disable the ones you need or don't need.

PHP Selector - Extensions

Click save even if you don't make any changes.  This will ensure that all default exensions are enabled for you.
The next step is to adjust the default options for PHP.  Please note, the defaults displayed may not be accurate.

PHP Selector - Options

To change an option from the default value or to ensure the displayed options are actually set correctly, click the option to change it.  Most options are presented as select boxes and you can just choose the option you need.  Others are a text field which require valid input or you could break your site.  Be sure to consult the PHP manual if you are unsure of the proper syntax.

PHP Selector - Options Config

Be sure to click save once you've modified your settings and you'll see the changes are immediate.

If you have any questions or concerns with this article, please submit a support ticket.
  • cpanel, php