#37180 [NEW]: PHP 5.1.2 + Apache 2.0.55 + PostgreSQL 8.1 won't work together

From: Date: Mon, 24 Apr 2006 08:54:27 +0000
Subject: #37180 [NEW]: PHP 5.1.2 + Apache 2.0.55 + PostgreSQL 8.1 won't work together
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-96145@lists.php.net to get a copy of this message
From: belfegor666 at gazeta dot pl Operating system: Win 2003 Server PHP version: 5.1.2 PHP Bug Type: Dynamic loading Bug description: PHP 5.1.2 + Apache 2.0.55 + PostgreSQL 8.1 won't work together 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 -- Edit bug report at http://bugs.php.net/?id=37180&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=37180&r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=37180&r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=37180&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=37180&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=37180&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=37180&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=37180&r=needscript Try newer version: http://bugs.php.net/fix.php?id=37180&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=37180&r=support Expected behavior: http://bugs.php.net/fix.php?id=37180&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=37180&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=37180&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=37180&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=37180&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=37180&r=dst IIS Stability: http://bugs.php.net/fix.php?id=37180&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=37180&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=37180&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=37180&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=37180&r=mysqlcfg

« previous php.bugs (#96145) next »