Quote:
|
I guess you want to use mysql so you can save the history of the logs and save some extra disk space emptying them, right???
If that's your idea, what language are you working on? I can help if you need some... |
Quote:
I'm using php for the front end, but Perl for the daily dumping/truncating of the logs to the db, Again, sticking with what I know. |
ok!
So you are going with the best!!! :D If you need help, i am on |
Webalizer fix
Hello,
I experienced the same problem, webalizer 2.0.10 didn't want to resolve dns saying "DNS Support is not enabled" although i had compiled with --enable-dns. After reading this thread i had a glance at the sources, there seem to be something wrong with the configure file, although --enable-dns was specifed when configuring, USE_DNS is never defined so the sources are compiled without dns support, there's also an issue with the berkeley db headers included by default, if HAVE_DB_185H is defined (and it never is even if the header is present) it should use <db_185.h> otherwise it fallbacks to <db.h> which is apparently incompatible (some functions prototypes differs so you get compile errors). I was to lazy to check the whole configure file to see where the error was so i decided to force DNS Support & use of db_185 by modifying slightly the makefile: Makefile - line 28, the original file looks like this LIBS = -lgd -lpng -lz -lm -lnsl DEFS = -DETCDIR=\"/etc\" -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHA VE_MATH_H=1 Modify the lines so they look like this: LIBS = -lgd -lpng -lz -lm -lnsl -ldb DEFS = -DETCDIR=\"/etc\" -DHAVE_SOCKET=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_GETOPT_H=1 -DHA VE_MATH_H=1 -DUSE_DNS -DHAVE_DB_185_H (you just need to append -ldb to LIBS, and -DUSE_DNS to DEFS -DHAVE_DB_185_H to DEFS) Once you modified the file just save, and do a: make clean make make install As long as you have the db_185.h header it should compile and link fine. Hope that helps... Regards |
solution
recompile your webalizer with --enable-dns :)
also, when you do ./configure --enable-dns --enable-debug... make sure you have your DB installed configure: warning: You must have a V1.85 compatable DB library! configure: warning: DNS lookup code will be disabled... ./configure --enable-dns --enable-debug --with-db=/usr/include/ --with-dblib=/usr/lib/ |
Fixed for me....
This is a really old thread (:eek:!) but I ran into the same problem and was able to eventually get it fixed.
The problem was two-fold... A) Didn't have the Berkeley DB libraries and headers installed B) Had to do a 'make clean' before doing a new 'make' == A == When you configure webalizer, even with the --enable-dns option, you need to be on the lookout for this warning: configure: WARNING: db.h not found.. DNS/GeoDB code disabled! configure will complete even with that warning message and tell you to run 'make'... but DNS support won't be included. You have to watch for that warning message. If you see it, it means Berkeley DB isn't installed. == B == After installing Berkeley DB, I redid the ./configure and it showed that db.h was found, but after doing a make && make install, webalizer was still saying that DNS support wasn't present. This was because re-running ./configure didn't invalidate all the old '*.o' files in the webalizer src dir and dns support was still missing from them. I had to do an explicit 'make clean' before doing the 'make && make install'. Hope this helps someone! :) ---Lawrence |
All times are GMT -5. The time now is 12:51 PM. |