Installation Apache - POstgresl - PhpPgAdmin sur Debian Squeeze

Installation Apache

root@debian:~# aptitude install apache2 php5

Installation Postgresql 8.4

root@debian:~# aptitude install postgresql-8.4
root@debian:~# su postgres
postgres# pg_dropcluster --stop 8.4 main
postgres# pg_createcluster --locale=fr_FR.UTF-8 --start 8.4 main
postgres# pg_lsclusters
Version Cluster   Port Status Owner    Data directory                     Log file
8.4     main      5432 online postgres /var/lib/postgresql/8.4/main       /var/log/postgresql/postgresql-8.4-main.log
root@debian:~# createuser -sdrP pgadm

Test Postgres

-u root représente l'utilisateur, -p demande la saisie du mot de passe

root@debian:~# psql postgres pgadm
password:
root@debian:~# psql -U pgadm -W -f fichier.sql mabase
password:

Installation de phppgadmin

root@debian:~# aptitude install phppgadmin
root@debian:~# cp /etc/phppgadmin/apache.conf /etc/apache2/sites-available/phpmyadmin
root@debian:~# a2ensite phpmyadmin
root@debian:~# apache2ctl restart

l'application phppgadmin est disponible avec un navigateur à l'URL suivant : http://adresse/phppgadmin

Paramétrage

  #listen_addresses = 'localhost'          en
  listen_addresses = '*'          
root@debian:~# service postgresql restart