phppgadmin

Access phppgadmin from another computer?


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


Solution

  • 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