• Resolved bpier

    (@bpier)


    Hi. An authz_core:error appears every day on my cpanel, due to my .user.ini. This displays : “[authz_core:error] [pid 18078:tid 47222506981120] [client XXX.XXX.XXX.XX:X] AH01630: client denied by server configuration: /home/myserverdomain/public_html/.user.ini, referer: https://lemasmedia.fr/.user.ini

    The wordfence-waf.php is present. How to resolve this error ? Thanks a lot. Pierre

    • This topic was modified 3 years, 9 months ago by bpier.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support WFAdam

    (@wfadam)

    Hello @bpier and thanks for reaching out to us!

    Can you send a diagnostic report to wftest @ wordfence . com? You can find the link to do so at the top of the Wordfence Tools > Diagnostics page. Then click on “Send Report by Email”. Please add your forum username where indicated and respond here after you have sent it.

    I want to check your Server API and make sure everything is set correctly.

    Thanks!

    Thread Starter bpier

    (@bpier)

    Hi WFAdam. I sent the diagnostics Report. Thanks a lot. Pierre

    Plugin Support WFAdam

    (@wfadam)

    Thanks for sending that diagnostic!

    What is strange is your setup shouldn’t even be using a .user.ini file for anything. If you browse to your .user.ini file using FTP or a file manager, what sort of code exists inside of it? If any?

    Since your Server API is actually Litespeed, you will want to add this code to your htaccess file, but make sure to adjust the file path to point at your wordfence-waf.php:

    # Wordfence WAF
    <IfModule LiteSpeed>
    php_value auto_prepend_file '/path/to/waf/wordfence-waf.php'
    </IfModule>
    # END Wordfence WAF

    This should optimize your firewall. Let me know if this helps!

    Thanks!

    Thread Starter bpier

    (@bpier)

    Hi WPAdam. This .user.ini was created by wordfence, during installation. This file contains this code (I replaced my real domain name with domain generic name)

    ; Wordfence WAF
    auto_prepend_file = '/home/mydomain/public_html/wordfence-waf.php'
    ; END Wordfence WAF

    I added your code in my .htaccess file, (using my domain name). I will let you informed

    Best regards
    Pierre

    • This reply was modified 3 years, 9 months ago by bpier.
    • This reply was modified 3 years, 9 months ago by bpier.
    • This reply was modified 3 years, 9 months ago by bpier.
    Plugin Support WFAdam

    (@wfadam)

    It can be created if the incorrect Server API is selected during the Optimization wizard. I recommend removing the .user.ini file(always make backups) and then use the correct code in the htaccess file:

    # Wordfence WAF
    <IfModule LiteSpeed>
    php_value auto_prepend_file '/home/mydomain/public_html/wordfence-waf.php'
    </IfModule>
    # END Wordfence WAF

    Just make sure the path to the wordfence-waf.php is correct.

    Thanks again!

    Thread Starter bpier

    (@bpier)

    OK Adam. File .user.ini renamed in .user_ini.bkp & code integrated in .htaccess
    I will keep you informed. Il will wait for 2 or 3 days before. Thanks. Pierre

    • This reply was modified 3 years, 9 months ago by bpier.
    • This reply was modified 3 years, 9 months ago by bpier.
    Thread Starter bpier

    (@bpier)

    Resolved. Thanks Adam

    Plugin Support WFAdam

    (@wfadam)

    Great news!

    Let us know if you need anything else!

    Thanks again!

    Hi there, I’m having the same issue. I will go ahead and apply the fix as mentioned, but how do I know what my Server API is? Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘.user.ini & authz_core : error’ is closed to new replies.