PHP Servers come with some default value for PHP configuration. To increase the memory limit or maximum upload size via php applications in Linux cPanel hosting – create a php.ini file in the document root and inside that php.ini write the following lines:
memory_limit = 32M
upload_max_filesize = 24M
You can set even higher value for these settings depending on your requirements.
However, these values can be set from the "MultiPHP INI Editor" option in cPanel:
- Login to the cPanel
- Navigate to "MultiPHP INI Editor" option.
- Select the domain name from the drop down.
- Set a higher value for "Memory Limit", PHP Max File Upload Size, Max Execution time
Please note that the Maximum you can set the PHP Memory Limit is "1024M" for the shared hosting packages.