PHP installation.
A: This means that you have not properly compiled PostgreSQL support into
- your PHP. The correct configure flag to use is '--with-pgsql'. Read the
+ your PHP. The correct configure flag to use is '--with-pgsql'. Read the
PHP manual and website for more help with this.
- Under Windows, you cannot easily recompile PHP. In this case, open your
- php.ini file (usually in C:\WINDOWS or C:\WINNT) and change this line:
+ PostgreSQL support can be also compiled into PHP as a dynamic extension,
+ so if you have precompiled version (Linux RPM, or Windows binary), there
+ are still chances, that only thing you should do is to enable loading it
+ automagically.
- ;extension=php_pgsql.dll
+ It can be done by editing your php.ini file (under Windows, usually in
+ C:\WINDOWS or C:\WINNT, under Linux /etc/php.ini) and uncommenting this
+ line:
- to:
-
- extension=php_pgsql.dll
+ ;extension=php_pgsql.dll ;under Windows
+ ;extension=pgsql.so ;under Linux
- and then restart your web server.
+ so it would look like that:
+
+ extension=php_pgsql.dll ;under Windows
+ extension=pgsql.so ;under Linux
Q: I always get "Login failed" even though I'm _sure_ I'm using the right
username and password.