Page 1 of 1
[SOLVED] Fatal error: Allowed memory size
Posted: Wed Aug 02, 2006 12:23 pm
by wtf
Greets,
I'm having issues with one of my scripts. Here's the result
Fatal error: Allowed memory size of 13636296 bytes exhausted (tried to allocate 3264 bytes)
Now, I've changed settings in php.ini to 128M and still no luck.
~dubya
Posted: Wed Aug 02, 2006 12:28 pm
by klarinetking
Hi,
It seems obvious, but have you restarted your webserver?
klarinetking
Posted: Wed Aug 02, 2006 12:44 pm
by wtf
Acutally no. Sysadmin says that Apache on Debian doesn't need to be restarted so, I'm not sure if that's the case or not.
Posted: Wed Aug 02, 2006 12:46 pm
by klarinetking
Hmm... I haven't used Debian, but I know on Windows that you need to restart Apache for it to read the php.ini file with the new values.
klarinetking
Posted: Wed Aug 02, 2006 1:00 pm
by feyd
Restarts are needed when running as a module. As CGI, it's read on every execution.
Posted: Wed Aug 02, 2006 1:47 pm
by wtf
OK. I guess you were all correct. We had to send a 'hickup' to force Apache to re-read ini file.
Thanks for the feedback
~dubya
Posted: Wed Aug 02, 2006 2:40 pm
by RobertGonzalez
I had run into this problem once and had to restart my windows machine completely before the php.ini was read.