Hello with all, I do not want to make my set language, because the people who to create the howtos, I give a certain respect, frankly, but, it there with a concern like same, even by respecting her howto…
http://www.howtoforge.org/how-to-blo...us-debian-etch
In carry out this installation, j' have to notice errors, perhaps that I was mistaken that arrives, but….
Quote:
apt-get install apache2-prefork-dev
Lecture des listes de paquets... Fait
Construction de l'arbre des dépendances... Fait
apache2-prefork-dev est déjà la plus récente version disponible.
0 mis à jour, 0 nouvellement installés, 0 à enlever et 0 non mis à jour.
|
Quote:
~/mod-spamhaus# make
apxs2 -Wc, -Wc,-DDST_CLASS=3 -c src/mod_spamhaus.c
/usr/share/apr-1.0/build/libtool --silent --mode=compile --tag=disable-static i486-linux-gnu-gcc -prefer-pic -DLINUX=2 -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -D_REENTRANT -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/postgresql -I/usr/include/xmltok -pthread -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include/postgresql -DDST_CLASS=3 -c -o src/mod_spamhaus.lo src/mod_spamhaus.c && touch src/mod_spamhaus.slo
src/mod_spamhaus.c: In function 'core':
src/mod_spamhaus.c:201: warning: assignment makes pointer from integer without a cast
src/mod_spamhaus.c: In function 'num_cached_ip':
src/mod_spamhaus.c:304: warning: passing argument 1 of 'atoi' makes pointer from integer without a cast
src/mod_spamhaus.c: At top level:
src/mod_spamhaus.c:313: warning: initialization from incompatible pointer type
src/mod_spamhaus.c:314: warning: initialization from incompatible pointer type
src/mod_spamhaus.c:315: warning: initialization from incompatible pointer type
src/mod_spamhaus.c:316: warning: initialization from incompatible pointer type
/usr/share/apr-1.0/build/libtool --silent --mode=link --tag=disable-static i486-linux-gnu-gcc -o src/mod_spamhaus.la -rpath /usr/lib/apache2/modules -module -avoid-version src/mod_spamhaus.lo
write "make install" to install module
|
Quote:
~/mod-spamhaus# make install
apxs2 -Wc, -Wc,-DDST_CLASS=3 -i -a -n spamhaus src/mod_spamhaus.la
/usr/share/apache2/build/instdso.sh SH_LIBTOOL='/usr/share/apr-1.0/build/libtool' src/mod_spamhaus.la /usr/lib/apache2/modules
/usr/share/apr-1.0/build/libtool --mode=install cp src/mod_spamhaus.la /usr/lib/apache2/modules/
cp src/.libs/mod_spamhaus.so /usr/lib/apache2/modules/mod_spamhaus.so
cp src/.libs/mod_spamhaus.lai /usr/lib/apache2/modules/mod_spamhaus.la
PATH="$PATH:/sbin" ldconfig -n /usr/lib/apache2/modules
----------------------------------------------------------------------
Libraries have been installed in:
/usr/lib/apache2/modules
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
chmod 644 /usr/lib/apache2/modules/mod_spamhaus.so
apxs:Error: Activation failed for custom /etc/apache2/httpd.conf file..
apxs:Error: At least one `LoadModule' directive already has to exist..
make: *** [install] Erreur 1
|
For this error, j' have make differently, saw rather, just in lower part…
Quote:
apxs:Error: Activation failed for custom /etc/apache2/httpd.conf file..
apxs:Error: At least one `LoadModule' directive already has to exist..
make: *** [install] Erreur 1
|
Quote:
|
cd /etc/apache2/mods-available/
|
To add in the file conf this line
Quote:
|
LoadModule spamhaus_module /usr/lib/apache2/modules/mod_spamhaus.so
|
To add in the file conf this line
Quote:
<IfModule mod_spamhaus.c>
MS_METHODS POST,PUT,OPTIONS,CONNECT
MS_WhiteList /etc/spamhaus.wl
MS_CacheSize 256
</IfModule>
|
To add the modules spamhaus in the active modules of Apache, then to start again apache
Quote:
a2enmod spamhaus
Module spamhaus installed; run /etc/init.d/apache2 force-reload to enable.
|
Quote:
|
/etc/init.d/apache2 reload
|
Frankly to afflict for that it to create, but, here….
MM

Recent comments
16 hours 15 min ago
21 hours 14 min ago
22 hours 40 min ago
23 hours 33 min ago
1 day 1 hour ago
1 day 5 hours ago
1 day 6 hours ago
1 day 8 hours ago
1 day 21 hours ago
1 day 23 hours ago