Install postgresql-9.1 not just postgresql as this gave issues.
sudo apt-get install unzip apache2 php5 php5-gd php5-curl php5-pgsql postgresql-9.1 postgis postgresql-9.1-postgis postgresql-contrib-9.1 tomcat7
Install postgresql-9.1 not just postgresql as this gave issues.
sudo apt-get install unzip apache2 php5 php5-gd php5-curl php5-pgsql postgresql-9.1 postgis postgresql-9.1-postgis postgresql-contrib-9.1 tomcat7