How to enable php (Apache) to connect with PostGresql

The machine is already running, Apache 2, PHP 5. Type these commands:

sudo apt-get install libapache2-mod-auth-pgsql
sudo apt-get install php5-pgsql
sudo /etc/init.d/apache2 restart

Discussion Area - Leave a Comment