[SOLVED] Fatal error: Allowed memory size

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
wtf
Forum Contributor
Posts: 331
Joined: Thu Nov 03, 2005 5:27 pm

[SOLVED] Fatal error: Allowed memory size

Post 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
Last edited by wtf on Wed Aug 02, 2006 1:47 pm, edited 1 time in total.
klarinetking
Forum Commoner
Posts: 59
Joined: Mon Jul 24, 2006 9:43 am

Post by klarinetking »

Hi,

It seems obvious, but have you restarted your webserver?

klarinetking
User avatar
wtf
Forum Contributor
Posts: 331
Joined: Thu Nov 03, 2005 5:27 pm

Post 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.
klarinetking
Forum Commoner
Posts: 59
Joined: Mon Jul 24, 2006 9:43 am

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Restarts are needed when running as a module. As CGI, it's read on every execution.
User avatar
wtf
Forum Contributor
Posts: 331
Joined: Thu Nov 03, 2005 5:27 pm

Post 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
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

I had run into this problem once and had to restart my windows machine completely before the php.ini was read.
Post Reply