Liug wrote:
I just compiled/installed apache/php4.2.3 with postgres
support. the default php.ini-dist is used. I added
but when I start apache, error_log shows it can't find

after some trial and error, I found the following line in
the default php.ini causes the problem:
extension_dir = ./
if I comment this line out, apache can load fine.
I also tried to change to
extension_dir = /usr/local/lib/php/extensions/no-debug-non-zts-20020429
this also solves the problem.

My question is: is the default value in php.ini incorrect
or am I doing something wrong?
Nothing is wrong at all, the default setting in php.ini-dist is that you can load your modules from the current directory, this is needed for some users to provide them with loadable module support on ISPs; if you comment it out it uses the default in the code, which points to "/usr/local/lib/php/extensions/no-debug-non-zts-20020429".



Derick Rethans
PHP Magazine - The PHP Magazine for Professionals -

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to