Update: These instructions have been tested and work fine in the latest version of Ubuntu (8.04, Hardy Heron).
Here’s some quick notes on getting it installed easily on Ubuntu 7.10…
In the terminal enter the following:
This will set up and install all of the phpPgAdmin packages. It will also set-up and configure Apache and php5 for you too if you haven’t installed these already.
Next we need to create a symlink to phpPgAdmin so that Apache can find it:
Now if you navigate to http://localhost/phppgadmin you should be greeted with the phpPgAdmin screen. If your user account has a PostgreSQL account however, you will be logged in automagically.
Optionally, if you would like to be able to use the phpPgAdmin interface as the default ‘postgres’ administration account, (I am assuming here that you have set-up your PostgreSQL server using my set-up instructions and therefore have a password protected ‘postgres’ account and that logins require passwords.) you will need to do the following (Please make sure you understand the security implications of allowing this type of access to your database server - if you have not secured your administration accounts, do it now!)…
Now find and change the following line
Save and close gedit. Now all you need to do is restart Apache.
Now if you head on over to http://localhost/phppgadmin all should be ready for you.