Integration of postgreSQL on WAMP

后端 未结 7 1262
故里飘歌
故里飘歌 2021-02-02 00:52

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

7条回答
  •  后悔当初
    2021-02-02 01:34

    1. After installation of PostgreSQL, you need to copy libpq.dll from wamp\bin\php\phpX.X.X to wamp\bin\apache\Apache2.2*\bin . And restart the Wampserver.
    2. Download phpPgAdmin here.
    3. Extract phpPgAdmin-5.1.zip in C:\wamp\apps So the path will be, C:\wamp\apps\phpPgAdmin-5.1.
    4. Create a file called phppgadmin.conf in C:\wamp\alias. And copy paste the following :

      Alias /phppgadmin "C:/wamp/apps/phpPgAdmin-5.1/" 
      
      
          Options Indexes FollowSymLinks MultiViews
          AllowOverride all
              Order Deny,Allow
        Allow from all
      
      
    5. Left Click on the Wampserver Tray icon. Navigate to PHP > PHP extension. Then enable this

      a. php_pgsql 
      b. php_pdo_pgsql extension.
      
    6. 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

    7. Restart All service

    8. Go to http://localhost/phppgadmin/ and try to login.

    9. Default Login credentials are

      • Username = "postgres"
      • Password = "root"

    references :

    1. WAMP + PostgreSQL integration
    2. sourceforgenet phpPgAdmin downloadable for Windows with Wamp

提交回复
热议问题