Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Access phppgadmin from another computer?

Tags:

phppgadmin

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

like image 998
never_had_a_name Avatar asked Jul 26 '10 05:07

never_had_a_name


2 Answers

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

like image 170
Kenny Rasschaert Avatar answered Nov 23 '22 23:11

Kenny Rasschaert


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)

like image 31
dockeryZ Avatar answered Nov 23 '22 21:11

dockeryZ