LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 11-29-2004, 11:44 AM   #1
trekk
Member
 
Registered: Oct 2003
Location: Charlotte, NC
Distribution: Fedora Core 6
Posts: 66

Rep: Reputation: 15
Fresh Load FC3 Apache err - Docroot must be directory


Ok, was forced to redue everything... Apache loaded no problem... I'm afraid that I hosed my httpd.conf file someway. Everytime I try to start I get:

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

Using Webmin and manual edit and can't find any issues... Using an old /home/www/ on the old mirror to restore website - never had a problem before - even when I do get it to work it give me page cannot be displayed garbage; have been fighting with this for 3 days now... Had similar issues over a year ago when I set it up... don't remember how I changed it then though but the file structure and syntac <sp> has changed....

anyone?

httpd.conf ---------
ServerTokens OS

#
# ServerRoot: The top of the directory tree under which the server's
# configuration, error, and log files are kept.
#
# NOTE! If you intend to place this on an NFS (or otherwise network)
# mounted filesystem then please read the LockFile documentation
# (available at <URL:http://httpd.apache.org/docs-2.0/mod....html#lockfile>);
# you will save yourself a lot of trouble.
#
# Do NOT add a slash at the end of the directory path.
#
ServerRoot "/etc/httpd"

#
# PidFile: The file in which the server should record its process
# identification number when it starts.
#
PidFile run/httpd.pid

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 120

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive Off

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 100

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 15

##
## Server-Pool Size Regulation (MPM specific)
##

# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# ServerLimit: maximum value for MaxClients for the lifetime of the server
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>

#
# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports, in addition to the default. See also the <VirtualHost>
# directive.
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
#Listen 12.34.56.78:80
Listen 80

#
# Dynamic Shared Object (DSO) Support
#
# To be able to use the functionality of a module which was built as a DSO you
# have to place corresponding `LoadModule' lines at this location so the
# directives contained in it are actually available _before_ they are used.
# Statically compiled modules (those listed by `httpd -l') do not need
# to be loaded here.
#
# Example:
# LoadModule foo_module modules/mod_foo.so
#
LoadModule access_module modules/mod_access.so
LoadModule auth_module modules/mod_auth.so
LoadModule auth_anon_module modules/mod_auth_anon.so
LoadModule auth_dbm_module modules/mod_auth_dbm.so
LoadModule auth_digest_module modules/mod_auth_digest.so
LoadModule ldap_module modules/mod_ldap.so
LoadModule auth_ldap_module modules/mod_auth_ldap.so
LoadModule include_module modules/mod_include.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule env_module modules/mod_env.so
LoadModule mime_magic_module modules/mod_mime_magic.so
LoadModule cern_meta_module modules/mod_cern_meta.so
LoadModule expires_module modules/mod_expires.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule headers_module modules/mod_headers.so
LoadModule usertrack_module modules/mod_usertrack.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule mime_module modules/mod_mime.so
LoadModule dav_module modules/mod_dav.so
LoadModule status_module modules/mod_status.so
LoadModule autoindex_module modules/mod_autoindex.so
LoadModule asis_module modules/mod_asis.so
LoadModule info_module modules/mod_info.so
LoadModule dav_fs_module modules/mod_dav_fs.so
LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule dir_module modules/mod_dir.so
LoadModule imap_module modules/mod_imap.so
LoadModule actions_module modules/mod_actions.so
LoadModule speling_module modules/mod_speling.so
LoadModule userdir_module modules/mod_userdir.so
LoadModule alias_module modules/mod_alias.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule cache_module modules/mod_cache.so
LoadModule suexec_module modules/mod_suexec.so
LoadModule disk_cache_module modules/mod_disk_cache.so
LoadModule file_cache_module modules/mod_file_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule cgi_module modules/mod_cgi.so

