LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-24-2008, 12:45 PM   #1
yuye811
LQ Newbie
 
Registered: Dec 2007
Posts: 17

Rep: Reputation: 0
web server access problem


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 ?
 
Old 01-24-2008, 02:48 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
 
Old 01-24-2008, 03:53 PM   #3
jantman
Member
 
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492

Rep: Reputation: 31
1) Check firewall configuration
2) make sure you can get into other services (you said ssh is OK, so this is OK)
3) nmap
4) post httpd.conf
 
Old 01-25-2008, 03:13 AM   #4
yuye811
LQ Newbie
 
Registered: Dec 2007
Posts: 17

Original Poster
Rep: Reputation: 0
I just reinstall the OS

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.

Last edited by yuye811; 01-25-2008 at 03:15 AM.
 
Old 01-25-2008, 04:31 AM   #5
Serapis
LQ Newbie
 
Registered: Mar 2004
Location: Germany
Distribution: Centos 5
Posts: 26

Rep: Reputation: 15
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.
 
Old 01-25-2008, 10:49 AM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
I disable it always.
 
Old 01-25-2008, 01:06 PM   #7
jantman
Member
 
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492

Rep: Reputation: 31
Oops. I totally forgot about that. I use OpenSuSE, usually with Novell AppArmor which comes with an Apache profile...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
web access of remote server atiq Linux - Server 3 02-27-2007 06:27 AM
Can't access my web server but other people can Orkie Linux - Networking 4 09-13-2005 02:35 PM
[IPTABLES] open ext access to web server on GW server kozaki Linux - Networking 3 08-27-2005 05:11 PM
Access internal web server by name LoRd Of XAoS Linux - Software 2 07-02-2004 03:56 PM
Can't access Linux web server web pages from LAN client jaydave Linux - Networking 4 03-16-2003 02:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration