Debian This forum is for the discussion of Debian Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
07-25-2007, 09:20 AM
|
#1
|
|
Member
Registered: Nov 2004
Location: ontario, canada
Distribution: debian
Posts: 52
Rep:
|
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.
|
|
|
|
07-25-2007, 03:37 PM
|
#2
|
|
Senior Member
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075
Rep:
|
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.
|
|
|
|
07-26-2007, 07:24 AM
|
#3
|
|
Member
Registered: Nov 2004
Location: ontario, canada
Distribution: debian
Posts: 52
Original Poster
Rep:
|
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. 
|
|
|
|
07-26-2007, 07:57 AM
|
#4
|
|
Guru
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Rep: 
|
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
|
|
|
|
07-26-2007, 08:40 AM
|
#5
|
|
Member
Registered: Nov 2004
Location: ontario, canada
Distribution: debian
Posts: 52
Original Poster
Rep:
|
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 
Last edited by matt1982; 07-26-2007 at 08:42 AM.
|
|
|
|
07-26-2007, 09:36 AM
|
#6
|
|
Member
Registered: Nov 2005
Location: Houston Texas
Distribution: Debian Sid
Posts: 379
Rep:
|
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
|
|
|
|
07-27-2007, 08:05 AM
|
#7
|
|
Member
Registered: Nov 2004
Location: ontario, canada
Distribution: debian
Posts: 52
Original Poster
Rep:
|
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 
|
|
|
|
07-27-2007, 08:36 PM
|
#8
|
|
Guru
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,231
Rep: 
|
that just means it is listening on all IP addresses on your box..
|
|
|
|
08-14-2007, 07:56 AM
|
#9
|
|
Member
Registered: Nov 2004
Location: ontario, canada
Distribution: debian
Posts: 52
Original Poster
Rep:
|
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
|
|
|
|
11-01-2007, 10:13 PM
|
#10
|
|
LQ Newbie
Registered: Nov 2007
Posts: 1
Rep:
|
Turn iptables off
/sbin/chkconfig iptables off
/sbin/service iptables stop
|
|
|
|
12-22-2007, 01:51 AM
|
#11
|
|
LQ Newbie
Registered: Dec 2007
Posts: 1
Rep:
|
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
Last edited by yxm0513; 12-22-2007 at 02:03 AM.
|
|
|
|
12-31-2007, 09:36 AM
|
#12
|
|
Member
Registered: Nov 2004
Location: ontario, canada
Distribution: debian
Posts: 52
Original Poster
Rep:
|
nope, have not resolved this yet....  urgh
|
|
|
|
12-31-2007, 09:10 PM
|
#13
|
|
Member
Registered: Dec 2003
Distribution: debian (when I can) RHEL (when I must)
Posts: 98
Rep:
|
|
|
|
|
02-21-2008, 07:33 AM
|
#14
|
|
Member
Registered: Oct 2003
Location: Greece
Posts: 260
Rep:
|
well same issue here
localhost didn't work but 127.0.0.1 worked
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 05:42 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|