Apache crash when pgsql ext is enabled in php.ini [SOLVED]

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Apache crash when pgsql ext is enabled in php.ini [SOLVED]

Postby mgcrit » 10. October 2011 17:16

Hello

I'm using XAMPP 1.7.7 on Windows 7 Enterprise 64-bit (Version 6.1 (Build 7601: Service Pack 1)).
I'm directly editing the php.ini found on c:\xampp\php\php.ini and restarting apache using the Services snap-in of the Microsoft Management Console so the Control Panel version used is irrelevant.
Whenever I enable a PostgreSQL extension (both php_pgsql.dll and php_pdo_pgsql.dll were tested separately with identical results), apache crashes when starting without printing any useful information to error.log.
Can anybody confirm this behavior and eventually point to a solution?

Thanks
Last edited by mgcrit on 11. October 2011 09:33, edited 1 time in total.
mgcrit
 
Posts: 4
Joined: 10. October 2011 17:05

Re: Apache crashes when pgsql extension is enabled in php.in

Postby mgcrit » 10. October 2011 17:37

Solved! The php postgresql extensions depend on the native libraries. Copying the libpq.dll to the C:\xampp\php\ext\ solved the problem. However I would prefer a cleaner solution not involving messing around with the installation directories apart from changing the configuration files. Any ideias?
mgcrit
 
Posts: 4
Joined: 10. October 2011 17:05

Re: Apache crashes when pgsql extension is enabled in php.in

Postby mgcrit » 10. October 2011 17:42

Ooops, with the hurry I hadn't removed the comment on the php.ini. The problem still persists... :(
mgcrit
 
Posts: 4
Joined: 10. October 2011 17:05

Re: Apache crashes when pgsql extension is enabled in php.in

Postby JonB » 10. October 2011 19:00

Actually, using that Control Panel 3 beta revealed this error:

httpd.exe
this application has failed to start because LIBPQ.dll was not found. Re-installing the application may fix this problem.


http://postgresql.1045698.n5.nabble.com ... 29898.html

http://www.postgresql.org/docs/8.1/stat ... win32.html

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Apache crashes when pgsql extension is enabled in php.in

Postby hackattack142 » 10. October 2011 19:07

You could try copying the libpq.dll from "xampp/php" to the "xampp/apache/bin" directory. Adding required DLLs to this directory has fixed similar problems with other extensions.
XAMPP Control Panel Developer
Latest CP: viewtopic.php?f=16&t=48932
hackattack142
 
Posts: 701
Joined: 20. May 2011 23:29
Operating System: Windows 7 Ultimate SP1 64-Bit

Re: Apache crashes when pgsql extension is enabled in php.in

Postby mgcrit » 11. October 2011 09:33

Thanks. Copying the libpq.dll from "xampp/php" to the "xampp/apache/bin" directory solved the issue!
mgcrit
 
Posts: 4
Joined: 10. October 2011 17:05

Re: [SOLVED] Apache crash when pgsql ext is enabled in php.i

Postby Sharley » 11. October 2011 09:39

Thanks for the feedback. 8)

Good luck. :)
User avatar
Sharley
AF Moderator
 
Posts: 3316
Joined: 03. October 2008 05:10
Location: Yeppoon, Australia Time Zone: GMT/UTC+10
Operating System: Win 7 Pro 32bit/XP Pro SP3


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 111 guests