Skip to content

Using PHP Selector to change your PHP version, modify extensions

All shared web hosting, semi-dedicated, and reseller hosting plans have full PHP control through the PHP Selector interface in cPanel.

  1. Log in to cPanel and search for Select PHP Version:

    2_blobid0.png

  2. Select the My domains menu:

    3_blobid1.png

  3. Use the dropdown to select your new PHP version and click Set as Current:

    4_blobid2.png

  1. From the Select PHP Version interface, select the Extensions menu:

    5_blobid3.png

  2. Use the checkbox next to each extension to enable or disable as needed:

    7_blobid4.png

Common PHP settings include:

  • max_execution_time — How long a PHP script can run before timing out
  • max_input_vars — Number of GET/POST variables accepted
  • memory_limit — Maximum RAM a single PHP process can use
  • upload_max_filesize — Maximum size for file uploads processed through PHP
  1. From the Select PHP Version interface, select the Options menu:

    8_blobid5.png

  2. Use the dropdowns and fields to adjust settings as needed:

    6_blobid6.png

  3. Changes are saved automatically — a confirmation dialog appears in the top right:

    1_blobid7.png

The correct path for PHP in cron jobs and scripts is: /usr/local/bin/php