1

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

I uncommented

extension=php_pdo_pgsql.dll

and

extension=php_pgsql.dll

But when I call the phpinfo() function, postgresql is not showing up. What am I forgetting?

Also, on the PHP site, I found this:

In order to enable PostgreSQL support, --with-pgsql[=DIR] is required when you compile PHP. DIR is the PostgreSQL base install directory, defaults to /usr/local/pgsql. If shared object module is available, PostgreSQL module may be loaded using extension directive in php.ini or dl() function. I recognise that this is ment for Linux, but is there something written here, telling me to do something I've forgotten?

1
  • No. But that's not even needed. phpinfo() shows the info of the DLL's it finds, no of installed database systems. Commented May 17, 2009 at 1:37

3 Answers 3

2

In your php.ini make sure that the extension_dir directive is pointing to the folder that contains the php_pgsql.dll file.

Also check your HTTP error log for errors.

Sign up to request clarification or add additional context in comments.

1 Comment

Didn't do that yet. I've now set the extension_dir to "C:\php\ext", but no effect yet. Gonna go check those logs.
2

Did you restart Apache after making changes to your php.ini? The PHP module in Apache wont pickup changes until a restart is performed.

1 Comment

I know, most basic of things.
0

You still need the 'client library' portion of pgsql in order to load php_pgsql.dll or php_pdo_pgsql.dll. Also, for future reference, you can use a tool like Dependency Walker to load the PHP dll files and see the missing runtime linkage.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.