Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 24th July 2008, 21:24
bolero bolero is offline
Senior Member
 
Join Date: Apr 2008
Posts: 114
Thanks: 2
Thanked 8 Times in 8 Posts
Default

I compiled with these configure options:

./configure --with-language=german --enable-dns --enable-geoip --with-geodb=/var/lib/GeoIP

and webalizer on CentOS 5.2 has this configure line:

%configure --enable-dns --with-dblib=/lib

Doesn't look like anything of that should affect the logformat handling. There were 15 patches applied, but none seem to apply either.
Patch1: dns-db1.patch
Patch2: webalizer-2.01_10-lfs.patch
Patch3: webalizer-2.01-10-overflow.patch
Patch4: webalizer-2.01-10-underrun.patch
Patch5: webalizer-2.01-10-ipv6.patch
Patch6: webalizer-2.01_10-confuser.patch
Patch7: webalizer-2.01-10-hostname.patch
Patch8: webalizer-2.01-10-maxagent.patch
Patch9: webalizer-2.01-10-groupvisit.patch
Patch10: webalizer-2.01-10-countrycode.patch
Patch11: webalizer-2.01-10-agent-opera.patch
Patch12: webalizer-2.01-10-agent-gecko.patch
Patch13: webalizer-2.01-10-agent-apple.patch
Patch14: webalizer-2.01-10-agent-compatible.patch
Patch15: webalizer-2.01-10-agent-default.patch

Last edited by bolero; 24th July 2008 at 21:36.
Reply With Quote
Sponsored Links
  #12  
Old 24th July 2008, 23:16
bolero bolero is offline
Senior Member
 
Join Date: Apr 2008
Posts: 114
Thanks: 2
Thanked 8 Times in 8 Posts
Default

I found the reason. It's not the logfile content, it's indeed what the first line suggests, it can't follow the symlink. Weird.
Reply With Quote
  #13  
Old 24th July 2008, 23:31
bolero bolero is offline
Senior Member
 
Join Date: Apr 2008
Posts: 114
Thanks: 2
Thanked 8 Times in 8 Posts
Default

Code:
 o Added symbolic link checks for file I/O to prevent possible
   privilege escalation exploits.  Disallows reading from or writing
   to any file that is a symlink.  Thanks to Julien Danjou.
Great. This will hit many people in the future.
Reply With Quote
  #14  
Old 12th November 2008, 14:09
bplgonzo bplgonzo is offline
Member
 
Join Date: Jun 2007
Posts: 37
Thanks: 3
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by till View Post
You compiled your webalizer with the wrong path. You should have used the same path then the webalizer that was already installed on your system.

To correct this without recompiling you should rename the webalizer binray from your system, so the which cammand finds your newly compiled version.
I did this also. i compiled webalizer 2.2 with default path /usr/local/bin/webalizer
'which webalizer' now returns /usr/local/bin/webalizer

Whatever i try, path stays /usr/local/bin/webalizer

I tried apt-get remove webalizer but I guess it only remove 2.01 version
I tried to recompile webalizer with --prefix=/usr/bin but 'which webalizer' still returns /usr/local/bin/webalizer


here is what I get when I run Webalizer manually (domain names replaced with xxxxxxx.net):

www:~# /root/ispconfig/php/php -q /root/ispconfig/scripts/shell/webalizer.php
Error: Can't open log file /var/www/web1/log/web.log (symlink)
Error: Can't open log file /var/www/web19/log/web.log (symlink)
Error: Can't open log file /var/www/web18/log/web.log (symlink)
Error: Can't open log file /var/www/web21/log/web.log (symlink)
Error: Can't open log file /var/www/web6/log/web.log (symlink)
Error: Can't open log file /var/www/web22/log/web.log (symlink)


Domain: xxxxxxx.net
Log Dir: /var/www/web1/log
Max Log size: 15728640000
Current Log size: 12999005596
Domain: xxxxxxx.net
Log Dir: /var/www/web18/log
Max Log size: 31457280000
Current Log size: 79087581
Domain: xxxxxxx.net
Log Dir: /var/www/web19/log
Max Log size: 3145728000
Current Log size: 89201961
Domain: xxxxxxx.net
Log Dir: /var/www/web7/log
Max Log size: 31457280000
Current Log size: 3272915
Domain: xxxxxxx.net
Log Dir: /var/www/web6/log
Max Log size: 62914560000
Current Log size: 8572937204
Domain: xxxxxxx.net
Log Dir: /var/www/web8/log
Max Log size: 31457280
Current Log size: 0
Domain: xxxxxxx.net
Log Dir: /var/www/web21/log
Max Log size: 15728640000
Current Log size: 152756092
Domain: xxxxxxx.net
Log Dir: /var/www/web22/log
Max Log size: 31457280000
Current Log size: 468181120

i don't know what to do and how to enable new webalizer 2.2 to work with ISPConfig

Any help?
Reply With Quote
  #15  
Old 12th November 2008, 14:22
bolero bolero is offline
Senior Member
 
Join Date: Apr 2008
Posts: 114
Thanks: 2
Thanked 8 Times in 8 Posts
Default

You should read whole threads before answering or trying out anything. The last posting I made clearly states the reason for your problem. You have to edit the source code of webalizer so that it allows following of symbolic links again. Not difficult, but you have to know what you do.
Reply With Quote
  #16  
Old 12th November 2008, 17:28
bplgonzo bplgonzo is offline
Member
 
Join Date: Jun 2007
Posts: 37
Thanks: 3
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by bolero View Post
You should read whole threads before answering or trying out anything. The last posting I made clearly states the reason for your problem. You have to edit the source code of webalizer so that it allows following of symbolic links again. Not difficult, but you have to know what you do.
Yes, i did read whole thread, but you did not leave any answer for those who don't know how to do that, like me.
So i had to ask someone to tell me what to do.
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
Webalizer stats question The General General 1 12th December 2007 18:24
again on webalizer stats gilas Installation/Configuration 6 6th October 2006 17:16
webalizer stats not accessible only for one user gilas Installation/Configuration 4 21st July 2006 14:08
Help....package missing sbovisjb1 Installation/Configuration 3 31st March 2006 12:14
view webalizer stats kuyaedz General 22 12th March 2006 15:45


All times are GMT +2. The time now is 16:44.


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