Symptoms
When running AutoSSL for a user, you may encounter the following error during the HTTP DCV check:
# /usr/local/cpanel/bin/autossl_check --user=cpaneluser
.........
Local HTTP DCV error (domain.tld): You do not have a document root for the domain “domain.tld”.
Cause
This error occurs when the domain in question is missing from the /etc/userdatadomains file.
Resolution
-
Confirm domain is missing from this file:
# grep exampledomain.com /etc/userdatadomains
-
Run the following command as the root user to rebuild the data in
/etc/userdatadomains:# /scripts/updateuserdatacache
-
Rebuild the Apache configuration:
# /scripts/rebuildhttpdconf
-
Restart Apache:
# /scripts/restartsrv_httpd
-
Retry AutoSSL again:
# /usr/local/cpanel/bin/autossl_check --user=cpaneluser
Note: cpaneluser needs to be replaced with the username for the cPanel account that owns the domain.
If the account's userdata is missing or corrupt, you would need to follow our documentation to rebuild it, then rerun AutoSSL:
Comments
0 comments
Article is closed for comments.