Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

newbie question!!! 1

Status
Not open for further replies.

fowlerlfc

MIS
Mar 20, 2002
136
US
I have just installed apache and php on a linux box. The ip address is 10.186.35.11. When I type the address from any other host's browser, I get a cannot find server message. Are there additional setting I need to set in the Apache conf files?
 
Is the other host from which you are trying to see the page on that same netork?

Any IP address beginning with "10." is private. It cannot be reached across networks without some assistance at routers or firewalls Perfection in engineering does not happen when there is nothing more to add. Rather it happens when there is nothing more to take away.
 
Tweak httpd.conf.

Is "UseCanonicalName" set to "on"?
Set it to off, restart the server, then try it. Perfection in engineering does not happen when there is nothing more to add. Rather it happens when there is nothing more to take away.
 
Let me ask some dumb questions now.

Are you hitting the site by IP address or by name?

Do the subnet masks of the two machines match? Perfection in engineering does not happen when there is nothing more to add. Rather it happens when there is nothing more to take away.
 
I am trying to access the server by IP.

Yes, the network mask is the same.

Thanks in advance for all of your help.
 
Do you know for a fact the NIC on the web server is working correctly?

What distribution of Linux? Perfection in engineering does not happen when there is nothing more to add. Rather it happens when there is nothing more to take away.
 
I can connect to the internet with that box, so I would assume it is working. Is there any other way to test it?

Using Redhat 7.1
apache 1.3.20
 
The only thing I can think of is the firewall settings on the server.

Do you have ipchains running?

Perfection in engineering does not happen when there is nothing more to add. Rather it happens when there is nothing more to take away.
 
um, I dunno. where would I look for that?

Please excuse my ignorance. I don't have a lot of linux experience.
 
As root, issue the command:
/sbin/service ipchains status

If it returns three lines like this:

Chain input (policy ACCEPT):
Chain forward (policy ACCEPT):
Chain output (policy ACCEPT):

Then it is not running. If, however, there is data between the lines "Chain input (policy ACCEPT):" and "Chain forward (policy ACCEPT):" then the internal firewall is running on that box.

If ipchains are running, stop it. Issue (again, as root):

/sbin/service ipchains stop


Then try the site from another machine. If it works, we've got the problem identified. If not, then I will be out of ideas.

Perfection in engineering does not happen when there is nothing more to add. Rather it happens when there is nothing more to take away.
 
sleipnir214,

thanks so much for all your help. your idea worked, and my webserver is now working!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top