Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Install phpPgAdmin on Windows 10

Run phpPgAdmin on XAMPP to manage a PostgreSQL server in your browser.

Databases2 min read5 steps6 screenshots

Step 1: Install PostgreSQL

Download the PostgreSQL installer for Windows from the PostgreSQL website and install it. Remember the password you set for the postgres user and the port (5432).

Downloading PostgreSQL

Step 2: Install XAMPP

Download and install XAMPP (Apache and PHP).

The XAMPP installer

Enable the PostgreSQL extension in PHP. In the XAMPP Control Panel click Config next to Apache, then PHP (php.ini). Remove the ; before these lines:

extension=pgsql
extension=pdo_pgsql
Enabling the pgsql extension

Save the file and restart Apache.

Step 3: Download phpPgAdmin

Download phpPgAdmin from its project page (GitHub) as a zip and extract it to C:\xampp\htdocs\phppgadmin.

The phpPgAdmin download page

Open conf\config.inc.php in the folder and check that the server is set to localhost. For logins as the postgres user, change:

$conf['extra_login_security'] = false;

(Only do this on a private test machine.)

Step 4: Start phpPgAdmin

Start Apache in the XAMPP Control Panel.

The XAMPP Control Panel

Open http://localhost/phppgadmin in your browser. Click the server, then log in with the user postgres and your password.

The phpPgAdmin home page
Note: phpPgAdmin is an older project and may not work with the newest PHP or PostgreSQL versions. pgAdmin 4, which is included in the PostgreSQL installer, is a modern alternative.

Features of phpPgAdmin

  1. Database management. Create, change and delete databases.
  2. SQL queries. Run queries and see the results.
  3. Tables. Create and change tables, columns and indexes.
  4. Import and export data.
  5. User management. Manage PostgreSQL users and roles.

Quick recap

  • Install PostgreSQL and XAMPP, and enable pgsql in php.ini.
  • Extract phpPgAdmin to htdocs.
  • Open http://localhost/phppgadmin.