php.ini vs php.ini.default
Posted: Fri Mar 11, 2005 7:42 pm
When I run the function phpinfo() through a browser I get this path to php.ini:
/usr/local/php/lib/
When I run the same function in a command-line script I get this path to php.ini:
/etc/
Now, there is no php.ini in the /etc/ directory. There's only a php.ini.default file.
Does this mean that when I run a command-line PHP script it's loading php.ini.default?
The extensions_dir in both of these files is set to "./"
Now, when I run a script from the command line (and it references the /etc/php.ini.default file) it does not load GD.
My question is, should I change the extensions_dir in php.ini.default to point to /usr/local/php/lib ?
Thanks for any advice.
/usr/local/php/lib/
When I run the same function in a command-line script I get this path to php.ini:
/etc/
Now, there is no php.ini in the /etc/ directory. There's only a php.ini.default file.
Does this mean that when I run a command-line PHP script it's loading php.ini.default?
The extensions_dir in both of these files is set to "./"
Now, when I run a script from the command line (and it references the /etc/php.ini.default file) it does not load GD.
My question is, should I change the extensions_dir in php.ini.default to point to /usr/local/php/lib ?
Thanks for any advice.