LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Apache2 running but unable to browse to it. (https://www.linuxquestions.org/questions/debian-26/apache2-running-but-unable-to-browse-to-it-572164/)

matt1982 07-25-2007 09:20 AM

Apache2 running but unable to browse to it.
 
Hi Guys,

I'm stuck and having a little issue, I setup my Debian box a little while ago and Apache2 was running fine, but then not to long ago, (not sure if related)... I installed CVSWEB and now every time I try to browse to my website on my Linux box the browser just hangs. I don't get a "Server not found" or anything. It seems like my browser sees, connects but never get the page to come up, I'm sure it sees something because when I kill Apache2 I get the "Server cannot be found" message.


Any thoughts on this?... it's really bugging me, I've went to the point of removing and re-installing Apache2 and still no luck.

Thanks ahead.

hob 07-25-2007 03:37 PM

The Apache logs are actually really helpful - you will find /var/log/apache/access.log probably has a bunch of entries that will tell you exactly what the client browser is requesting, and why the Apache server doesn't appear to be providing anything.

matt1982 07-26-2007 07:24 AM

Thanks,

I checked the access.log and nothing, it doesn't have anything in it... the only time there's something added to it is when I restart the Apache2 service...?

Could this be something related to forwarding?... hmmm...


Thanks. :)

farslayer 07-26-2007 07:57 AM

can you browse the webserver locally ?
lynx http://localhost.localdomain

is Apache2 listening on port 80 ?
netstat -lnp | grep ::80
Code:

tcp6      0      0 :::80                  :::*                    LISTEN    1727/apache2

matt1982 07-26-2007 08:40 AM

sure is, it's listen on port 80 and on port 443 for ssl connections... actually doing your command did not show me apache2 on port 80.... the ports.conf has 80 and 443... hmmm...

hmmm

thanks :)

BillyGalbreath 07-26-2007 09:36 AM

If the above command did not list apache, then apache is not listening, which means its probably not running. Try doing this as root:

/etc/init.d/apache2 start

matt1982 07-27-2007 08:05 AM

My bad, it is listen on port 80 and 443...

Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 3349/apache2
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 3349/apache2


But here's a weird thing, is the local address suppose to be listed as 0.0.0.0... I'm not sure where this gets set, I double checked my config on apahe2 and everything seems fine.


help!... :P... Thanks :)

farslayer 07-27-2007 08:36 PM

that just means it is listening on all IP addresses on your box..

matt1982 08-14-2007 07:56 AM

still not working
 
Hey, sorry late reply, but in that case, if it's lsitening, and at one point was working... then what would cause this to happen... my browser sees the server bcs it hangs for response, my server is listening, but logs don't show me accessing the site, and as for now it's internal and does not have a firewall.

cheers!... thanks, and sorry for late reply, vacation :P

redhat69 11-01-2007 10:13 PM

Turn iptables off

/sbin/chkconfig iptables off
/sbin/service iptables stop

yxm0513 12-22-2007 01:51 AM

Have you got this problem resolved? I met same issue here。

Tried again.
It seems that IE works OK,w3m and Firefox have this issue.

Thanks

matt1982 12-31-2007 09:36 AM

nope, have not resolved this yet.... :( urgh

Velvet Elvis 12-31-2007 09:10 PM

try this:

http://www.oreillynet.com/linux/blog...ocaldomai.html

props666999 02-21-2008 07:33 AM

well same issue here

localhost didn't work but 127.0.0.1 worked


All times are GMT -5. The time now is 10:59 PM.