Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I just installed centOS 5.1 last night on a brand new server, installation process was fine.
reboot,
ssh to server from my desktop on the LAN is fine,
check, and httpd is running,
then I try to access the server using web browser from my desktop pc on the lan, the test page of the Apache doesn't show up. And Firefox tells that server can not be reached. (ssh can, 80 is not inaccessible)
on the server, wget 127.0.0.1 is fine, wget does get the test page. So it means Apache is running, but somehow, the server reject all http requests from outside.
everything is default setting, I took a look at httpd.conf, none seems suspecious. What problem could this be ? Anyone out there with similar experience ?
So, are you plugging in the IP address in the browser or the hostname? Can you reach this server by hostname with DNS on your network? Do you have a firewall running on it? nmap is your friend in this situation.
this time going through I realized that it is the SELINUX caused the problem.
by disabling the selinux, the apache test page is accessible now :-)
by default, selinux only allow SSH access to the server.
I read on howtoforge that selinux cause more problems than benefits and author recommend turn it off. Should I turn it off completely or should I keep it on but customize the settings ?
BTW, this is an absolutely great forum, and you guys are extremely helpful, just want to say thank you.
I set SELinux to warn level.
Once I finished configuring my server, I read the logs, adjusted SELinux and then set it active again.
If you have a often changing environment, then leave it to warn level, or get a dev Virtual machine at home.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.