Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Apache - PHP - PostgreSQL windows 7 64 bits problem |
|
Author |
|
binyo66
Joined: 25 Jan 2013 Posts: 3 Location: Indonesia, Jakarta
|
Posted: Sat 26 Jan '13 12:05 Post subject: Apache - PHP - PostgreSQL windows 7 64 bits problem |
|
|
I have installed Apache 2.4.3, and PHP 5.4.5 64-bit, and I have installed PostgreSQL 9.2 64-bits under my new system windows 7 64 bits. Apache and PHP could work nicely, and PostgreSQL run fine too. However, PHP couldn't access the PostgreSQL. pg_connect(), and followed by echo select version(), didn't give any error. When PostgreSQL module was not loaded (because my php dir was d:\php, but inside httpd.conf i type D:/PHP), I got message saying something like "undefined pg_connect()." I fixed it, but select version() or any other echo after pg_connect() didn't give any output. Any idea ? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Sat 26 Jan '13 12:41 Post subject: |
|
|
Did you modify php.ini to loaded the PostgreSQL extension? |
|
Back to top |
|
binyo66
Joined: 25 Jan 2013 Posts: 3 Location: Indonesia, Jakarta
|
Posted: Sat 26 Jan '13 13:26 Post subject: |
|
|
No, because I checked inside php.ini (I think I copied php.ini from the 32-bit version), there were 2 lines:
[PHP_PGSQL]
extension=php_pgsql.dll
do I need to do something in php.ini? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
|
Back to top |
|
binyo66
Joined: 25 Jan 2013 Posts: 3 Location: Indonesia, Jakarta
|
Posted: Sun 27 Jan '13 12:22 Post subject: |
|
|
No it is not loaded
the loaded modules:
Code: |
core mod_win32 mpm_winnt http_core mod_so mod_access_compat mod_actions mod_alias mod_allowmethods mod_asis mod_auth_basic mod_authn_core mod_authn_file mod_authz_core mod_authz_groupfile mod_authz_host mod_authz_user mod_autoindex mod_cgi mod_dir mod_env mod_include mod_isapi mod_log_config mod_mime mod_negotiation mod_rewrite mod_setenvif mod_php5
|
So what is wrong ? |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 29 Jan '13 15:11 Post subject: |
|
|
That module is not is that list (that is the modules load from apache not PHP). Just use CRTL + F and search for pgsql. |
|
Back to top |
|
|
|
|
|
|