Installing PostgreSQL
- Written by Vanessa Vasile
- Published in Apps, Howto, MySQL
- Permalink
PostgreSQL is an open-source database server similar (but different) than MySQL. cPanel has a built-in installer for setting up PostgreSQL easily. Keep in mind that the actual version of PostgreSQL you get depends on your OS version. For instance, CentOS 4 users will likely get version 7, CentOS 5 will get version 8.
First, run the install script from command line
/scripts/installpostgres
Then in WHM under SQL Services >> Postgres Config Choose Install Config. Once the config has been installed set a root password for PostgreSQL (Only Alphanumerics). If you hav a firewall, you may want to open port 5432.
PostgreSQL is installed now, but PHP is not compiled for it, so you'll need to run EasyApache and enable PHP with PostgreSQL (pgsql) support. You can do this manually, or through WHM. If doing so manually, here is the configure switch (or use with /var/cpanel/easy/apache/custom/rawopts [La Magie De La Reconquête – The Magic Of Making Up French Version
3 Comments
Copying and pasting your commands don’t work. Also, it should be $user in the command to su if you’re using for user in the for loop.
Keep in mind that WordPress does weird things to double dashes and quotes – try typing the commands instead of copying and pasting them
Just FYI to everyone, you need to run /scripts/makecpphp after easy apache and config setup. cPanel’s PhpPGAdmin will warn you it’s not installed for php.