Access phppgadmin from another computer?

never_had_a_name picture never_had_a_name · Jul 26, 2010 · Viewed 13k times · Source

I have installed phppgadmin in a Ubuntu server and want to access it from another computer.

It said access denied when i typed:

 http://<ip>/phppgadmin

The port 5432 is opened in the Ubuntu server but just for local ip.

Thanks

Answer

Kenny Rasschaert picture Kenny Rasschaert · Jul 26, 2010

The /etc/apache2/conf.d/phppgadmin.conf configuration file by default keeps anyone but localhost from accessing PhpPgAdmin.

Add a line that makes a new allow rule for your IP, so it looks something like this:

<Location /phppgadmin>
  Order deny,allow
  Deny from all
  Allow from [Your client IP]
</Location>

By the way, this kind of question is probably more appropriate for stackoverflow's sister site serverfault.com