LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-05-2005, 07:25 PM   #1
bluethundr
Member
 
Registered: Jun 2003
Location: Summit, NJ
Distribution: CentOS 5.4
Posts: 142

Rep: Reputation: 15
Apache 2 errors out


Hi there,

Any help on this topic would be GREATLY appreciated.

I am following the tutorials in O'Reilly's "Definitive Guide to Apache" and unfortunately I am unable to get past step one in getting Apache to launch.

My entire httpd.conf consists of the following:
-----------------------------------------------------------------------------------------------
User webuser
Group webgroup

ServerName avocet

Listen 80

DocumentRoot /usr/www/APACHE3/site.toddle/htdocs/


#fix 'Out of the Box' default problems - remove leading #s if necessary
#ServerRoot /usr/www/APACHE3/site.toddle
#ErrorLog logs/error_log
#PIDFile logs/httpd.pid
#TypesConfig conf/mime.types

----------------------------------------------------------------------------------------------------------

And there is a little script to get it going that reads:

----------------------------------------------------------------------------------------------------------
test -d logs || mkdir logs
/usr/sbin/httpd -f `pwd`/conf/httpd.conf -d `pwd`
----------------------------------------------------------------------------------------------------------

These are all example files from the O'Reilly site. However any time I try to launch "go" I get the error:

------------------------------------------------------------------------------------------------------------

Syntax error on line 8 of /usr/local/www/APACHE3/site.toddle/conf/httpd.conf:
DocumentRoot must be a directory
--------------------------------------------------------------------------------------------------------------

Even though document root is obviously a directory!

---------------------------------------------------------------------------------------------------------------

drwxr-xr-x 3 502 games 4096 Mar 5 20:17 conf
-rwxr-xr-x 1 502 games 77 Jan 3 2002 go
drwxr-xr-x 2 502 games 4096 Jan 2 2001 htdocs
drwxr-xr-x 2 502 games 4096 Feb 5 2001 logs

----------------------------------------------------------------------------------------------------------------

Very perplexing, indeed. Any help here would be GREATLY appreciated!

Thanks!

Last edited by bluethundr; 03-05-2005 at 10:36 PM.
 
Old 03-06-2005, 04:59 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981Reputation: 1981
well assuming that this APACHE3 dierctory is the same one throughout, you've got the wrong path... there's a "local/" missing.
 
Old 03-12-2005, 11:57 PM   #3
bluethundr
Member
 
Registered: Jun 2003
Location: Summit, NJ
Distribution: CentOS 5.4
Posts: 142

Original Poster
Rep: Reputation: 15
Talking DOH!

Gues that one was kind of obvious when you read the fine print. Thanks for the reply! But, NOW what 's going on is that when I navigate to the page locally it 404's. Even though the httpd.conf file seems to be setup properly (now).

Sorry for the late reply but I have been away on vacation and didn't have access to my linux b0x0r.

Any help would be appreciated! This seemingly trivial Apache shite is driving me nuts!
 
  


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
Apache Webserver 403 Forbidden Errors (User not in apache group?) Mankind75 Mandriva 4 07-08-2004 06:30 AM
Apache errors penguinz Linux - General 0 06-04-2004 11:40 AM
apache errors bluestorm Linux - Software 1 12-05-2003 02:00 PM
apache errors emetib Linux - Software 3 08-23-2003 03:32 PM
Apache errors Synister Linux - Newbie 3 12-13-2002 10:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration