PDA

View Full Version : Apache help


CyberSoldier
2004-03-07, 09:51 PM CST
I have installed apache and I can get the localhost site to appear, but I cannot access my page from any other computer on or off my network. I want to have this machine as a server but I am having problems. I am new to Linux and would appreciate any help. I have DSL with a router/modem combo. I have access to my IP address through 192.168.0.1. Please help me!!!
Paul

mhelios
2004-03-08, 01:00 AM CST
First, before looking at your config, can you ping the webserving PC?
Then check that you've opened port 80 on the firewall.

Also, what's the error/message you get when you try to surf to 192.168.0.1 from another PC on the network?

These q's will do for a start..

CyberSoldier
2004-03-08, 06:13 AM CST
I do not have a problem using 192.168.0.1 from any other computers on the network. When I type that in the browser it goes to the router/modem. I have port 80 added to port forwarding for protocol TCP and UDP for the address 192.168.0.1. I want to be able to access this web server from an outsie computer as well.

mhelios
2004-03-08, 07:12 AM CST
Run redhat-config-securitylevel and make sure eth0 is a trusted device and that service WWW is checked.
Also check your /var/log/apache/error_log for any clues to what's going on.

jalrnc
2004-03-08, 10:37 AM CST
Some internet providers block port 80... try setting up your server with another one, 8080 for instance.

Bana
2004-03-08, 08:26 PM CST
Try doing a /etc/init.d/iptables stop for the client and server computers. I remeber this was a big problem for me. Although now I no longer have to for some reason...

CyberSoldier
2004-03-09, 08:23 PM CST
I have enabled ports 8080 and 80 for my IP which is 192.168.0.2. I got this by using ipconfig. Is that the right way to do it? I also have a IP from my modem. I also ran redhat-config-securitylevel and checked WWW and eth0. When trying to access this machine from another what should I be typeing.

mhelios
2004-03-10, 08:37 AM CST
Originally posted by CyberSoldier
I have enabled ports 8080 and 80 for my IP which is 192.168.0.2. I got this by using ipconfig. Is that the right way to do it? I also have a IP from my modem. I also ran redhat-config-securitylevel and checked WWW and eth0. When trying to access this machine from another what should I be typeing.
Ok, if the ports are now open, you should be able to type in (from another computer):
http://192.168.0.2:80 to reach the web server.
How did you set it up? With redhat-config-httpd?