PHP settings in cPanel: memory_limit, upload_max_filesize, max_execution_time

  1. Open "Select PHP Version".
  2. Open the "Options" tab.
  3. Click the value of a setting and pick or type a new one. It is saved immediately.
PHP options
PHP options
SettingMeaningWhen to change
memory_limitmemory for one PHP scripterror "Allowed memory size ... exhausted"
upload_max_filesizemaximum upload file sizea theme, plugin or image does not upload
post_max_sizemaximum form submission sizemust be at least upload_max_filesize
max_execution_timehow many seconds a script may runimport stops, error 504
max_input_varshow many fields a form may haveWordPress menu or theme settings do not save
display_errorsshow PHP errors on the pageturn on only while looking for an error

The settings are tied to the PHP version. After switching the version, check them again.

php_value lines in .htaccess and php.ini / .user.ini files in the site folder override these settings. If a new value does not take effect, check these files.

Questions and answers
Increase upload_max_filesize and post_max_size on the "Options" tab of Select PHP Version.
Check php_value in .htaccess and php.ini / .user.ini files in the site folder - they override the panel settings.