Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Apache 2.0.55 + PHP 5.1.2/5.1.3RC4-dev + PostgreSQL 8.1 won't work

Status
Not open for further replies.

krzysieq

Programmer
Apr 24, 2006
2
PL
Help! I was trying to make an installation of PHP 5.1.2 + Apache 2.0.55
+ PostgreSQL 8.1 on Windows 2003 Server, and I'm stuck. I got PHP to
work with Apache quite smoothly, so did I marry PHP with PostgreSQL -
scripts connecting to the database work fine from windows command line,
except that the following code:

if (extension_loaded("php_pgsql")) {
echo "PGSQL loaded!";
}

returns no message. Still database queries work fine. Trouble starts
when I try to open a page in my browser - then I get an error message
like this:

Error: call to udefined function pg_connect()...

I changed the php.ini file a billion times, trying to figure out what to
set in the "extension_dir" and "extension=php_pgsql.dll" lines, and I
tried at least as many times to change apache's httpd.conf file so that
the php module is loaded properly. And it is, as far as I'm concerned -
the phpinfo() page shows without a problem. One peculiar thing about it
is that in the "Loaded modules" section (don't remember the exact name)
there's absolutely no sign of the pgsql module.

I also tried downloading and installing the latest php snapshot, because
someone on a forum told me it might work, but it didn't :eek:(

I'm begging for help, because the person I'm doing the server for
strongly insists on the machine working on Win 2003 and not some
distribution of linux or unix.

Regards,
krzysieq
 
Hi

krzysieq said:
I changed the php.ini file a billion times, [gray](...)[/gray] and I tried at least as many times to change apache's httpd.conf file
Sorry for the dumb question, but did you restarted Apache each time after changing a configuration file ?

Feherke.
 
Indeed, this is a dumb question. Of course I did. I may be novice, but not that novice. Thanks for asking though. Any other suggestions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top