1
votes

I need to have Laravel with Postgres

I have wampserver and enabled pgsql and pdo_pgsql extensions for php

my env file is same as below:

DB_CONNECTION=pgsql
DB_HOST=127.0.0.1
DB_PORT=5432
DB_DATABASE=mehri
DB_USERNAME=postgres
DB_PASSWORD=123456

I installed postgres and pgAdmin on windows

Also I added LoadFile "C:/Program Files/PostgreSQL/8.4/bin/libpq.dll" to httpd.conf

Also I tried to fix this error by adding C:/Program Files/PostgreSQL/8.4/bin to environments PATH

when I run php -m , I don't see pgsql

I tried everything but I'm still getting this error

1
do you see your postgresql extension in phpinfo()bhucho
though I am not sure but this link worked for me when I used to work with winbhucho
no, I don't seemehri abbasi
I already added path, but it didn't workmehri abbasi

1 Answers

0
votes

I found my mistake, this happened because I've been installed postgres separately on my system. I should install it into wamp or xampp.

anyway, I used bitnami wamp stack as server https://bitnami.com/stack/wapp