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:

    Directive Description Common Values
    memory_limit Maximum memory a script can consume 128M, 256M, 512M
    upload_max_filesize Maximum size of an uploaded file 32M, 64M, 128M
    post_max_size Maximum size of POST data (should be >= upload_max_filesize) 32M, 64M, 128M
    max_execution_time Maximum time (in seconds) a script can run 30, 60, 120
    max_input_vars Maximum number of input variables per request 1000, 3000, 5000
  5. Click Save after making your changes. The new settings will take effect immediately.