Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have installed PHPpgAdmin in ubuntu.

If i use http://localhost/phppgadmin then it works if i am at the server

But if i use from LAN

Http://ip -- works
Http://ip/phppgadmin-- don't work

It says permission denied

share|improve this question
add comment

3 Answers

Check the configuration of the site, due to the nature of the script, I would be 99% sure it comes shipped with some sort of IP based restrictions.

share|improve this answer
add comment

Nate gives usefull advice, but I don't think that'll help you. As the local IP's usually range inside 192.168.*.*, which is already inside the range 127.0.0.0/255.0.0.0.

My advice to you, is to temporarily change the line

deny from all

to

allow from all

Inside /ect/phppgadmin/apache.conf And see if it changes anything (please not that I am not sure of this path. I am a Windows user myself.). It would be wise to edit your question with the results of this, so you can be helped further.

Also, have you tried to reach it from a different computer/device in your network, or just one?

share|improve this answer
add comment

For Ubuntu, edit the file /etc/phppgadmin/apache.conf. You will see lines that look like this:

deny from all
allow from 127.0.0.0/255.0.0.0 ::1/128 192.168.0.0/24

Add an additional line that allows access from your subnet. Then make Apache re-load its configuration.

Simply add an entry for your subnet (here: all machines with IPs in 192.168.0.XXX) in the given allow from line

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.