Custom PHP Limits using .user.ini

To add custom php limits like memory limit,Upload limit You can do it from .user.ini file

Create a .user.ini file under your public_html and mention the code

memory_limit=256M;
upload_max_filesize=24M;
post_max_size=32M;



You can edit the value as per your need.If you are using wordpress you need to add the file inside the wp-admin folder too.

Was this answer helpful?

 Print this Article

Also Read

How to set up e-mail forwarding in cPanel?

1. Login into cPanel using provided URL and its credentials 2. Go to Mail section 3. Click on...

Creating a new php.ini file

If you do not have a php.ini file in your public_html folder you can create one by following the...

How to install and uninstall FrontPage extensions?

Login into cPanel using provided URL and its credentials Go to Advanced section Click on...

How to enable Domain Keys and SPF Records in cPanel control panel?

Login into cPanel using provided URL and its credentials Go to Mail section Click on email...

How to Change the language of cPanel ?

Login into cPanel using provided URL and its credentials Click on preference section Click on...