pasted from my http.conf file: DocumentRoot "/home/chris/Public/www"
Jordanlw: I removed the / from <Directory />
[root@webserver ~]# /sbin/service httpd restart
Stopping httpd: [FAILED]
Starting httpd: httpd: Syntax error on line 341 of /etc/httpd/conf/httpd.conf: </Directory> without matching <Directory> section
[FAILED]
[root@webserver ~]#
There may be a problem somewhere else, pasting a large section of the http.conf file:
#<Directory "/var/www/html">
#<Directory "/home/chris/Public/www">
<Directory>
Options FollowSymLinks
AllowOverride None
</Directory>
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
#
http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
#
I'll add opening <Directory> here, seems to be missing from the default http.conf file
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride None
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
It looks like the above line may be causing a problem, no matching <Directory>
I added the opening <Directory>
[root@webserver ~]# /sbin/service httpd restart
Stopping httpd: [FAILED]
Starting httpd: Syntax error on line 281 of /etc/httpd/conf/httpd.conf:
DocumentRoot must be a directory
[FAILED]
[root@webserver ~]#
Back to the earlier error.