Updated: 28 September 2026 · Applies to: cPanel & WHM 138 (WHM, root access)

cPanel supports PostgreSQL as well as MySQL/MariaDB. On a VPS or dedicated server with cPanel, the root user can install it with cPanel's own script, so it is managed and updated with the rest of the server.

Install

Log in as root over SSH and run:

/usr/local/cpanel/scripts/installpostgres

Then, in WHM, open Database Services › Configure PostgreSQL, click Install Config and set a password for the postgres user.

Use it

Your cPanel users then see Databases › PostgreSQL Databases, PostgreSQL Database Wizard and phpPgAdmin. Applications connect to localhost on port 5432.

Note: On shared hosting, ask support whether PostgreSQL is available on your server.

Related services

Managed cPanel VPS

cPanel included; we handle updates, security and monitoring.

cPanel server management

hardening, migrations and 24/7 monitoring, with no long-term contract.

cPanel, Plesk and LiteSpeed licences

for VPS and dedicated servers, with installation help on demand.

Was this answer helpful?

Still stuck? Open a ticket