Home  |  Linux  | Mysql  | PHP  | XML
From:Ed Bukhman Date:Wed May 13 23:56:18 2009
Subject:pgsql_php extension issue (windows)
I have installed Apache 2.2.11/Postgres 8.3.6/PHP 5.2.9. I am getting the
following issue when loading php on the apache server

<<<<<<<<PHP Warning: PHP Startup: Unable to load dynamic library
'.\\php_pgsql.dll' - The operating system cannot run %1.\r\n in Unknown on
line 0>>>>>>>>

I've copied the extensions I'm loading to the root php directory, then
changed the extension_dir in php.ini to ".\", so that's why the path is just
..\\php_pgsql.dll . I've also added the root php dir to the path e.v. I have
no trouble running a php script with apache, so long as it doesn't include
any pgsql functions. Finally, and MOST IMPORTANT, when I run my php script
using the command-line php.exe, it connects to my pgsql database and
retrieves records just fine. So the problem is in the way that apache loads
php, and not in the way that php loads the extensions.

I've googled furiously for the fix, but haven't found any solution. Also,
I've tried a fix suggested by somebody where you add the postgres bin
directory to the path, but no joy.


Navigate in group php.install at sever news.php.net
Previous Next


Your recent visits
Re: pgsql_php extension issue (windows)
Re: [PHP] pear for fedora 11
error instant client PHP configure script
Re: [PHP] pear for fedora 11
Apache MPM Worker + PHP-5.2.9



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants