LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices



Reply
 
Search this Thread
Old 07-25-2007, 10:20 AM   #1
matt1982
Member
 
Registered: Nov 2004
Location: ontario, canada
Distribution: debian
Posts: 52

Rep: Reputation: 15
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.
 
Old 07-25-2007, 04:37 PM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
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.
 
Old 07-26-2007, 08:24 AM   #3
matt1982
Member
 
Registered: Nov 2004
Location: ontario, canada
Distribution: debian
Posts: 52

Original Poster
Rep: Reputation: 15
Question

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.
 
Old 07-26-2007, 08:57 AM   #4
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
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
 
Old 07-26-2007, 09:40 AM   #5
matt1982
Member
 
Registered: Nov 2004
Location: ontario, canada
Distribution: debian
Posts: 52

Original Poster
Rep: Reputation: 15
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 09:42 AM.
 
Old 07-26-2007, 10:36 AM   #6
BillyGalbreath
Member
 
Registered: Nov 2005
Location: Houston Texas
Distribution: Debian Sid
Posts: 379

Rep: Reputation: 31
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
 
Old 07-27-2007, 09:05 AM   #7
matt1982
Member
 
Registered: Nov 2004
Location: ontario, canada
Distribution: debian
Posts: 52

Original Poster
Rep: Reputation: 15
Question

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
 
Old 07-27-2007, 09:36 PM   #8
farslayer
Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 189Reputation: 189
that just means it is listening on all IP addresses on your box..
 
Old 08-14-2007, 08:56 AM   #9
matt1982
Member
 
Registered: Nov 2004
Location: ontario, canada
Distribution: debian
Posts: 52

Original Poster
Rep: Reputation: 15
Question 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
 
Old 11-01-2007, 11:13 PM   #10
redhat69
LQ Newbie
 
Registered: Nov 2007
Posts: 1

Rep: Reputation: 0
Smile

Turn iptables off

/sbin/chkconfig iptables off
/sbin/service iptables stop
 
Old 12-22-2007, 02:51 AM   #11
yxm0513
LQ Newbie
 
Registered: Dec 2007
Posts: 1

Rep: Reputation: 0
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 03:03 AM.
 
Old 12-31-2007, 10:36 AM   #12
matt1982
Member
 
Registered: Nov 2004
Location: ontario, canada
Distribution: debian
Posts: 52

Original Poster
Rep: Reputation: 15
nope, have not resolved this yet.... urgh
 
Old 12-31-2007, 10:10 PM   #13
Velvet Elvis
Member
 
Registered: Dec 2003
Distribution: debian (when I can) RHEL (when I must)
Posts: 98

Rep: Reputation: 15
try this:

http://www.oreillynet.com/linux/blog...ocaldomai.html
 
Old 02-21-2008, 08:33 AM   #14
props666999
Member
 
Registered: Oct 2003
Location: Greece
Posts: 260

Rep: Reputation: 30
well same issue here

localhost didn't work but 127.0.0.1 worked
 
  


Reply

Tags
apache, apache2, debian


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to resolve ip(have to browse by ip) capnp72 Suse/Novell 7 01-31-2006 01:35 PM
Unable to browse ALL webpages jr88 Slackware 6 10-27-2005 01:06 PM
Unable to browse WORKGROUP when samba running mariusak Linux - Networking 10 05-30-2005 07:44 AM
Unable to browse the internet daliernest Linux - Newbie 2 08-12-2004 05:50 PM
Unable to browse internet windoze killa Linux - Networking 17 02-10-2004 04:53 AM


All times are GMT -5. The time now is 12:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration