Warning: DocumentRoot [/home/*/public_html] does not exist

postcd

Well-Known Member
Oct 22, 2010
717
19
68
Hello,

latest WHM server and after apache restart, it returned:
Warning: DocumentRoot [/home/*/public_html] does not exist
* = one username here

Please whats the simple solution to this, causes, fixes?
 

JacobPerkins

Well-Known Member
May 2, 2014
617
97
103
cPanel Access Level
DataCenter Provider
Twitter
Hello,

Apachectl looks up to ensure docroots exist when they are specified, and will throw a warning if it doesn't exist.

You can create it via SSH, or via cPanel -> File Manager.

As for why it doesn't exist, this is something you'll need to investigate, as it could be a whole range of reasons.