Updated on May 10, 2023
There are certain scenarios when you may be asked to make changes to your PHP configuration. Specifically, you may be directed to edit a file on your server called
php.ini, and to increase the PHP Memory limit (
memory_limit), or the PHP Upload limit (
This post includes:
memory_limit is a setting managed through the PHP Options, which is the max amount of memory a script may consume. This value should be set at least as big as
While we do not allow direct changes to
php.ini on our servers, PHP configuration changes can be made from cPanel by following these steps:
The PHP Selector is not included by default in cPanel and might be missing from your account if your host is not FastComet. If that's the case, you should contact your web host.
memory_limitand click on the dropdown menu beside it. The menu will allow you to change the value as required. Check your script, plugin, or theme's requirements and use the correct value.
That's how you increase the PHP memory limit in cPanel.
The steps you need to follow here is similar:
upload_max_filesizeand click on the dropdown menu beside it. The menu will allow you to change the value as required.
That's how you increase the PHP upload limit in cPanel.
upload_max_filesize only when you absolutely need to. When it comes to access, it's best to keep everything as strict and minimal as possible.
We hope you find this article useful. Discover more about FastCloud - the top-rated Hosting Solutions for personal and small business websites in four consecutive years by the HostAdvice Community!