IT Stuff

How to load PDO_PgSQL (PostgreSQL) with WAMP Server

A lot of solutions I’ve read regarding on how to load pdo_pgsql with WAMPServer but the real and complete solution is to add the php path to the windows environment variables. You can disregard my previous post (here) on how did i do it. It was just a sort of experimentation but it really worked. Now here’s the real solution to the problem.

1. right click on my computer and select properties.
2. click on advance system settings
3. on the system properties window click “environment variables”
4. look for system variables frame and click “Path” variable
5. click the “edit” button
6. change the variable value by adding your php root path mine looks like this: %SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;C:\Program Files\Microsoft SQL Server\100\DTS\Binn\;c:\wamp\bin\php\php5.3.0\ I just added my php root path. 7. restart your wampserver and check mark the pdo_pgsql and php_pgsql extension using the wamp server menu or by editing your php.ini ; just remove the remark for the above extensions. and you’re done!

happy coding!