Tell me more ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have figured out the issue. I needed to change the extension_dir. I had changed it to the correct path before, but because either I had the wrong version of PostgreSQL, or the libpq.dll, that change didn't help. And down the road I changed it back and forgot about it.


I've installed PHP 5.4.4, Apache 2.2, and PostgreSQL 9.1 on Window 7 (64bit).

When I tried to run phpPgAdmin, I get the following error: "Your PHP installation does not support PostgreSQL. You need to recompile PHP using the --with-pgsql configure option."

After a whole day of googling and trying, the same message still show up. Here's what I've done so far, please advice what I may have done wrong:

on php.ini, I have the following:

extension_dir = "./ext"
extension=php_pdo_pgsql.dll
extension=php_pgsql.dll

On Apache's httpd.conf file, I added this:

Loadfile "C:\Program Files (x86)\PostgreSQL\9.1\bin\libpq.dll"

I had tried replacing the PHP/libpq.dll with the one comes with PostgreSQL 9.1, but that doesn't help. I tried copying libpq.dll, libiconv-2.dll and libintl-8.dll to Apache's bin folder, as well as PHP's folder, still no avail.

I made sure PostgreSQL was 32bit. I'm clueless at this point. Any advice is greatly appreciated.

share|improve this question
1  
I suggest you give your answer as an "answer your own question." This way, the solution is more search-friendly, and you don't get marked as someone who doesn't accept solutions on his questions. – Alex Jul 15 '12 at 4:11
@Alex why you say that JWGamer should "answer his own question"??? – Luxspes Jul 15 '12 at 4:49
1  
@Luxspes: because it makes it clearer that a solution to the problem was found. There is nothing wrong with posting the solution to your own question. – a_horse_with_no_name Jul 15 '12 at 8:03

migrated from stackoverflow.com Jul 15 '12 at 9:19

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.