#
# Load config files from the config directory "/etc/httpd/conf.d".
#
Include conf.d/*.conf

#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
#ExtendedStatus On



#


User apache
Group apache

#

ServerAdmin ssdd@nobouncenoplay.net

#

ServerName trekkserver

#

UseCanonicalName Off

#
#

DocumentRoot "/home/www/www"

#


#
#

#
# This should be changed to whatever you set DocumentRoot to.
#
Directory "/home/www/www"

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews

Options FollowSymLinks Indexes

#

<IfModule mod_userdir.c>
#

UserDir disable



</IfModule>

#


#

DirectoryIndex index.html index.html.var

#
AccessFileName .htaccess

#
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>

#
TypesConfig /etc/mime.types


DefaultType text/plain

#
# The mod_mime_magic module allows the server to use various hints from the
# contents of the file itself to determine its type. The MIMEMagicFile
# directive tells the module where the hint definitions are located.
#
<IfModule mod_mime_magic.c>
# MIMEMagicFile /usr/share/magic.mime
MIMEMagicFile conf/magic
</IfModule>

#
nameserver.
#
HostnameLookups Off

#
#
#EnableSendfile off


ErrorLog logs/error_log


LogLevel warn

#
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
#
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent

#

CustomLog logs/access_log combined

ServerSignature Email

#
<IfModule mod_dav_fs.c>
# Location of the WebDAV lock database.
DAVLockDB /var/lib/dav/lockdb
</IfModule>


ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"

#
# "/var/www/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/home/www/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>



IndexOptions FancyIndexing VersionSort NameWidth=*

AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip

AddIconByType (TXT,/icons/text.gif) text/*
AddIconByType (IMG,/icons/image2.gif) image/*
AddIconByType (SND,/icons/sound2.gif) audio/*
AddIconByType (VID,/icons/movie.gif) video/*

AddIcon /icons/binary.gif .bin .exe
AddIcon /icons/binhex.gif .hqx
AddIcon /icons/tar.gif .tar
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
AddIcon /icons/a.gif .ps .ai .eps
AddIcon /icons/layout.gif .html .shtml .htm .pdf
AddIcon /icons/text.gif .txt
AddIcon /icons/c.gif .c
AddIcon /icons/p.gif .pl .py
AddIcon /icons/f.gif .for
AddIcon /icons/dvi.gif .dvi
AddIcon /icons/uuencoded.gif .uu
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
AddIcon /icons/tex.gif .tex
AddIcon /icons/bomb.gif core

AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^

#
# DefaultIcon is which icon to show for files which do not have an icon
# explicitly set.
#
DefaultIcon /icons/unknown.gif

#
#
ReadmeName README.html
HeaderName HEADER.html

#
# IndexIgnore is a set of filenames which directory indexing should ignore
# and not include in the listing. Shell-style wildcarding is permitted.
#
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t

AddLanguage ca .ca
AddLanguage cs .cz .cs
AddLanguage da .dk
AddLanguage de .de
AddLanguage el .el
AddLanguage en .en
AddLanguage eo .eo
AddLanguage es .es
AddLanguage et .et
AddLanguage fr .fr
AddLanguage he .he
AddLanguage hr .hr
AddLanguage it .it
AddLanguage ja .ja
AddLanguage ko .ko
AddLanguage ltz .ltz
AddLanguage nl .nl
AddLanguage nn .nn
AddLanguage no .no
AddLanguage pl .po
AddLanguage pt .pt
AddLanguage pt-BR .pt-br
AddLanguage ru .ru
AddLanguage sv .sv
AddLanguage zh-CN .zh-cn
AddLanguage zh-TW .zh-tw

#
# LanguagePriority allows you to give precedence to some languages
# in case of a tie during content negotiation.
#
# Just list the languages in decreasing order of preference. We have
# more or less alphabetized them here. You probably want to change this.
#
LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW

#
# ForceLanguagePriority allows you to serve a result page rather than
# MULTIPLE CHOICES (Prefer) [in case of a tie] or NOT ACCEPTABLE (Fallback)
# [in case no accepted languages matched the available variants]
#
ForceLanguagePriority Prefer Fallback

#
# Specify a default charset for all pages sent out. This is
# always a good idea and opens the door for future internationalisation
# of your web site, should you ever want it. Specifying it as
# a default does little harm; as the standard dictates that a page
# is in iso-8859-1 (latin1) unless specified otherwise i.e. you
# are merely stating the obvious. There are also some security
# reasons in browsers, related to javascript and URL parsing
# which encourage you to always set a default char set.
#
AddDefaultCharset UTF-8

#
# Commonly used filename extensions to character sets. You probably
# want to avoid clashes with the language extensions, unless you
# are good at carefully testing your setup after each change.
# See http://www.iana.org/assignments/character-sets for the
# official list of charset names and their respective RFCs.
#
AddCharset ISO-8859-1 .iso8859-1 .latin1
AddCharset ISO-8859-2 .iso8859-2 .latin2 .cen
AddCharset ISO-8859-3 .iso8859-3 .latin3
AddCharset ISO-8859-4 .iso8859-4 .latin4
AddCharset ISO-8859-5 .iso8859-5 .latin5 .cyr .iso-ru
AddCharset ISO-8859-6 .iso8859-6 .latin6 .arb
AddCharset ISO-8859-7 .iso8859-7 .latin7 .grk
AddCharset ISO-8859-8 .iso8859-8 .latin8 .heb
AddCharset ISO-8859-9 .iso8859-9 .latin9 .trk
AddCharset ISO-2022-JP .iso2022-jp .jis
AddCharset ISO-2022-KR .iso2022-kr .kis
AddCharset ISO-2022-CN .iso2022-cn .cis
AddCharset Big5 .Big5 .big5
# For russian, more than one charset is used (depends on client, mostly):
AddCharset WINDOWS-1251 .cp-1251 .win-1251
AddCharset CP866 .cp866
AddCharset KOI8-r .koi8-r .koi8-ru
AddCharset KOI8-ru .koi8-uk .ua
AddCharset ISO-10646-UCS-2 .ucs2
AddCharset ISO-10646-UCS-4 .ucs4
AddCharset UTF-8 .utf8

# The set below does not map to a specific (iso) standard
# but works on a fairly wide range of browsers. Note that
# capitalization actually matters (it should not, but it
# does for some browsers).
#
# See http://www.iana.org/assignments/character-sets
# for a list of sorts. But browsers support few.
#
AddCharset GB2312 .gb2312 .gb
AddCharset utf-7 .utf7
AddCharset utf-8 .utf8
AddCharset big5 .big5 .b5
AddCharset EUC-TW .euc-tw
AddCharset EUC-JP .euc-jp
AddCharset EUC-KR .euc-kr
AddCharset shift_jis .sjis

#
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types.
#
#AddType application/x-tar .tgz

#
# AddEncoding allows you to have certain browsers uncompress
# information on the fly. Note: Not all browsers support this.
# Despite the name similarity, the following Add* directives have nothing
# to do with the FancyIndexing customization directives above.
#
#AddEncoding x-compress .Z
#AddEncoding x-gzip .gz .tgz

# If the AddEncoding directives above are commented-out, then you
# probably should define those extensions to indicate media types:
#
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz

#
# AddHandler allows you to map certain file extensions to "handlers":
# actions unrelated to filetype. These can be either built into the server
# or added with the Action directive (see below)
#
# To use CGI scripts outside of ScriptAliased directories:
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
#AddHandler cgi-script .cgi

#
# For files that include their own HTTP headers:
#
#AddHandler send-as-is asis

#
# For server-parsed imagemap files:
#
AddHandler imap-file map

#
# For type maps (negotiated resources):
# (This is enabled by default to allow the Apache "It Worked" page
# to be distributed in multiple languages.)
#
AddHandler type-map var

#
# Filters allow you to process content before it is sent to the client.
#
# To parse .shtml files for server-side includes (SSI):
# (You will also need to add "Includes" to the "Options" directive.)
#
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

#
# Action lets you define media types that will execute a script whenever
# a matching file is called. This eliminates the need for repeated URL
# pathnames for oft-used CGI file processors.
# Format: Action media/type /cgi-script/location
# Format: Action handler-name /cgi-script/location
#

#
# Customizable error responses come in three flavors:
# 1) plain text 2) local redirects 3) external redirects
#
# Some examples:
#ErrorDocument 500 "The server made a boo boo."
#ErrorDocument 404 /missing.html
#ErrorDocument 404 "/cgi-bin/missing_handler.pl"
#ErrorDocument 402 http://www.example.com/subscription_info.html
#

#
# Putting this all together, we can internationalize error responses.
#
# We use Alias to redirect any /error/HTTP_<error>.html.var response to
# our collection of by-error message multi-language collections. We use
# includes to substitute the appropriate text.
#
# You can modify the messages' appearance without changing any of the
# default HTTP_<error>.html.var files by adding the line:
#
# Alias /error/include/ "/your/include/path/"
#
# which allows you to create your own set of files by starting with the
# /var/www/error/include/ files and
# copying them to /your/include/path/, even on a per-VirtualHost basis.
#

Alias /error/ "/var/www/error/"

<IfModule mod_negotiation.c>
<IfModule mod_include.c>
<Directory "/var/www/error">
AllowOverride None
Options IncludesNoExec
AddOutputFilter Includes html
AddHandler type-map var
Order allow,deny
Allow from all
LanguagePriority en es de fr
ForceLanguagePriority Prefer Fallback
</Directory>

# ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var
# ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var
# ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var
# ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var
# ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var
# ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var
# ErrorDocument 410 /error/HTTP_GONE.html.var
# ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var
# ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var
# ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var
# ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var
# ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var
# ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var
# ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var
# ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var
# ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var
# ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var

</IfModule>
</IfModule>


BrowserMatch "Mozilla/2" nokeepalive
BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4\.0" force-response-1.0
BrowserMatch "Java/1\.0" force-response-1.0
BrowserMatch "JDK/1\.0" force-response-1.0


BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully
NameVirtualHost 127.0.0.1
 
Old 11-29-2004, 11:59 AM   #2
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
Geeze ... In the future grep -v '^#' /etc/httpd/conf/httpd.conf > ~/httpdToPost.conf

Anyway -- You site /home/www in your discussion, yet the server's conf file points to DocumentRoot "/home/www/www"

What is the output of ls -l /home/www?

Also, Apache doesn't serve "Page cannot be displayed". Turn off IE's stupid "Show friendly HTTP error messages" or use a real browser


Last edited by sigsegv; 11-29-2004 at 12:02 PM.
 
Old 11-29-2004, 12:15 PM   #3
trekk
Member
 
Registered: Oct 2003
Location: Charlotte, NC
Distribution: Fedora Core 6
Posts: 66

Original Poster
Rep: Reputation: 15
pardon the # remarks; I'm working remotely using ssh; just pulled it up in its intirety with the file manager and edited it to fit.

I have the /home/www as the user directory but the public html is located in

/home/www/www

kinda weird and redundant but only that because the user is www....

works for me...

noticed even though I've tried (locally in kde) to change all the permissions (several times from root to www to apache) it doesn't apparently change everything.... but here is the output of both if it helps.

and fyi: the browser is Firefox .... IE sucks.

I only gave you the page cannot be displayed as an example: the errors range any where from - not found to you don't have permission... after screwing around with it for 3 days it currently sits at not found; but I think it's because it's not running because of the current error.





[root@trekkserver conf]# ls -l /home/www
total 1252
drwxr-xr-x 4 www users 4096 Oct 24 13:58 cgi-bin
-rwxr-xr-x 1 www users 2966 Jan 24 2004 ctry_usage_200401.png
-rwxr-xr-x 1 www users 2920 Feb 12 2004 ctry_usage_200402.png
-rwxr-xr-x 1 www users 3301 Mar 21 2004 ctry_usage_200403.png
-rwxr-xr-x 1 www users 3294 May 3 2004 ctry_usage_200405.png
-rwxr-xr-x 1 www users 3273 Jul 1 00:00 ctry_usage_200406.png
-rwxr-xr-x 1 www users 2885 Aug 1 00:00 ctry_usage_200407.png
-rwxr-xr-x 1 www users 3884 Aug 31 00:00 ctry_usage_200408.png
-rwxr-xr-x 1 www users 2997 Sep 29 00:00 ctry_usage_200409.png
-rwxr-xr-x 1 www users 3146 Oct 31 00:00 ctry_usage_200410.png
-rwxr-xr-x 1 www users 3221 Nov 25 00:00 ctry_usage_200411.png
-rwxr-xr-x 1 www users 3502 Jan 24 2004 daily_usage_200401.png
-rwxr-xr-x 1 www users 3105 Feb 12 2004 daily_usage_200402.png
-rwxr-xr-x 1 www users 3351 Mar 21 2004 daily_usage_200403.png
-rwxr-xr-x 1 www users 2650 May 3 2004 daily_usage_200405.png
-rwxr-xr-x 1 www users 3664 Jul 1 00:00 daily_usage_200406.png
-rwxr-xr-x 1 www users 3550 Aug 1 00:00 daily_usage_200407.png
-rwxr-xr-x 1 www users 3491 Aug 31 00:00 daily_usage_200408.png
-rwxr-xr-x 1 www users 3345 Sep 29 00:00 daily_usage_200409.png
-rwxr-xr-x 1 www users 3452 Oct 31 00:00 daily_usage_200410.png
-rwxr-xr-x 1 www users 3340 Nov 25 00:00 daily_usage_200411.png
drwxr-xr-x 27 www users 4096 Oct 24 13:58 home2
-rwxr-xr-x 1 www users 1992 Jan 24 2004 hourly_usage_200401.png
-rwxr-xr-x 1 www users 1961 Feb 12 2004 hourly_usage_200402.png
-rwxr-xr-x 1 www users 2031 Mar 21 2004 hourly_usage_200403.png
-rwxr-xr-x 1 www users 1840 May 3 2004 hourly_usage_200405.png
-rwxr-xr-x 1 www users 2064 Jul 1 00:00 hourly_usage_200406.png
-rwxr-xr-x 1 www users 2061 Aug 1 00:00 hourly_usage_200407.png
-rwxr-xr-x 1 www users 2059 Aug 31 00:00 hourly_usage_200408.png
-rwxr-xr-x 1 www users 2032 Sep 29 00:00 hourly_usage_200409.png
-rwxr-xr-x 1 www users 2012 Oct 31 00:00 hourly_usage_200410.png
-rwxr-xr-x 1 www users 2087 Nov 25 00:00 hourly_usage_200411.png
drwxr-xr-x 2 www users 4096 Oct 24 14:09 images
-rwxr-xr-x 1 www users 9929 Nov 25 00:00 index.html
-rw-r--r-- 1 root users 108936 Nov 25 00:00 mtblog_sql
-rwxr-xr-x 1 www users 101259 Jan 24 2004 usage_200401.html
-rwxr-xr-x 1 www users 68287 Feb 12 2004 usage_200402.html
-rwxr-xr-x 1 www users 93801 Mar 21 2004 usage_200403.html
-rwxr-xr-x 1 www users 56187 May 3 2004 usage_200405.html
-rwxr-xr-x 1 www users 104001 Jul 1 00:00 usage_200406.html
-rwxr-xr-x 1 www users 100067 Aug 1 00:00 usage_200407.html
-rwxr-xr-x 1 www users 95191 Aug 31 00:00 usage_200408.html
-rwxr-xr-x 1 www users 110376 Sep 29 00:00 usage_200409.html
-rwxr-xr-x 1 www users 112822 Oct 31 00:00 usage_200410.html
-rwxr-xr-x 1 www users 110721 Nov 25 00:00 usage_200411.html
-rwxr-xr-x 1 www users 2705 Nov 25 00:00 usage.png
drwxr-xr-x 9 root root 4096 Oct 26 14:03 www
[root@trekkserver conf]# ls -l /home/www/www
total 724
drwxr-xr-x 2 root root 4096 Nov 9 12:46 archives
drwxr-xr-x 2 root root 4096 Nov 9 12:46 blog
-rwxr-xr-x 1 root root 504 Jul 15 10:27 bottom.htm
-rwxr-xr-x 1 root root 3851 Sep 9 13:56 family.htm
-rwxr-xr-x 1 root root 837 Sep 9 11:46 frames.html
-rwxr-xr-x 1 root root 2396 Sep 9 13:52 friends.htm
drwxr-xr-x 7 root root 4096 Oct 24 14:09 images
-rwxr-xr-x 1 root root 2444 Nov 8 13:33 index.html
-rwxr-xr-x 1 root root 51891 Aug 30 2003 juniorgoof.jpg
-rwxr-xr-x 1 root root 1913 Dec 15 2003 kids.htm
-rwxr-xr-x 1 root root 1695 Nov 15 12:22 main.htm
-rwxr-xr-x 1 root root 4356 Nov 8 13:33 menu.htm
drwxr-xr-x 10 root root 4096 Oct 24 14:09 mt
-rwxr-xr-x 1 root root 12944 Jan 25 2004 nobouncenoplay.webprj
-rwxr-xr-x 1 root root 2359 Sep 9 13:57 oldnews.htm
-rwxr-xr-x 1 root root 2512 Jul 24 2003 postinfo.html
-rwxr-xr-x 1 root root 99816 Dec 15 2003 richie.htm
-rwxr-xr-x 1 root root 7357 Dec 15 2003 rreview2.htm
-rwxr-xr-x 1 root root 350131 Dec 15 2003 rreview.htm
-rwxr-xr-x 1 root root 488 Dec 15 2003 template.htm
drwxr-xr-x 2 root root 4096 Oct 24 13:58 templates
drwxr-xr-x 2 root root 4096 Oct 24 13:58 toolbars
-rwxr-xr-x 1 root root 551 Dec 15 2003 top.htm
drwxr-xr-x 2 root root 4096 Oct 24 14:09 _vti_cnf
-rwxr-xr-x 1 root root 1759 Jul 24 2003 _vti_inf.html
-rwxr-xr-x 1 root root 2835 Oct 26 14:03 wedding10.htm
-rwxr-xr-x 1 root root 1728 Oct 26 14:03 wedding11.htm
-rwxr-xr-x 1 root root 1772 Oct 26 14:03 wedding12.htm
-rwxr-xr-x 1 root root 2107 Oct 26 14:03 wedding13.htm
-rwxr-xr-x 1 root root 2084 Oct 26 14:03 wedding14.htm
-rwxr-xr-x 1 root root 1827 Oct 26 14:03 wedding15.htm
-rwxr-xr-x 1 root root 2127 Oct 26 14:03 wedding16.htm
-rwxr-xr-x 1 root root 2677 Oct 27 11:38 wedding17.htm
-rwxr-xr-x 1 root root 2050 Oct 26 14:03 wedding18.htm
-rwxr-xr-x 1 root root 1104 Oct 26 14:09 wedding19.htm
-rwxr-xr-x 1 root root 1597 Oct 26 14:10 wedding20.htm
-rwxr-xr-x 1 root root 3099 Nov 8 16:59 wedding21.htm
-rwxr-xr-x 1 root root 2855 Oct 26 14:03 wedding2.htm
-rwxr-xr-x 1 root root 1844 Oct 25 11:36 wedding3.htm
-rwxr-xr-x 1 root root 1378 Oct 25 11:45 wedding4.htm
-rwxr-xr-x 1 root root 2827 Nov 15 11:50 wedding5.htm
-rwxr-xr-x 1 root root 1615 Oct 25 14:23 wedding6.htm
-rwxr-xr-x 1 root root 1706 Oct 25 17:33 wedding7.htm
-rwxr-xr-x 1 root root 2057 Oct 25 17:33 wedding8.htm
-rwxr-xr-x 1 root root 2321 Oct 25 18:00 wedding9.htm
-rwxr-xr-x 1 root root 7412 Oct 26 14:15 wedding.htm
-rwxr-xr-x 1 root root 976 Oct 25 17:33 wedding-templ.htm
-rwxr-xr-x 1 root root 14621 Aug 30 2003 writedaddy.jpg
[root@trekkserver conf]#
 
Old 11-29-2004, 12:49 PM   #4
phatboyz
Member
 
Registered: Feb 2004
Location: Mooresville NC
Distribution: CentOS 4,Free BSD,
Posts: 358

Rep: Reputation: 30
Re: Fresh Load FC3 Apache err - Docroot must be directory

Quote:
Originally posted by trekk
[BUser apache
Group apache

#

ServerAdmin ssdd@nobouncenoplay.net

#

ServerName trekkserver

#

UseCanonicalName Off

#
#

DocumentRoot "/home/www/www"

#


#
#

#
# This should be changed to whatever you set DocumentRoot to.
#
Directory "/home/www/www"

#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews

[/B]

Your doc root should be /var/www/
[root@gmbackupsvr ~]# cd /var/www
[root@gmbackupsvr www]# ls
cgi-bin error html icons
[root@gmbackupsvr www]#

Change this to the default and add system links if you need to server from /home/www/
 
Old 11-29-2004, 12:57 PM   #5
trekk
Member
 
Registered: Oct 2003
Location: Charlotte, NC
Distribution: Fedora Core 6
Posts: 66

Original Poster
Rep: Reputation: 15
? no... I know I didn't have to do that before.....

Unless it's a change between 1.3 and 2 ....

Odd.... anyone else?

meanwhile I'll see what I can shake from that....
 
Old 11-29-2004, 01:09 PM   #6
trekk
Member
 
Registered: Oct 2003
Location: Charlotte, NC
Distribution: Fedora Core 6
Posts: 66

Original Poster
Rep: Reputation: 15
OK, after I change it back to the var directory it works with the test page.... But I know that I've used that mirror before and it worked fine; without sym links.... Has to be how the mount is being seen.... ?

any ideas?
 
Old 11-29-2004, 01:20 PM   #7
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
Re: Re: Fresh Load FC3 Apache err - Docroot must be directory

Quote:
Originally posted by phatboyz
Your doc root should be /var/www/
[root@gmbackupsvr ~]# cd /var/www
[root@gmbackupsvr www]# ls
cgi-bin error html icons
[root@gmbackupsvr www]#

Change this to the default and add system links if you need to server from /home/www/
Uuuum, no ... You have have the docroot in /usr/local/www like BSD does it if you want (I know, cause I have this very thing on RHEL), or /opt/tmp/banana/www. That's why you have the DocumentRoot directive...

As for trekk's problem, what are the permissions on home and /home/www? If they're not owned by apache:apache, they'll need to have at least 751 (rwxr-x--x) for Apache to be able to find the directory. In other words, if /home/www is set 700, or even 750 and it's owned by root:root, it wont work.
 
Old 11-29-2004, 01:41 PM   #8
trekk
Member
 
Registered: Oct 2003
Location: Charlotte, NC
Distribution: Fedora Core 6
Posts: 66

Original Poster
Rep: Reputation: 15
Thought of that already...

It's all set for 775 root root

displays the test page if I change it to var/www or.. even / or whatever... wild.... but gives me the error that it's not a directory when I use /home/www/www

background - Lost server / full fresh reload except for md0 and md1 mirrors....

md1 is /home
md0 is /home2

etc..... mounted in fstab of course...

could it be the way they are mounted?



---

Can anyone post a clean un tampered with httpd.conf????

Just incase I've screwed up some directives and such....

----

next time back up right?
 
Old 11-29-2004, 01:54 PM   #9
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
clean config:

# cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf.bak
Then reinstall the apache rpms.

You might also have a look in /etc/httpd/conf.d/ and make sure something in there isn't messing you up, though I really can't think of what it might be.

If you want to, PM me and I'll give you my email addy to tarball your config up and send to.

And yes, backups are good
 
Old 11-29-2004, 01:58 PM   #10
phatboyz
Member
 
Registered: Feb 2004
Location: Mooresville NC
Distribution: CentOS 4,Free BSD,
Posts: 358

Rep: Reputation: 30
Yea, my bad... Your right /usr/local/www and the /var/www is a symlink I guess. /usr/local/www is where your html should reside. Its been awhile since I have messed with apache.
 
Old 11-29-2004, 02:08 PM   #11
trekk
Member
 
Registered: Oct 2003
Location: Charlotte, NC
Distribution: Fedora Core 6
Posts: 66

Original Poster
Rep: Reputation: 15
Heh... thought of the whole - get rid of the conf file and reinstall.... so I killed it and reinstalled from source....

after the install from source was done I thought at least I'd have a clean conf to screw with .. but it didn't write a new one... weird huh? or was it something I did or should have done....
 
Old 11-29-2004, 02:10 PM   #12
trekk
Member
 
Registered: Oct 2003
Location: Charlotte, NC
Distribution: Fedora Core 6
Posts: 66

Original Poster
Rep: Reputation: 15
ok... last resort.. just to get this done so I can move on...

tell me the easiest way to fool it ... symlinks?

how?


also; would it read the cgi-bin I have in the /home/www directory correct? etc... ideas?
 
Old 11-29-2004, 02:13 PM   #13
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
If you just installed from source with ./configure && make && make install, it likely put the new config in /usr/local/apache/conf/httpd.conf (if memory serves).
 
Old 11-29-2004, 02:21 PM   #14
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
Quote:
Originally posted by trekk
ok... last resort.. just to get this done so I can move on... tell me the easiest way to fool it ... symlinks?

how?

also; would it read the cgi-bin I have in the /home/www directory correct? etc... ideas?
The quickest solution would be to do a binary RPM install, then copy /home/www/www/* to /var/www/html/ and repeat for /var/www/cgi-bin. I'd suggest symlinking /var/www/html and /var/www/cgi-bin to their real locations in /home/www/, but that is likely going to land you back where you started.
 
Old 11-29-2004, 02:36 PM   #15
trekk
Member
 
Registered: Oct 2003
Location: Charlotte, NC
Distribution: Fedora Core 6
Posts: 66

Original Poster
Rep: Reputation: 15
And the plot thickens....

ok... check this....

So I check out the apache directory .. it's not apache it's apache2.... new version.... copyed it to the /etc/httpd/conf where the other one is located and over write it...

just for S & G's I run apache...

Starting httpd: Syntax error on line 358 of /etc/httpd/conf/httpd.conf:
Invalid command 'Order', perhaps mis-spelled or defined by a module not included in the server configuration
[FAILED]

Line 358 is:
Order allow,deny



Is it possible I have 1.3 installed trying to run 2.0 conf file.??? I know the syntax changed in the new version.

ACK! I'm loosing my head....
 
  


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 Directory Listing Of NFS Mount, cannot view directory list via apache luqmana Linux - Networking 2 12-19-2005 06:03 AM
Dual system boot err: rootnoverify(hd1,0),but the hd0 err msg existed befor shut down lilipeng24 Linux - General 3 06-25-2005 12:10 PM
Fresh install of Slackware will not load X whited Linux - Hardware 4 06-04-2005 03:16 PM
Fresh FC3 install, how to boot? haertig Linux - Newbie 5 11-28-2004 05:10 PM
X server will not load on fresh install of 9.2 loctan Mandriva 1 01-07-2004 05:15 AM


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