Apache httpd does not start with error "DocumentRoot must be a directory"

Solution Verified - Updated -

Issue

  • Apache webserver fails to start on booting, as well as with service httpd restart, with the following error:
# service httpd start 
Starting httpd: Warning: DocumentRoot [/xxx/yyy] does not exist 
Syntax error on line 287 of /etc/httpd/conf/httpd.conf: 
DocumentRoot must be a directory 
                                                               [FAILED] 

Environment

  • Red Hat Enterprise Linux 5
  • Red Hat Enterprise Linux 6
  • httpd Apache Web Server

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content