Using PHP Selector to change your PHP version, modify extensions, or change PHP settings
Posted by Brian F., Last modified by Brian F. on 02 May 2022 03:47 PM
|
|
All shared web hosting, semi-dedicated, and reseller hosting plans have full PHP control through the PHP Selector interface in cPanel. This interface will allow you to modify your site's PHP versions, enable/disable PHP extensions, and also modify PHP settings. Changing PHP Versions 1. Login to cPanel for your hosting account and use the search to find the "Select PHP Version" interface: 2. From the Select PHP Version interface select the "My domains" menu: 3. Use the provided dropdown to select your new PHP version. Click "Set as Current" to make the selected PHP version your account's new PHP version: Enabling or Disabling PHP Extensions 2. From the Select PHP Version interface select the "Extensions" menu: 3. The "Extensions" interface will provide a list of all available PHP extensions for your account. Use the checkbox next to each extension to enable or disable as needed: Adjusting PHP Settings (memory limit, upload file size, execution time, etc.)
PHP Path for cron jobs or other scripts The correct path to use for PHP cron jobs or other scripts which require the PHP path is: /usr/local/bin/php
| |
|