View previous topic :: View next topic |
Author |
Message |
ShadowMetis Apprentice

Joined: 03 Feb 2005 Posts: 181 Location: Newburgh, NY
|
Posted: Wed Feb 09, 2005 2:34 am Post subject: Can't Connect To Apache |
|
|
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 |
|
 |
TheRAt Veteran


Joined: 03 Jun 2002 Posts: 1580
|
Posted: Wed Feb 09, 2005 3:51 am Post subject: |
|
|
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 |
|
 |
ShadowMetis Apprentice

Joined: 03 Feb 2005 Posts: 181 Location: Newburgh, NY
|
Posted: Wed Feb 09, 2005 4:49 am Post subject: |
|
|
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 |
|
 |
TheRAt Veteran


Joined: 03 Jun 2002 Posts: 1580
|
Posted: Wed Feb 09, 2005 6:52 am Post subject: |
|
|
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 |
|
 |
ShadowMetis Apprentice

Joined: 03 Feb 2005 Posts: 181 Location: Newburgh, NY
|
Posted: Wed Feb 09, 2005 3:18 pm Post subject: |
|
|
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 |
|
 |
rex123 Apprentice

Joined: 21 Apr 2004 Posts: 272
|
Posted: Wed Feb 09, 2005 5:20 pm Post subject: |
|
|
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 |
|
 |
ShadowMetis Apprentice

Joined: 03 Feb 2005 Posts: 181 Location: Newburgh, NY
|
Posted: Wed Feb 09, 2005 7:44 pm Post subject: |
|
|
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 |
|
 |
rex123 Apprentice

Joined: 21 Apr 2004 Posts: 272
|
Posted: Thu Feb 10, 2005 9:20 am Post subject: |
|
|
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 |
|
 |
|