logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Apache - PHP - PostgreSQL windows 7 64 bits problem
Author
binyo66



Joined: 25 Jan 2013
Posts: 3
Location: Indonesia, Jakarta

PostPosted: Sat 26 Jan '13 12:05    Post subject: Apache - PHP - PostgreSQL windows 7 64 bits problem Reply with quote

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

PostPosted: Sat 26 Jan '13 12:41    Post subject: Reply with quote

Did you modify php.ini to loaded the PostgreSQL extension?
Back to top
binyo66



Joined: 25 Jan 2013
Posts: 3
Location: Indonesia, Jakarta

PostPosted: Sat 26 Jan '13 13:26    Post subject: Reply with quote

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

PostPosted: Sat 26 Jan '13 18:33    Post subject: Reply with quote

No, that shoud it be. You can check if that extension is loaded via
Code:
<?php
phpinfo();
?>


See also http://php.net/manual/de/errorfunc.configuration.php#ini.display-startup-errors
Back to top
binyo66



Joined: 25 Jan 2013
Posts: 3
Location: Indonesia, Jakarta

PostPosted: Sun 27 Jan '13 12:22    Post subject: Reply with quote

No it is not loaded Sad
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

PostPosted: Tue 29 Jan '13 15:11    Post subject: Reply with quote

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


Reply to topic   Topic: Apache - PHP - PostgreSQL windows 7 64 bits problem View previous topic :: View next topic
Post new topic   Forum Index -> Apache