After installing PostgreSql 9.0, compile php and apache using WHM > Easyapache --with-pgsql option
For instructions on installing PostgreSQL 9.0 in Centos 6, click here
Download phpPgAdmin 5.0.3.tar.gz to this location:
/usr/local/cpanel/base/3rdparty
Extract the dowloaded file and rename the extracted phpPgAdmin-5.0.3 directed to phppgadmin.
Edit config.inc.php located in /usr/local/cpanel/base/3rdparty/phpPgAdmin/conf/config.inc.php
Find the line $conf['extra_login_security'] = true;
Set it to false.
Restart postgresql.
In WHM go to Restart Services > SQL Server (PgSQL)
Or in the console prompt type:
service postgresql-9.0 restart
I also restarted Apache
service httpd restart
At this point, the phpPgAdmin link shall be functional - but not the PostgreSQL link. If yo click it, cPanel will warn you that PostgreSQL is
offline.
PostgreSQL may be running but cPanel cannot find the data files.
Additional steps need to be done to connect Postgres to cPanel.
Edit pg_hba.conf located in /var/lib/pgsql/9.0/data
vi /var/lib/pgsql/9.0/data/pg_hba.conf
Find the following lines:
local all all md5
host all all 127.0.0.1 255.255.255.255 md5
Change md5 to trust, thus:
local all all md5
host all all 127.0.0.1 255.255.255.255 md5
This will be only temporary. In the succeeding steps "trust" shall be reverted to "m5" automatically.
Restart postgresql.
Go to SQL Services > Postgres Config
At this point, you are not ready yet to click the configuration buttons. If you do, WHM will warn that data directory could not be found.
Starting Postgresql version 9, postgresql installs files in different location and cPanel expects to find them in the old install locations.
So, we need to create symlinks from the new location to the old locations where cPanel expects to find the files.
Type the following in the console prompt (This has no equivalent in WHM):
ln -s /var/lib/pgsql/9.0/data /var/lib/pgsql
ln -s /var/lib/pgsql/9.0/backups /var/lib/pgsql
Then you can click the Install Config button and get a success confirmation message from WHM.
Re-enter the Postgres password and click Change Password.
Restart Postgresql.
If you check pg_hba.conf, you will find these llines again:
local all all md5
host all all 127.0.0.1 255.255.255.255 md5
Note that trust has been reverted to md5.
Now you can access Postgresql 9.0 databases from cPanel using the PostgreSQL Databases or the phpPgAdmin link.
Showing posts with label WHM. Show all posts
Showing posts with label WHM. Show all posts
3
Connecting Postgresql 9.0 and phpPgAdmin-5.0.3 to cPanel in Centos 6
Posted by
gimpayamd@gmail.com
at
10/14/2011
Labels: cPanel, Easyapache, PgSQL, phpPgAdmin, PostgreSql 9.0, SQL Server, WHM
Subscribe to:
Posts (Atom)
Search
Topics/Categories
- .tar.gz.gzip (1)
- Address Verifier (1)
- Adobe Photoshop (1)
- Adobe Photoshop error (1)
- advertise blog (1)
- alternating current (1)
- Anchor Computer Software (1)
- API (1)
- ASMX (1)
- asset tracking (1)
- ATM (1)
- audio conferencing (1)
- building website.creating website (1)
- BuildYourSite.com (1)
- business solution (1)
- centos 6 (3)
- CIO update (1)
- Complimentary BI (1)
- Complimentary Business Intelligence (1)
- Conference Group (1)
- Contact Us (1)
- content (1)
- cPanel (1)
- CSS Menu (1)
- Data Quality Software (1)
- ddns (1)
- dns provider (1)
- Drupal (2)
- Drupal-phpBB integration (1)
- Drush version 3 (1)
- Easyapache (1)
- electricity (1)
- free blog advertising (1)
- Free Blogger Templates (1)
- free domain name (1)
- Gartner Research (1)
- Internet (1)
- inventory software (1)
- LimeService (1)
- managed DNS (1)
- Mastercard (1)
- module confiuraion (1)
- Mulittab (1)
- Naga City Philippines.Payoneer (1)
- Nikola Tesla (1)
- No-IP (1)
- Ocean Dancer template (1)
- oDesk Debit Card (1)
- oDesk Debit Card in the Philippines (1)
- on demand (2)
- online survey service (1)
- online survey tool (1)
- online surveys (1)
- paid sign-up (1)
- PgSQL (1)
- phpBB (1)
- phpPgAdmin (1)
- Picasa (1)
- Picture Collage (1)
- postgres (1)
- postgresql 9 (2)
- PostgreSql 9.0 (1)
- powerarchiver (1)
- ReadyShow (1)
- remote access to postgresql (1)
- resonance (1)
- revenue sharing (1)
- saas (2)
- SaaS Solution (1)
- School System Software by AVGTECH (1)
- Scratch Disk is full (1)
- sign-up (1)
- SiteBuilderPro (1)
- social network (1)
- social networking (1)
- software-as-a-service (2)
- SQL Server (1)
- supply chain (1)
- tar (1)
- Thomas Alba Edison (1)
- top hosting (1)
- traffic (1)
- url redirection (1)
- USPS ZIP+4 (1)
- video conferencing (1)
- WCF (1)
- web conferencing (1)
- web hosting (1)
- Web Service Factory (1)
- web traffic (1)
- webmin (1)
- WebService (1)
- WHM (1)
- win-gz (1)
- WP Premium Blogger Template - Red (1)
- WP Premium Blogger Templates (1)
- ZeenZuu (1)