LinuxQuestions.org
Help answer threads with 0 replies.
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 04-06-2011, 04:56 PM   #1
pching
Member
 
Registered: Jan 2008
Location: Maryland US
Distribution: right now WindowsXP
Posts: 40

Rep: Reputation: 15
Cannot display index.html under Fedora 12


Hi,

I have displayed web pages (e.g., index.html) under fedora 4, 5, 7, 8 before with no difficulty. Now I troed to do similar thing under Fedora 12, and I cannot display index.html. Is Fedora 12 special?

I did '#tail -f /var/log/httpd/error-log' and noticed a line:

"SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0"

Is the SELinux policy blocking me from displaying index.html page? Or something else?

Can someone help me figure out my problem?

Thanks for your time.

Philip
 
Old 04-06-2011, 05:02 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Hello,

What browser are you using? We need more information to go off of, you know And have you tried disabling SELinux temporarily to see if that is the problem?
 
Old 04-06-2011, 06:41 PM   #3
pching
Member
 
Registered: Jan 2008
Location: Maryland US
Distribution: right now WindowsXP
Posts: 40

Original Poster
Rep: Reputation: 15
Hi Corp769,

1) Where can I turn off SELinux on my Fedora 12? (may be that will solve my problem).

2) I am using Windows IE (in host system) to access web pages on apache (runs on guest system Fedora 12).

Thanks for yor time.

Philip
 
Old 04-06-2011, 06:48 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,667

Rep: Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657
hi pching
let me get this right
1)you are using the "end of life" unsupported ( never to be updated ever again) fedora 12 -- the current is fedora 14 --
2) and running some sort of Virtual Machine on fedora 12 to run some unknown version of MS windows
3) web page is hosted in fedora 12
4) some unknown version of MS internet explorer ( running in the VM) can not see " http://localhost/index.html "
( /var/www/http/index.html ) - the fedora/apache default TEST PAGE

is that right ??
 
Old 04-06-2011, 07:53 PM   #5
pching
Member
 
Registered: Jan 2008
Location: Maryland US
Distribution: right now WindowsXP
Posts: 40

Original Poster
Rep: Reputation: 15
Hi John VV,

Thanks for your reply.

> hi pching
> let me get this right
> 1)you are using the "end of life" unsupported ( never to be updated ever again) fedora 12 -- the current is fedora 14 --

Yes. I understand. But it takes time to download Fedora 14 and then installed it as a virtual machine.

Right now I just playing with what I have (a Fedora 12 virtual machine), and I am unable to display index.html.

> 2) and running some sort of Virtual Machine on fedora 12 to run some unknown version of MS windows

My Host system is Windows 7 and guest virtual machine is Fedora 12.

> 3) web page is hosted in fedora 12

Yes. apache is running under fedora 12 and there is an index.html file.

> 4) some unknown version of MS internet explorer ( running in the VM) can not see " http://localhost/index.html "
> ( /var/www/http/index.html ) - the fedora/apache default TEST PAGE

I have Fedora 5, 7, 8 virtual machines inside this host Windows 7 system. They can all display index.html file.
But Fedora 12 will not display my index.html. So Fedora 12 is different than its previous versions of Fedora.

Corp769 suggested that I turn off SELinux on Fedora 12. But I don't know where to turn it off.

Thanks for your time.

Philip







> is that right ??
 
Old 04-06-2011, 08:06 PM   #6
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
To switch it into permissive mode, perform the following:
Code:
echo 0 > /selinux/enforce
 
Old 04-06-2011, 09:50 PM   #7
pching
Member
 
Registered: Jan 2008
Location: Maryland US
Distribution: right now WindowsXP
Posts: 40

Original Poster
Rep: Reputation: 15
Hi Corp769,

I tried '# echo 0 > /selinux/enforce'

But I don't see index.html is displayed.

So, it is not SELinux causes my problem. It is something else.
I need to investigate it.

Thanks for your time.

Philip
 
Old 04-06-2011, 10:22 PM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,667

Rep: Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657Reputation: 2657
did you configure apache?
is the apache service running ?

did you edit and configure apaches "httpd.conf" ?
you DO need to add the ip address and make sure that webroot is correct

have you studied the Apache docs?
http://httpd.apache.org/docs/2.2/

is your VM set to allow apache to run?
 
Old 04-07-2011, 09:16 AM   #9
pching
Member
 
Registered: Jan 2008
Location: Maryland US
Distribution: right now WindowsXP
Posts: 40

Original Poster
Rep: Reputation: 15
Hi John VV,

> did you configure apache?
> is the apache service running ?

Yes. apache is running on Fedora 12.

> did you edit and configure apaches "httpd.conf" ?
> you DO need to add the ip address and make sure that webroot is correct

