cbrooks Posted November 11, 2009 Share Posted November 11, 2009 I am currently running WampServer 2.0i (Apache 2.2.11, PHP 5.3.0, MySql) As installed all works great. I installed PostgreSQL 8.4 listing on port 5432. It works great outside of Apache/PHP I enabled pdo_pgsql.dll and pgsql.dll in php.ini and restarted Apache. It seems that it is not loading the .dll files as I am getting Fatal Error: undefined function pg_connect, when you try to connect to the database. Also when you look in phpinfo() under PDO drivers it only mentions mysql and sqlite. No mention anywhere about PostgreSQL. I have been looking around and it seems that this is an issue with WampServer after PHP version 5.2.5 or .6 Does anyone have any suggestions?? I really need to get this working! Quote Link to comment https://forums.phpfreaks.com/topic/181151-solved-postgresql-on-wampserver/ Share on other sites More sharing options...
Mchl Posted November 11, 2009 Share Posted November 11, 2009 Click on WampServer icon in tray, select PHP > PHP Extensions and mark php_pdo_pgsql. Wait until server restarts itself. Edit: Ok. Just tried it myself, and indeed it doesn't seem to be working. Did you ask at WampServer's forum? Quote Link to comment https://forums.phpfreaks.com/topic/181151-solved-postgresql-on-wampserver/#findComment-955719 Share on other sites More sharing options...
cbrooks Posted November 11, 2009 Author Share Posted November 11, 2009 Yes, that was the first place I checked. Never received any type of answer from them at all. Quote Link to comment https://forums.phpfreaks.com/topic/181151-solved-postgresql-on-wampserver/#findComment-955727 Share on other sites More sharing options...
cbrooks Posted November 13, 2009 Author Share Posted November 13, 2009 Ok, got it all working as follows: I removed the WampServer 2.0i version that I was using and installed WampServer 2.0c in it's place. I then went to the following site: [www.blog.bmedon.net] This site is in a non English language, so click on the 'Translate' Button on the top right to get it in English. and get their copies of the following to dll's php_pdo_pqsql.dll php_pqsql.dll place them into your ext directory enable php_pdo_pqsql.dll and php_pqsql.dll in your php.ini and restart your Apache server. It worked for me the first time. I never heard any info from WampServer personnel concerning this issue. ended up with the following versions of everything: Apache 2.2.8 PHP 5.2.6 MySQL 5.0.51a PostgreSQL 8.2.3 Quote Link to comment https://forums.phpfreaks.com/topic/181151-solved-postgresql-on-wampserver/#findComment-957099 Share on other sites More sharing options...
Mchl Posted November 13, 2009 Share Posted November 13, 2009 I never heard any info from WampServer personnel concerning this issue. Their forum is not very busy, and your issue is far from common (after all MySQL is most widely used with WampServer). Anyway, it would be nice to get any kind of response. Quote Link to comment https://forums.phpfreaks.com/topic/181151-solved-postgresql-on-wampserver/#findComment-957105 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.