LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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-31-2011, 04:49 PM   #1
linuxguy08
Member
 
Registered: Apr 2008
Posts: 155
Blog Entries: 2

Rep: Reputation: 15
apache document not exist error


Hi ,

I am in the process of migrating my old server into new Linux new server. As part of the , apache configuraton is one of the process . i have installed http with yum. i added some test dir like /date/test underwhich i created one test.html. When i start apache , it says

Starting httpd: Warning: DocumentRoot [/data/test] does not exist
i am not sure about it. I have directory exists. however it shows the error message.
Apache version
--------------
httpd-devel-2.2.3-43.el5.centos.3
httpd-devel-2.2.3-43.el5.centos.3
httpd-2.2.3-43.el5.centos.3
httpd-manual-2.2.3-43.el5.centos.3
Centos Version :
CentOS release 5.5 (Final)

Uname -r
2.6.18-194.32.1.el5
NameVirtualHost ipaddress:80
<VirtualHost ipaddress:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot /data/test
ServerName portal-migration
# ErrorLog logs/dummy-host.example.com-error_log
# CustomLog logs/dummy-host.example.com-access_log common
</VirtualHost>

Can anyone pls help me this out ?
Thanks
 
Old 01-31-2011, 06:23 PM   #2
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

Rep: Reputation: 38
Are you running selinux?

Code:
getenforce
If enforcing, install setroubleshootd or if it is already installed check /var/log/messages for the sealert command suggestion.
 
Old 01-31-2011, 06:44 PM   #3
linuxguy08
Member
 
Registered: Apr 2008
Posts: 155

Original Poster
Blog Entries: 2

Rep: Reputation: 15
Thanks for the infor
I ran
system-config-securitylevel-tui

and disabled selinux

after this setting , it didnot show the error mesaages.

I am windering what is the selinux setting ?
 
Old 01-31-2011, 07:36 PM   #4
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS, Ubuntu
Posts: 379

Rep: Reputation: 38
selinux controls what files and directories applications can access using contexts. Much like you would not want the apache user to be able to read /etc/shadow in the event that something was mis-configured in the web server.

You can check contexts by using ls -lZ and modify them with the chcon command
 
  


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
Apache 2.2 error log stating file doesnt exist, when it clearly does. sarina1975 Linux - General 5 08-20-2006 05:56 PM
Apache and Firefox "Document contains no data" error. ]SK[ Linux - Software 0 08-16-2005 01:44 AM
Apache: Document Not Found error voyciz Linux - Software 3 06-17-2004 04:51 AM
Document Root in Apache Hal Linux - Newbie 2 10-28-2003 06:10 AM
Apache 2.0.40 and document path Drogo Linux - Software 11 06-27-2003 10:05 AM

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

All times are GMT -5. The time now is 04:48 PM.

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