How do I adjust PHP options (memory limit, upload filesize, or execution time)?
Overview
Section titled “Overview”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.
Adjusting PHP Options in cPanel
Section titled “Adjusting PHP Options in cPanel”-
Log in to cPanel for your hosting account.
-
Use the search bar to find and click on the Select PHP Version interface.
-
From the Select PHP Version page, click the Options tab in the top navigation.
-
You will see a list of configurable PHP directives. Adjust the values as needed:
Directive Description Common Values memory_limitMaximum memory a script can consume 128M,256M,512Mupload_max_filesizeMaximum size of an uploaded file 32M,64M,128Mpost_max_sizeMaximum size of POST data (should be >= upload_max_filesize)32M,64M,128Mmax_execution_timeMaximum time (in seconds) a script can run 30,60,120max_input_varsMaximum number of input variables per request 1000,3000,5000 -
Click Save after making your changes. The new settings will take effect immediately.