Skip to main content

AutoSSL Config File Permission Denied

Comments

5 comments

  • cPanelMichael
    :36:00 PM WARN Apache detected an error in the Rewrite config.
    httpd: Syntax error in -C/-c directive: Could not open configuration file /etc/apache2/conf.modules.d/456_pagespeed.conf: Permission denied 
    Please try again. at /usr/local/cpanel/Cpanel/HttpUtils/Htaccess.pm line 435. ...caught at bin/autossl_check.pl line 264.

    Hello @JaredDetroit. This is an issue with your Apache configuration file that will affect multiple features, not just AutoSSL. The system needs to run the "/scripts/rebuildhttpdconf" command without error. Could you revert the steps you took to enable Mod_PageSpeed with EasyApache 4? Then, verify features such as AutoSSL work properly. At that point, the following thread should help you get started with installing the custom module: Installing Google PageSpeed Fails, EA4 Thank you.
    0
  • JaredDetroit
    Thank you for the reply. I was able to execute "/scripts/rebuildhttpdconf" without any errors and when I removed mod_pagespeed, AutoSSL worked properly and issued certificates. Following the link you gave me and the issues section of the github install, I was able to re-install mod_pagespeed. With a default 456_pagespeed.conf, I'm still receiving the same error when I run AutoSSL. Is there anywhere else that I can check to see what might be causing this error?
    9:29:43 PM WARN Apache detected an error in the Rewrite config.
    httpd: Syntax error in -C/-c directive: Could not open configuration file /etc/apache2/conf.modules.d/456_pagespeed.conf: Permission denied 
    Please try again. at /usr/local/cpanel/Cpanel/HttpUtils/Htaccess.pm line 435. ...caught at bin/autossl_check.pl line 264.

    0
  • cPanelMichael
    I was able to re-install mod_pagespeed. With a default 456_pagespeed.conf, I'm still receiving the same error when I run AutoSSL.

    Hello, Note the error message you notice with the AutoSSL feature is just a product of the invalid Apache configuration file. The best course of action here is to first ensure your custom Apache module is properly installed. If you can't successfully run /scripts/rebuildhttpdconf after installing the custom module, you can post to the linked PageSpeed thread to seek additional assistance. Thanks!
    0
  • JaredDetroit
    Before and after I reinstalled mod_pagespeed I am able to run /scripts/rebuildhttpdconf without any errors. I checked the file permissions of the default 456_pagespeed.conf that was installed and they were 640. I changed it to 644 and now it runs AutoSSL without errors. I guess it ended up being an easy fix. Thanks for the help.
    0
  • cPanelMichael
    I'm happy to see the issue is now resolved. Thank you for updating us with the outcome.
    0

Please sign in to leave a comment.