PHP settings memory limits

Cpanel hosting Solution Htaccess PHP Scripts

Writing this to Apache .htaccess in your script directory might work, if your server supports setting PHP commands through .htaccess:

php_value memory_limit 2048M

Since it may be possible that .htaccess commands for setting PHP values are turned off. Then you can also try this from PHP code:

ini_set('memory_limit', '2048M');

If this doesn’t work and .htaccess also doesn’t work, then you need to contact server administrators

ini_set("memory_limit",-1);

This should normally remove limits

 

Leave a Reply

Your email address will not be published. Required fields are marked *