Question of autossl replacing .htaccess

royce1054

Registered
Aug 4, 2017
4
0
1
Texas
cPanel Access Level
Root Administrator
12:59:19 AM Checking websites for “user” …
12:59:19 AM The website “user.com”, owned by “user”, has a faulty SSL certificate (OPENSSL_VERIFY:0:10:CERT_HAS_EXPIRED NOT_ALL_DOMAINS ALMOST_EXPIRED AUTOSSL_READY_FOR_RENEWAL). AutoSSL will attempt to replace this certificate.
12:59:19 AM WARN (XID 7d73ar) Process “10614” (EUID “742”, EGID “743 743”) cannot replace “/home/user/public_html/.htaccess” because this file has UID “99” and GID “743”. at bin/autossl_check.pl line 658.
12:59:19 AM The system has completed the AutoSSL check for “user”.

We are using DSO and the .htaccess file is owned by nobody:user.

Do I need to change the ownership of the .htaccess file to get the ssl cert to auto-update?

Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello,

You will need to update the ownership of the .htaccess file to the account username, or consider enabling the following option under the "Domains" tab in "WHM >> Tweak Settings":

Use a Global DCV Passthrough instead of .htaccess modification (requires EA4)

Per it's description:

When you enable this option, Apache adds global rewrite rules to the webserver configuration so that the system does not process additional rewrite rules for DCV filenames. These global rules make it unnecessary for cPanel & WHM to modify each virtual host’s .htaccess file. Note: When you enable this option, the system receives a trivial performance penalty because all of the HTTP requests must be matched against the DCV filename regular expressions.

Thank you.