Using PHP Selector to change your PHP version, modify extensions Print

  • 2

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_blobid0.png

2. From the Select PHP Version interface select the "My domains" menu:


3_blobid1.png

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:


4_blobid2.png

Enabling or Disabling PHP Extensions


1. Login to cPanel for your hosting account and use the search to find the "Select PHP Version" interface:

2_blobid0.png

2. From the Select PHP Version interface select the "Extensions" menu:


5_blobid3.png

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:

7_blobid4.png

Adjusting PHP Settings (memory limit, upload file size, execution time, etc.)

Common PHP settings include:

  • Max execution time (max_execution)time): How long your PHP script can run before it times out and the process is killed
  • Max input vars (max_input_vars): Number of variables in a GET/POST request that will be accepted
  • Memory limit (memory_limit): The maximum amount of memory (RAM) a single PHP script/process can use
  • Upload max filesize (upload_max_filesize): Sets the limit for how large an uploaded/attached file may be when processed through a PHP script
  1. Login to cPanel for your hosting account and use the search to find the "Select PHP Version" interface:

    2_blobid0.png

  2. From the Select PHP Version interface select the "Options" menu:

    8_blobid5.png

  3. Use the provided forms and dropdown menus to adjust your PHP options as required by your scripts/software:

    6_blobid6.png

  4. When you make changes you will see a dialogue menu in the top right of your screen confirming the changes were saved:

    1_blobid7.png

 

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

 


Was this answer helpful?

« Back

Ready to get started? Build your site from
$2.24/mo
GET STARTED NOW