Skip to content

How do I adjust PHP options (memory limit, upload filesize, or execution time)?

PHP settings such as memory_limit, upload_max_filesize, post_max_size, and max_execution_time can be customized through the Select PHP Version interface in cPanel. This interface is powered by CloudLinux’s PHP Selector and allows you to modify your PHP configuration without editing files manually.

  1. Log in to cPanel for your hosting account.

  2. Use the search bar to find and click on the Select PHP Version interface.

  3. From the Select PHP Version page, click the Options tab in the top navigation.

  4. You will see a list of configurable PHP directives. Adjust the values as needed:

    DirectiveDescriptionCommon Values
    memory_limitMaximum memory a script can consume128M, 256M, 512M
    upload_max_filesizeMaximum size of an uploaded file32M, 64M, 128M
    post_max_sizeMaximum size of POST data (should be >= upload_max_filesize)32M, 64M, 128M
    max_execution_timeMaximum time (in seconds) a script can run30, 60, 120
    max_input_varsMaximum number of input variables per request1000, 3000, 5000
  5. Click Save after making your changes. The new settings will take effect immediately.