PDA

View Full Version : php memory limit


thedoc
13th October 2006, 16:29
I am trying to install gallery2 on my server. I need to up the memory_limit in php.ini to 16M. I have adjusted the memory_limit in the php.ini to 16M but when I access info.php I see that the memory allocation is still at 8M.
here are the settings in the php.ini

max_execution_time = 30
max_input_time = 60
memory_limit = 32M

info.php is located:
http://happy-sounds.dynu.com/info.php

What could i be missing to make this adjustment?

Thank you for your help.

Ben
13th October 2006, 16:38
stupid question but did you restart the webserver?

thedoc
13th October 2006, 16:47
Yes several times lol.

Ben
13th October 2006, 16:54
Maybe it is the same problem some other people in that forum had,
that the php.ini is not read beacuse the php.ini path configured as /etc
so maybe take a look at topics related to that, here

thedoc
13th October 2006, 17:24
Thank you very much. I found the other threads and problem is now fixed by moving the php.ini from /etc to /etc/php.d. Feel free to delete this thread if you so desire.

Ben
14th October 2006, 16:58
omg not, I'm sure other people will have that problem, so there is a bigger chance to find it... ;)

sjau
15th October 2006, 00:11
the location of the php.ini used can be found by a simple php script:


<? phpinfo(); ?>

Pretty much on top, forth or fifth line will tel what php.ini is being used!

Ben
15th October 2006, 20:48
@saju: that's what the link in the 1st post is refering to, but it only points to /etc ...