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.