Installing PostgreSQL on Fedora Core
This will install the PostgreSQL database server and the component required to write PHP scripts that communicate with postgres. We use yum to handle dependencies and gather all of the required packages. For more information on PostgreSQL, see http://www.postgresql.org
1. Install PostgreSQL and the component that allows php to talk to PostgreSQL.
yum -y install postgresql postgresql-server php-pgsql
2. Configure the new service to start automatically
/sbin/chkconfig postgresql on
/sbin/chkconfig postgresql initdb
/sbin/service postgresql start
3. Start the postgresql interactive shell and create your first user and database.