Skip to main content

Mod_evasive access denied

Comments

10 comments

  • cPRex Jurassic Moderator

    Hey there!  Have you installed mod_evasive on the server?  This isn't a package we include by default, although it is available in EasyApache.  Can you run this command on the server to see the state of that package?

    rpm -qa | grep -i evasive
    0
  • rhm.geerts

    Hello cPRex.

    Yep I have installed mod_evasive myself.

    Output of the requested line:

    ea-apache24-mod_evasive-1.10.1-6.10.99.cpanel.x86_64

    0
  • cPRex Jurassic Moderator

    Thanks for confirming that is the case.

    I checked a new AlmaLinux 9 installation and there is nothing in the /var/log/apache2/mod_evasive directory immediately after installing mod_evasive.  Can you let me know the exact restart command you ran?

    0
  • rhm.geerts

    The restartcommand provided in my first post.

    /usr/local/cpanel/scripts/restartsrv_*
    0
  • cPRex Jurassic Moderator

    I'm not sure that will work properly - if it did, that would attempt to restart everything on the server.

    0
  • rhm.geerts

    Exactly, I just wanted to restart everything and then it thew that error so hopefully mod_evasive is working correctly.
    But seems I don't need the 1777 or is it better to keep that on the mod_evasive directory?

    0
  • cPRex Jurassic Moderator

    I would never restart everything at once like that - with everything trying to restart at the same time you'll likely run into conflicts.  It could be as simple as Apache and cPanel trying to restart at once that led to this error.

    The folder should be 770 with root:nobody ownership, so I'd ensure that it what you have.

    1
  • rhm.geerts

    Oke so best is to start via the restart services in WHM then I presume.

    I will set the folder back to 770. I didn't change ownership so it still has root:nobody as owner.

    Thank you!

    0
  • cPRex Jurassic Moderator

    You can restart the services on the command line, just don't do them all at once. 

    0
  • rhm.geerts

    Oke thank you.

    I just picked this up from the cPanel docs somewhere which is why I thought this was oke too.

    0

Please sign in to leave a comment.