can't install mod_bw

blog

Verified User
Joined
Jan 28, 2011
Messages
131
Hi to All

I get this error when use guide: https://help.directadmin.com/item.php?id=339




[root@me ~]# mkdir mod_bw
[root@me ~]# cd mod_bw
[root@me mod_bw]# tar xvzf ../mod_bw-0.92.tgz
ChangeLog
LICENSE
mod_bw.c
mod_bw.txt
TODO
[root@me mod_bw]# /usr/sbin/apxs -i -a -c mod_bw.c
/var/www/build/libtool --silent --mode=compile gcc -std=gnu99 -prefer-pic -I/usr/local/include -DLINUX -D_REENTRANT -D_GNU_SOURCE -pthread -I/usr/include/apache -I/usr/include/apache -I/usr/include/apache -c -o mod_bw.lo mod_bw.c && touch mod_bw.slo
mod_bw.c: In function 'get_bw_rate':
mod_bw.c:567: error: 'conn_rec' has no member named 'remote_addr'
mod_bw.c: In function 'get_maxconn':
mod_bw.c:658: error: 'conn_rec' has no member named 'remote_addr'
mod_bw.c: In function 'get_sid':
mod_bw.c:709: error: 'conn_rec' has no member named 'remote_addr'
apxs:Error: Command failed with rc=65536


How fix issue?

Thank you.
 
Maybe it's too old? The latest is 0.92 from 2007 which is 12 years ago.
When looking at the supported platforms:

Platforms :
  • Linux/x86
  • FreeBSD/x86 v5.2
  • MacOS X/ppc x86
  • Solaris 8/sparc
  • Microsoft Windows
So maybe it's not working when you run Linux 64-bit?

Maybe mod_evasive is a better solution, works on 64bit with cP. However I don't have an installation instruction for DA.
There is a very old topic about it on the forums (please don't up that), so maybe a new howto for mod_evasive would be welcome.
 
Back
Top