Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't Connect To Apache
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
ShadowMetis
Apprentice
Apprentice


Joined: 03 Feb 2005
Posts: 181
Location: Newburgh, NY

PostPosted: Wed Feb 09, 2005 2:34 am    Post subject: Can't Connect To Apache Reply with quote

I'm unable to connect to my Apache server. I know it's started and running. I'm thinking it might have something to do with my router. I had apache set up on my computer a few times before and it worked. I don't know why it's not working. Maybe I'm not remembering something that I did. I already forwarded port 80. Is there something else I should have done?
Back to top
View user's profile Send private message
TheRAt
Veteran
Veteran


Joined: 03 Jun 2002
Posts: 1580

PostPosted: Wed Feb 09, 2005 3:51 am    Post subject: Reply with quote

Is there a local firewall on the machine apache is installed on... Also, maybe your ISP is blocking port 80 connections... Have your tried running on a different port to see if that works?
_________________
All reality is the construct of the observer.

Get Firefox and rediscover the web!

BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it.
Back to top
View user's profile Send private message
ShadowMetis
Apprentice
Apprentice


Joined: 03 Feb 2005
Posts: 181
Location: Newburgh, NY

PostPosted: Wed Feb 09, 2005 4:49 am    Post subject: Reply with quote

I'm trying to access it from the machine it's installed on and it's not working. There is no firewall. The ISP didn't have the ports blocked previously and I don't think they'd change that without notifying those they provide service to. I tried a different port anyway to be sure and no go. The message that firefox gives me is "Connection Refused."
Back to top
View user's profile Send private message
TheRAt
Veteran
Veteran


Joined: 03 Jun 2002
Posts: 1580

PostPosted: Wed Feb 09, 2005 6:52 am    Post subject: Reply with quote

Is apache running?
Code:
/etc/init.d/apache2 status
If not, then are you able to start it?
Code:
/etc/init.d/apache2 start

_________________
All reality is the construct of the observer.

Get Firefox and rediscover the web!

BOFH Excuse #295:
The Token fell out of the ring. Call us when you find it.
Back to top
View user's profile Send private message
ShadowMetis
Apprentice
Apprentice


Joined: 03 Feb 2005
Posts: 181
Location: Newburgh, NY

PostPosted: Wed Feb 09, 2005 3:18 pm    Post subject: Reply with quote

You can give me more credit than that -_-. Are there any additional ports I should forward besides 80? Is there something in the config files about working through a router? Are there any Gentoo settings that I should check?
Back to top
View user's profile Send private message
rex123
Apprentice
Apprentice


Joined: 21 Apr 2004
Posts: 272

PostPosted: Wed Feb 09, 2005 5:20 pm    Post subject: Reply with quote

You can try netstat -l, to see if the machine is listening on port 80 (netstat -ln if you prefer).
If it's listening, have a look at what IP address it's bound to.
Then try doing telnet <the ip address> 80.
It should come up with something.
Or use nmap on the IP address, to see what ports are open/closed/filtered.
Back to top
View user's profile Send private message
ShadowMetis
Apprentice
Apprentice


Joined: 03 Feb 2005
Posts: 181
Location: Newburgh, NY

PostPosted: Wed Feb 09, 2005 7:44 pm    Post subject: Reply with quote

It doesn't show up when I do netstat.

When I start apache it gives the little [!!] as if there is an error but it states none and finishes starting.
Back to top
View user's profile Send private message
rex123
Apprentice
Apprentice


Joined: 21 Apr 2004
Posts: 272

PostPosted: Thu Feb 10, 2005 9:20 am    Post subject: Reply with quote

ShadowMetis wrote:
It doesn't show up when I do netstat.

When I start apache it gives the little [!!] as if there is an error but it states none and finishes starting.


Then apache hasn't started (that !! is there because the command has returned with an error code). There are several possible causes even if the config file is OK.

What do you have in /etc/conf.d/apache2 as APACHE2_OPTS?

You could try removing all APACHE2_OPTS, and see if it still fails to start. Then add them one by one. If you have -D SSL, and a recent install of apache, you may need to create a /var/cache/apache2 directory (I know I did) because of this line:

SSLMutex file:/var/cache/apache2/ssl_mutex

You may find some information in log files about why it is failing - look in /var/log/apache for recently-modified files after an attempt to start.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum