How to increase Memory Limit & Maximum Upload size via php.ini

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:

  1. Login to the cPanel
  2. Navigate to "MultiPHP INI Editor" option.
  3. Select the domain name from the drop down.
  4. 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.

  • 150 Kasutajad peavad seda kasulikuks
Kas see vastus oli kasulik?

Seotud artiklid

How to access webmail

To access the webmail use the following link: https://yourdomain/webmail Replace "yourdomain"...

How to access cPanel

The cPanel can be accessed via the following links: https://yourdomain/cpanel or...

How to create an email forwarder

How to add forwarder:1. Login to cPanel2. Go to “Forwarders” link3. Click on “Add Forwarder”4....

How to add additional domain ( aka addon domain ) in cPanel

Please follow the steps:1. Login to the cPanel2. Go to the "Domains" link.3. Click on "Create a...

How to Install WordPress Using Softaculous in cPanel

Here's a detailed guide on How to Install WordPress using Softaculous in cPanel: How to...

Powered by WHMCompleteSolution