CHANGING THE PHP VERSION
QTH.com servers allow you to easily change the version of PHP that your hosting account uses. To upgrade or downgrade the PHP version used for your account, follow these steps:
- Log in to cPanel.
- In the Software section of the cPanel home screen, click Select PHP Version.
- To change the PHP version, in the PHP Version list box, select the version that you want to use, and then click Set as current.
- The new PHP version takes effect immediately.
NOTE: You can upgrade or downgrade PHP versions at any time. If you find that a certain version of PHP does not work for you, you can change to the previous version of PHP, or any other version of PHP. The change takes effect immediately (although if there are current PHP processes running, it will wait until all of those processes complete, before switching to the new version of PHP).
CHANGING PHP SETTINGS & EXTENSIONS / MODULES:
In addition to changing the PHP version from cPanel, you can change various PHP settings. You can enable and disable PHP extensions, as well as configuration directives such as allow_url_fopen, auto_prepend_file, display_errors, error_reporting, max_execution_time, memory_limit, upload_max_filesize and many others.
This feature removes the need to configure and maintain custom php.ini files. Instead, you control all PHP settings directly from cPanel.
To change your PHP settings, follow these steps:
- Log in to cPanel.
- In the Software/Services section of the cPanel home screen, click Select PHP Version.
- Select which extensions you want to enable or disable for the current PHP version, then Click Save to save the extension settings at the bottom of the screen OR to reset the extension list to the default configuration, click Use Defaults.
- To change PHP directives / settings, click Switch to PHP Options.
- Click the value next to the setting that you want to modify. Depending on the type of setting, a list box may appear with predefined settings that you can choose. Or, a text box may appear so you can type the value. Make your change, then Click Apply, and then Click Save to save the settings.
- NOTE: When you modify a setting, the value turns yellow to indicate that it has been changed. When you save a modified setting, it turns green to indicate that the value is different from the default value. If you reset a setting to its default value, the color returns to gray.
The new PHP settings take effect immediately.