By elearn
I want to install drupal7 congifiguration with postgresql9 .
wget http://ftp.drupal.org/files/projects/drupal-7.15.tar.gz
tar zxvf drupal-7.15.tar.gz
sudo mv drupal-7.15/* /var/www/
cd /var/www/
cp sites/default/default.settings.php sites/default/settings.php
chmod a+w sites/default/settings.php
chmod a+w sites/default
createuser --pwprompt --encrypted --no-adduser
--no-createdb username
createdb --encoding=UNICODE --owner=username databasename

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
It’s not very intuitive, but the real problem is not the big red error message. It’s the smaller text:
The type of database your Drupal data will be stored in. Your PHP configuration only supports a single database type, so it has been automatically selected.
You don’t seem to have the Postgres PHP extension installed, so Drupal is not detecting your Postgres instance. The error is it trying to connect to MySql. You can install it with:
sudo apt-get install php5-pgsql
Once that is installed, you should now be able to select Postgres as your database.

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.