> have you studied the Apache docs?
> http://httpd.apache.org/docs/2.2/

> is your VM set to allow apache to run?

I can run other virtual machines: Fedora 5, 7, and 8 under the same Windows 7.

But I cannot display index.html from Fedora 12. I believe I have the same setup for Fedora 12.

Thanks for your time.

Philip
 
Old 04-07-2011, 10:52 AM   #10
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 532

Rep: Reputation: 273Reputation: 273Reputation: 273
Can you see the page from inside the fedora 12, by putting http://localhost/index.html on a web browser inside the VM?
 
1 members found this post helpful.
Old 04-07-2011, 11:38 AM   #11
pching
Member
 
Registered: Jan 2008
Location: Maryland US
Distribution: right now WindowsXP
Posts: 40

Original Poster
Rep: Reputation: 15
Hi Slax-Dude,

Yes! You are right. If I enter http://localhost/index.html in FireFox (inside Fedora 12) I can see my index.html

What is the problem with IE in the host Windows 7?

Is there some setting (or configuration) I need to do in the apache of my Fedora 12?

Thanks for your help!

Philip
 
Old 04-08-2011, 09:19 AM   #12
Slax-Dude
Member
 
Registered: Mar 2006
Location: Valadares, V.N.Gaia, Portugal
Distribution: Slackware
Posts: 532

Rep: Reputation: 273Reputation: 273Reputation: 273
One of 3 things could be causing this:
1) firewall on VM guest (fedora) - try temporarily disabling it
2) firewall on VM host (windows 7) - try temporarily disabling it
3) some misconfiguration of network on your virtualization suite (we still didn't tell us what you are using run the VMs and what network topology you are using on it).

Please post more details.
 
Old 04-09-2011, 09:27 PM   #13
pching
Member
 
Registered: Jan 2008
Location: Maryland US
Distribution: right now WindowsXP
Posts: 40

Original Poster
Rep: Reputation: 15
Hi Slax_Dude,

Thanks for your response.

> One of 3 things could be causing this:
> 1) firewall on VM guest (fedora) - try temporarily disabling it

I don't know how to disable firewall on this Fedora 12.

Is it command line? Can you tell me how to do it?


> 2) firewall on VM host (windows 7) - try temporarily disabling it

I did turn off firwarewall on my host system (Windows 7).

I tried http://192.168.14.203 on the IE and still cannot display index.html (from Fedora 12).
I reboot the host and the guest, and tried again. Still cannot display index.html.


> 3) some misconfiguration of network on your virtualization suite (we still didn't tell us what you are using run the VMs and what network topology you are using on it).
>
> Please post more details.

Here is what I have:
a. I am working on a ThinkPad T510 running Windos 7 (with IE) as a host system.
b. I have VMware workstation 7.0 installed on this host system.
c. I have few guest machines setup: WindowsXP, Windows 2000 server, Fedora 4, 7, 8 and 12.
d. I setup this guest Fedora 12 last week (in bridge mode with IP address: 192.168.14.203). I am having problem with the host IE refuses to display index.html.
e. I can display index.html from Fedora 4, 7, and 8 on the host IE.
f. I disabled SELinux in /etc/SELinux/conf But that did not help.

Do I need to post more information on what i am doing?

If you tell me how to disable firewall on Fedora 12, I can try out and see if this solves my problem.

Thanks for your time.

Philip
 
Old 04-10-2011, 10:00 AM   #14
pching
Member
 
Registered: Jan 2008
Location: Maryland US
Distribution: right now WindowsXP
Posts: 40

Original Poster
Rep: Reputation: 15
Hi all,

A friend told me to go (under Fedora 12) "System - Administration - Firewall - ..."
and see if http is blocked.

Indeed it does! So I just check the box to allow http to come in and solved my problem.

Thank you all for your time.

(This question can be closed).

Philip
 
Old 04-11-2011, 06:16 AM   #15
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
If your problem is solved, mark your thread as solved using the thread tools, thanks!

Josh
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
redirect index.php to index.html bittus Linux - Software 6 12-14-2009 11:04 PM
Apache 2.2.8 up and running but failing to display index.html from htdocs dir mrowlands Linux - Software 2 02-06-2008 09:35 AM
apache index.html doesn't show up but index.php do zoffmann Linux - Server 5 01-28-2008 04:53 PM
Where to put index.php (or index.html) on Slackware 11.0 moonguide Slackware 3 05-08-2007 07:35 PM
Konqueror + file:/usr/share/doc/HTML/index.html jon_k Linux - Software 2 11-25-2003 06:06 AM

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

All times are GMT -5. The time now is 11:01 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