I'm running Leopard 10.5.8 with the Apple-supplied versions of PHP (5.2.10) and Apache (2.2.11). Changes made to the /etc/php.ini file are not taking effect after stop/start of Apache. phpinfo() and shell command php -i confirm the 'status quo'. The php.ini file permissions are 444 with root/wheel ownership. It was copied from the php.ini.default file that came with the php distribution. Here's what I'm trying to change - seems pretty like this should be pretty basic stuff:
include_path = ".:/usr/local/some_directory"
// Original entry in the php.ini.default file was commented out
// The directory '/usr/local/some_directory' exists
// phpinfo() only shows include_path = .:
magic_quotes_gpc = Off
// Original entry in the php.ini.default value was 'On'
// phpinfo() shows magic_quotes_gpc = On
I've been all over the php.net website and cannot identify my error. Shouldn't the changes to the php.ini file should be interpreted immediately after restarting Apache?
Has anyone experienced a similar problem? Suggestions for fixing this malfunction would be greatly appreciated. I know I can hard code workarounds into my PHP code but that really defeats the whole purpose of even having a php.ini file....