tags:

views:

80

answers:

3

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

+1  A: 

Are you running Apache?

You need to change your permissions in the httpd.conf file or .htaccess

http://httpd.apache.org/docs/2.0/misc/security_tips.html

NullUserException
+2  A: 

This is an apache (or web server) issue. You're phppgadmin directory has a .htaccess file disallowing EVERYONE except localhost.

You need to either set it to Allow ALL or Allow (insert IP here)

Zane Edward Dockery
+1  A: 

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

kenny.r