Admin-Ahead Community

Linux => General Linux => Topic started by: Aby on May 06, 2014, 01:32:47 pm

Title: Increase memory_limit of a particular script
Post by: Aby on May 06, 2014, 01:32:47 pm
Increase memory_limit of a particular script

You can increase the memory_limit for a specific script by editing the file and after “<?php”, place the following code

Code: [Select]
ini_set(“memory_limit”,128M”);
Also we can increase memory_limit of a particular user by creating a custom php.ini file in their document root. Create php.ini as,

Code: [Select]
memory_limit = 64M
or

edit .htaccess file and add as,

Code: [Select]
php_value memory_limit 64M
====