PostgreSQL not showing up in phpconfig () function (on windows)

I just installed Apache 2.2.11 and downloaded the zip for PHP5.2.9-2

I'm excavated

extension = php_pdo_pgsql.dll

and

extension = php_pgsql.dll

But when I call phpinfo () function, postgresql doesn't appear. What am I forgetting?

Also, I found the following on the PHP site:

To enable PostgreSQL support, --with-pgsql [= DIR] is required when compiling PHP. DIR is the PostgreSQL base installation directory, by default / usr / local / PgSQL. If the shared object module is available, the PostgreSQL module can be loaded using the extension directive in php.ini or dl () function. I admit this is a Linux solution, but is there something written here telling me I forgot something?

+1


a source to share


3 answers


In php.ini

sure the directive extension_dir

points to the folder containing the file php_pgsql.dll.



Also check your HTTP error log for errors.

+2


a source


Have you restarted Apache after making changes to your php.ini? The PHP module in Apache will not change settings until after a restart.



+2


a source


To load php_pgsql.dll or php_pdo_pgsql.dll, you still need the pgsql "client library" part. Also, for future reference, you can use a tool like Dependency Walker to load the PHP DLLs and see the missing runtime link.

0


a source







All Articles