mod_evasive icon indicating copy to clipboard operation
mod_evasive copied to clipboard

Debian install issue

Open MarcusWolschon opened this issue 6 months ago • 1 comments

I installed the .deb file from the source code (because it was not part of the release artifacts) https://github.com/jvdmr/mod_evasive/blob/main/dist/libapache2-mod-evasive.deb via dpkg -i libapache2-mod-evasive.deb as described in the README.md

I instantly got a Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/evasive.load: because that .load file didn't exist because a2enmod evasive was never executed.

However after editing the module .conf and enabling the module and confirming that /usr/lib/apache2/modules/mod_evasive.so exists and has the same permissions as the other apache modules, -rw-r--r-- 1 root root 111112 Jul 28 2024 /usr/lib/apache2/modules/mod_evasive.so I still get apachectl[1302634]: apache2: Syntax error on line 146 of /etc/apache2/apache2.conf: Syntax error on line 1 of /etc/apache2/mods-enabled/evasive.load: Cannot load /usr/lib/apache2/modules/mod_evasive.so into server: /usr/lib/apache2/modules/mod_evasive.so: cannot open shared object file: No such file or directory

It is an Apache 2.4.62-1~deb12u2 on a stock Debian

MarcusWolschon avatar Jun 17 '25 15:06 MarcusWolschon

It seems the .deb package in this repository is for arm64:

# ldd /usr/lib/apache2/modules/mod_evasive.so 
    not a dynamic executable
# file /usr/lib/apache2/modules/mod_evasive.so 
/usr/lib/apache2/modules/mod_evasive.so: ELF 64-bit LSB shared object, ARM aarch64, version 1 (SYSV), dynamically linked, BuildID[sha1]=43e69faaa40ed9c740639b6a8ff563a006dda7c3, with debug_info, not stripped

You'll find an amd64 .deb package here: https://ftp.debian.org/debian/pool/main/liba/libapache-mod-evasive/

rozwell avatar Jul 12 '25 21:07 rozwell