1

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

RiggsFolly
  • 93,638
  • 21
  • 103
  • 149
mehri abbasi
  • 145
  • 1
  • 11

1 Answers1

0

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

mehri abbasi
  • 145
  • 1
  • 11