ampersandz Posted June 8, 2008 Share Posted June 8, 2008 We have recently switched to a multi-threaded server and now I can't get Postgres working with PHP. Please help. The dl() function doesn't work with multi-threaded servers (and I've tried it). I've tried adding extension=php_pgsql.dll into php.ini under [php_PGSQL] and [postGRES] and dynamic extensions (simultaneously and separately) I've tried reinstalling php I've tried using the recommended php.ini file (changing it so that extension_dir and extension=php_pgsql.dll are set) the extension exists at "c:\program files\php\ext\php_pgsql.dll" extension_dir = "c:\program files\php\ext" The server runs IIS. PHP version: 5.2.6.6 Postgres version: 8.3.1.876 Link to comment https://forums.phpfreaks.com/topic/109203-please-help-i-cant-get-postgres-working-with-php/ Share on other sites More sharing options...
DarkWater Posted June 8, 2008 Share Posted June 8, 2008 How about not using Windows? Best suggestion I could give. Make sure you're restarting Apache after you update the php.ini file. Link to comment https://forums.phpfreaks.com/topic/109203-please-help-i-cant-get-postgres-working-with-php/#findComment-560179 Share on other sites More sharing options...
ampersandz Posted June 8, 2008 Author Share Posted June 8, 2008 So you're saying I need to restart the server after changing the php.ini file? where should I put the extension information? -under dynamic extensions? -under [php_PGSQL]? -under [Postgres]? Link to comment https://forums.phpfreaks.com/topic/109203-please-help-i-cant-get-postgres-working-with-php/#findComment-560187 Share on other sites More sharing options...
DarkWater Posted June 8, 2008 Share Posted June 8, 2008 Just put it somewhere in the php.ini file. I don't think it matters. And yes, you must restart the server before any changes will take effect. Link to comment https://forums.phpfreaks.com/topic/109203-please-help-i-cant-get-postgres-working-with-php/#findComment-560191 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.