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

My e-mail is going to the bulk or spam folder!

You can create an SPF record from cpanel > Email Authentication for your all domains that are...

Wordpress Optimization Guide

By Default Wordpress will consume lot resource if its Not optimized in proper Way. Do the...

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 do I setup personal nameservers?

To set up your own private nameservers, it is necessary to manually register them at the domain...

How to install WordPress on offshore hosting?

Hello,During wordpress installation with Softaculous if you received any errors and unable to...