You can follow below steps to install and configure PostgreSQL.
First you have to run below command to install.
/usr/local/cpanel/scripts/installpostgres
Now login to WHM and go to WHM >> Home >> SQL Services >> Configure PostgreSQL
After that you have to click on “Install Config”, if you do...