Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Question of autossl replacing .htaccess

Discussion in 'Security' started by royce1054, Aug 24, 2017.

Tags:
  1. royce1054

    royce1054 Registered

    Joined:
    Aug 4, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,220
    Likes Received:
    1,376
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page