php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #37180 PHP 5.1.2 + Apache 2.0.55 + PostgreSQL 8.1 won't work together
Submitted: 2006-04-24 08:54 UTC Modified: 2006-04-24 09:20 UTC
From: belfegor666 at gazeta dot pl Assigned:
Status: Not a bug Package: Dynamic loading
PHP Version: 5.1.2 OS: Win 2003 Server
Private report: No CVE-ID: None
 [2006-04-24 08:54 UTC] belfegor666 at gazeta dot pl
Description:
------------
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 windwos 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 man y 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 :o(

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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-24 09:20 UTC] tony2001@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions.  Due to the volume
of reports we can not explain in detail here why your report is not
a bug.  The support channels will be able to provide an explanation
for you.

Thank you for your interest in PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 02:01:28 2024 UTC