PHP settings in cPanel: memory_limit, upload_max_filesize, max_execution_time
- Open "Select PHP Version".
- Open the "Options" tab.
- Click the value of a setting and pick or type a new one. It is saved immediately.

| Setting | Meaning | When to change |
|---|---|---|
memory_limit | memory for one PHP script | error "Allowed memory size ... exhausted" |
upload_max_filesize | maximum upload file size | a theme, plugin or image does not upload |
post_max_size | maximum form submission size | must be at least upload_max_filesize |
max_execution_time | how many seconds a script may run | import stops, error 504 |
max_input_vars | how many fields a form may have | WordPress menu or theme settings do not save |
display_errors | show PHP errors on the page | turn 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.