Re: extension can't be found
| From: | Derick Rethans | Date: | Sat, 23 Nov 2002 12:22:33 +0000 |
| Subject: | Re: extension can't be found | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-125721@lists.php.net to get a copy of this message | ||
Liug wrote:
I just compiled/installed apache/php4.2.3 with postgres support. the default php.ini-dist is used. I added extension=pgsql.so but when I start apache, error_log shows it can't find pgsql.so. 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 pgsql.so 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 -- ------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ PHP Magazine - The PHP Magazine for Professionals - http://php-mag.net/ -------------------------------------------------------------------------