#1  
Old 11th September 2008, 10:33
misterm misterm is online now
Senior Member
 
Join Date: Aug 2005
Posts: 528
Thanks: 17
Thanked 7 Times in 6 Posts
Question Problem with this howto

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/
Quote:
touch spamhaus.load
To add in the file conf this line

Quote:
LoadModule spamhaus_module /usr/lib/apache2/modules/mod_spamhaus.so
Quote:
touch spamhaus.conf
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>
Quote:
touch /etc/spamhaus.wl
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
__________________
ISPConfig, the panel fantastic , http://www.ispconfig.be/forums/
http://www.ispconfig.be/
Reply With Quote
Sponsored Links
  #2  
Old 12th September 2008, 17:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

What's in /etc/apache2/httpd.conf?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
sending e-mail using mail() function linuxuser1 HOWTO-Related Questions 38 21st April 2009 12:20
bind9 configuration problem Bakty1975 Server Operation 6 11th August 2008 14:04
Setting Up Samba - Howto Problem AEngineer Server Operation 2 1st January 2007 21:12
Virtual Users And Domains HowTo saslauthd problem laser144 HOWTO-Related Questions 23 17th May 2006 15:40
SMTP TLS Problem with Mail Client dschmid Installation/Configuration 1 9th December 2005 01:56


All times are GMT +2. The time now is 17:10.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.