Restarting Apache shows warning: DocumentRoot does not exist

Created:

2016-11-16 13:02:31 UTC

Modified:

2017-04-24 11:05:38 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Restarting Apache shows warning: DocumentRoot does not exist

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.0 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Symptoms

When restarting httpd service, the following warnings appear:

# service httpd restart
httpd: [ OK ]
httpd: Warning: DocumentRoot [/var/www/vhosts/domain.tld/httpdocs/pms52ru] does not exist
Warning: DocumentRoot [/var/www/vhosts/domain.tld/httpdocs/qwe] does not exist
Warning: DocumentRoot [/var/www/vhosts/domain.tld/httpdocs/rty] does not exist
[ OK ]

Cause

There are domains in Plesk that use mentioned directory as vhost location. But the mentioned directories are not presented on the server physically.

Resolution

There are two ways:

  • Correct the site location in Plesk for mentioned in warning domains in Websites & Domains > Hosting Settings .

  • Create mentioned directories, for example:

    # mkdir -p /var/www/vhosts/domain.tld/httpdocs/qwe

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.