avinash hiremath
avinash hiremath

Reputation: 33

memory limit set in php.ini not working in script

I have set memory_limit to 256M in php.ini file and restarted the server.

memory_limit=256M

And

ini_get("memory_limit") -> returns 256M

But i will get error as "Allowed memory size of 67108864 bytes exhausted (tried to allocate 4681469 bytes) in /home/../PHPExcel/Writer/Excel2007.php on line 282" (which is 64M).

Upvotes: 1

Views: 1073

Answers (1)

Devendra Soni
Devendra Soni

Reputation: 391

Try these commands in your console:

mysql -u root -p123456
show variables like 'max%';
SET GLOBAL max_allowed_packet=128*1024;

Where root is my mysql username and 123456 is the password

Upvotes: 0

Related Questions