[Error] AH00112: Warning: DocumentRoot[/home/...] does not exist

quandt.sys

Registered
May 13, 2022
1
0
1
VN
cPanel Access Level
Root Administrator
AH00112: Warning

Hi all.

My client deletes the web directory leading to an error in the httpd configuration file. I can fix it by running rebuildhttpdconf command. However the problem will continue if my client continues to delete the folder instead of having to delete the addon/subdomain.

I haven't found a way to fix it yet. If you have encountered an error please help me.

Thank for all.
 

Attachments

cPanelWilliam

Administrator
Staff member
Mar 13, 2018
159
22
93
Houston
cPanel Access Level
Root Administrator
Hello!

I am not aware of a way to prevent this warning from showing up in the Apache error log when a user manually removes their document root. With that said, the warning you reported shouldn't cause any issues with the Apache service itself as it's just a warning and not an error. Apache should still stay online and continue to serve your other websites when this happens.

You could either resolve the warning by recreating the missing home directory via SSH with the mkdir command, or rebuilding the Apache configuration as you said.
 

Robert Spencer

Registered
Feb 10, 2016
2
0
51
South Africa
cPanel Access Level
Root Administrator
Oddly just had one of our servers have a complete failure of Apache due to a clients account being deleted in WHM by the reseller.

Searched and found this post in the top hits, so posting this here in case it happens to any one else.

Code:
[email protected] [~]# service httpd restart
Stopping httpd:                                            [FAILED]
Starting httpd: AH00112: Warning: DocumentRoot [/home/fitnes19/public_html] does not exist
AH00543: httpd: bad user name fitnes19
                                                           [FAILED]
Ran /scripts/rebuildhttpdconf and then restarted httpd.

cPanel: 102.0 (build 15)