PHP settings determine, for example, how large files can be uploaded and how much memory the website may use. You can change them yourself in cPanel.

Log in to cPanel – see the article “1.2. Logging in to cPanel”.

Most commonly changed settings

Setting Meaning
memory_limit Memory for one PHP process (for example 256M)
upload_max_filesize The largest file size that can be uploaded
post_max_size The largest amount of data that can be sent – must be at least as large as upload_max_filesize
max_execution_time How many seconds a script may run
max_input_vars How many fields can be sent in one form (useful for large menus and settings pages)
display_errors Show errors on the website – turn on only briefly while troubleshooting

1Open the settings

In the “Software” section of cPanel, open “Select PHP Version” (“PHP Selector” opens). Open the “Options” tab. Click a value, enter or choose the new one and confirm.

Check the website after the change. If something does not work, restore the previous value.

Open the settings
  • Settings are subject to your hosting plan's limits – for example, memory_limit cannot be higher than the plan's memory.
  • WordPress memory limit: see the article “3.10. Problem installing a theme (memory limit)”.
  • If websites are isolated (“Per Domain Settings”), the settings are separate for each domain (see the article “Different PHP versions in one hosting account”).

If you run into any difficulties, just write to us and we will help. support@area.lv

Was this answer helpful? 2 Users Found This Useful (2 Votes)