Restarting Apache shows a warning: DocumentRoot does not exist

Created:

2016-11-16 13:02:31 UTC

Modified:

2017-08-08 13:18:10 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Restarting Apache shows a warning: DocumentRoot does not exist

Applicable to:

  • Plesk for Linux

Symptoms

When restarting httpd service, the following warnings appear:

# service httpd restart
httpd: [ OK ]
httpd: Warning: DocumentRoot [/var/www/vhosts/example.com/httpdocs/test1] does not exist
Warning: DocumentRoot [/var/www/vhosts/example.com/httpdocs/test2] does not exist
Warning: DocumentRoot [/var/www/vhosts/example.com/httpdocs/test3] does not exist
[ OK ]

Cause

There are domains in Plesk that use mentioned directories as a vhost location, but these directories are not present on a server physically.

Resolution

There are two ways:

  • Correct the site location for mentioned domains at Plesk > Domains > example.com > Hosting Settings .

  • Create mentioned directories, for example:

    # mkdir -p /var/www/vhosts/example.com/httpdocs/test1

For Plesk 12.5 please refer to KB article #213401829

Have more questions? Submit a request

2 Comments

  • 0
    Avatar
    Ian Don LeBlanc

    So what do you do when the domain doesn't exist in plesk?

  • 0
    Avatar
    Vitaly Zhidkov

    @Ian, in case domain was removed from Plesk it is needed to check where in apache configs information about non existing directory is left and update these configs manually

Please sign in to leave a comment.