Page 1 of 1

unable to change configuration of php.ini. can anyone help?

Posted: Fri Sep 18, 2009 12:50 pm
by baked_bean
hello everyone.

i would very much appreciate some help from all you php gurus out there.

i am trying to configure my php.ini file to modify the way in which my scripts show errors. when i change the display error values from on to off in my php.ini file and turn the server off and on etc display errors is still set to on as shown when i call phpinfo(). furthermore i have tried to set the php.ini file using ini_set() but it refuses to change the value. i've made sure i'm modifying the correct php.ini file using phpinfo().

even when i turn display errors off in mamp the errors still display!

has anybody encountered this problem and would anyone have any suggestions as to why i cannot change the values within my php.ini file?

thanks

baked_bean.

Re: unable to change configuration of php.ini. can anyone help?

Posted: Fri Sep 18, 2009 1:08 pm
by VladSun
Did you restart Apache?

Re: unable to change configuration of php.ini. can anyone help?

Posted: Sat Sep 19, 2009 9:06 am
by baked_bean
yes i always restart apache after making any of the changes.

Re: unable to change configuration of php.ini. can anyone help?

Posted: Sat Sep 19, 2009 9:26 am
by Mark Baker
Are you sure you've changed the right php.ini file. Sometimes you find there's several scattered around in different directories.
A quick phpinfo() will tell you the location of the ini file that php is actually using.

Re: unable to change configuration of php.ini. can anyone help?

Posted: Sat Sep 19, 2009 1:29 pm
by baked_bean
yes i've checked on phpinfo() to make sure i am modifying the right php.ini file and it would certainly appear that i am.

very frustrating!!