I have just installed the postgreSQL on windows 7. I am trying to integrate postgreSQL with WAMP server. For this i have done the following changes in httpd.conf and php.ini fi
Not sure why you are checking this page , but even after trying all the above and following other pages only for the reason that you have wamp already iinstalled .. then dont waste your time .
checkout below link https://bitnami.com/ which makes you wamp integration with postgreSQL damn easy ,without WAMP server :b ,
And now start your project right away !!
it worked thank you
Alias /phppgadmin "C:/wamp/apps/phpPgAdmin-5.1/"
<Directory "C:/wamp/apps/phpPgAdmin-5.1/">
Require local
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
</Directory>
Don't forget that WAMP has two php.ini
files. One in Apache directory, one in php directory (bin\php\php5.X.X
). Wampserver Tray manages the one in Apache directory.
To be able to run php cli tools (e.g php artisan
), you need to uncomment the php_pgsql
and php_pdo_pgsql
in the php.ini
in php directory.
After Enabling Postgresql extension from WAMP icon i was able to get postgresql admin page but bin/cake bake all
command was failing with error 'php extn missing'.
(referred @rails_id's post below to complete postgresql integration with WAMP)
checked in cmd prompt with php -m
, no "postgresql" module was present.
Went to php installation directory, in my case it was "C:\wamp64\bin\php\php7.2.10" and enabled (removed the ;) following pg module in php.ini file:
extension=pdo_pgsql extension=pgsql
restarted the wamp services.
bin/cake bake all
is working fine from command prompt.Thank you. These instructions worked once I also added 'Require local' to the phppgadmin.conf file:
Alias /phppgadmin "C:/wamp/apps/phpPgAdmin-5.1/"
<Directory "C:/wamp/apps/phpPgAdmin-5.1/">
Require local
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order Deny,Allow
Allow from all
</Directory>
libpq.dll
from wamp\bin\php\phpX.X.X
to wamp\bin\apache\Apache2.2*\bin
. And restart the Wampserver.C:\wamp\apps
So the path will be, C:\wamp\apps\phpPgAdmin-5.1
.Create a file called phppgadmin.conf
in C:\wamp\alias
. And copy paste the following :
Alias /phppgadmin "C:/wamp/apps/phpPgAdmin-5.1/" <Directory "C:/wamp/apps/phpPgAdmin-5.1/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order Deny,Allow Allow from all </Directory>
Left Click on the Wampserver Tray icon. Navigate to PHP > PHP extension. Then enable this
a. php_pgsql b. php_pdo_pgsql extension.
Open C:\wamp\apps\phpPgAdmin-5.1\conf\config.inc.php
,
a. find $conf['servers'][0]['host'] = '';
change to $conf['servers'][0]['host'] = 'localhost';
b. find $conf['extra_login_security'] = true;
change true
to false
Restart All service
Go to http://localhost/phppgadmin/
and try to login.
Default Login credentials are
references :