LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 02-14-2007, 10:49 AM   #1
just_me_then
Member
 
Registered: Dec 2006
Posts: 59

Rep: Reputation: 15
DocumentRoot not found.


Hello,

Started a thread a while ago but didnt get very far, about my apache server refusing to start, because my document was on a diffrent partition. The partition has mountpoing /www and i have done ls -l and the result is shouwn below!

drwxrwxrwx 3 apache apache 4096 Jan 22 17:17 www

The problem is when i start apache i get the following, and it fails:

Starting httpd: Syntax error on line 265 of /etc/httpd/conf/httpd.conf:
DocumentRoot must be a directory

Line 265: DocumentRoot "/www"

Im realy lost as to whats going on hear!!!! If anyone has any advise i would be very gratefull.
 
Old 02-14-2007, 11:30 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,407

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
well clearly, it says that /www is not a directory... is it?
 
Old 02-14-2007, 01:02 PM   #3
just_me_then
Member
 
Registered: Dec 2006
Posts: 59

Original Poster
Rep: Reputation: 15
/www is the mount point of the partion. Definatly there.

I am able to put files into it. I tried creating a folder inside it, and pointing to that but still get the same.

- Oliver
 
Old 02-14-2007, 01:24 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,407

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
can the apache daemon user access it? show us the output of "ls -ld /www" and "ls -l /www"
 
Old 02-14-2007, 04:43 PM   #5
just_me_then
Member
 
Registered: Dec 2006
Posts: 59

Original Poster
Rep: Reputation: 15
I assume so. I did chown apache:apache and chmod 777 (just to eliminate that). The bits you asked for are bellow. Many thanks!

[user@localhost /]$ ls -l /www
total 48
-rw-r--r-- 1 root root 7168 Jan 28 17:06 aquota.group
-rw-r--r-- 1 root root 7168 Jan 28 17:06 aquota.user
-rw-r--r-- 1 root root 82 Jan 22 17:17 index.html
drwxr-xr-x 2 root root 16384 Jan 1 11:59 lost+found


[user@localhost /]$ ls -l /
drwxrwxrwx 3 apache apache 4096 Jan 22 17:17 www


[user@localhost /]$ ls -ld /
drwxr-xr-x 25 root root 4096 Feb 7 17:18 /


[user@localhost /]$ ls -ld /www
drwxrwxrwx 3 apache apache 4096 Jan 22 17:17 /www
 
  


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
Re: DocumentRoot... NOT!` chris Linux - Server 7 02-02-2007 11:39 AM
httpd.conf DocumentRoot marciano Linux - Software 5 10-17-2005 09:02 AM
Where is DocumentRoot? tfc MEPIS 3 06-02-2005 01:41 AM
DocumentRoot redhatlover Red Hat 3 04-27-2004 12:45 PM
DocumentRoot apache illtbagu Linux - Software 6 02-28-2003 12:04 AM


All times are GMT -5. The time now is 12:05 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration