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
wtf
Forum Contributor
Posts: 331 Joined: Thu Nov 03, 2005 5:27 pm
Post
by wtf » Wed Aug 02, 2006 12:23 pm
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 » Wed Aug 02, 2006 12:28 pm
Hi,
It seems obvious, but have you restarted your webserver?
klarinetking
wtf
Forum Contributor
Posts: 331 Joined: Thu Nov 03, 2005 5:27 pm
Post
by wtf » Wed Aug 02, 2006 12:44 pm
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 » Wed Aug 02, 2006 12:46 pm
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
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Wed Aug 02, 2006 1:00 pm
Restarts are needed when running as a module. As CGI, it's read on every execution.
wtf
Forum Contributor
Posts: 331 Joined: Thu Nov 03, 2005 5:27 pm
Post
by wtf » Wed Aug 02, 2006 1:47 pm
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
RobertGonzalez
Site Administrator
Posts: 14293 Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA
Post
by RobertGonzalez » Wed Aug 02, 2006 2:40 pm
I had run into this problem once and had to restart my windows machine completely before the php.ini was read.