Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 23rd November 2009, 17:21
KingBeto KingBeto is offline
Junior Member
 
Join Date: Nov 2009
Posts: 7
Thanks: 4
Thanked 0 Times in 0 Posts
Default ISPconfig is not processing apache logs: the web Traffic overview and stats are gone

Hi everyone!
I have a very big problem.. My ISPconfig is not processing the Apache Logs.
Therefore the system does not have any web statistics and the Traffic overview is wrong since it is only processing ftp and email traffic.

Here I have an example. Note that the web traffic is not processed, but I have the same amount of visits in Google Analytics each month:

Month, Web, FTP, Mail, Overall
11/2009:, 0.00, 9.65, 29.74, 39.38
10/2009:, 0.00, 26.41, 33.20, 59.61
09/2009:, 9756.34, 21.90, 40.51, 9818.74
08/2009:, 428163.42, 1999.26, 69.78, 430232.46


I checked the apache httpd.conf and everything is ok... And I checked the web.log file that the apache generates and it is OK too.

Since the ISPconfig is not processing the web.log file, it does not delete old logs after the rotation, so old logs are accumulating and using all the disc space..

Does anyone had the same problem? Any Idea of what should I do?? I'm lost and it is a very serious problem for me! Thank you!!

Last edited by KingBeto; 23rd November 2009 at 17:23. Reason: The example table was not easy to understand.
Reply With Quote
Sponsored Links
  #2  
Old 24th November 2009, 08:09
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,478
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
Default

Please post the output of:

crontab -l
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
KingBeto (3rd December 2009)
  #3  
Old 24th November 2009, 13:59
KingBeto KingBeto is offline
Junior Member
 
Join Date: Nov 2009
Posts: 7
Thanks: 4
Thanked 0 Times in 0 Posts
Default Hello Till! This is my root crontab -l output

# crontab -l
1 1 * * * /scripts/snapshot-adverit.sh
1 2 * * * /scripts/snapshot-mysql.sh
0 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/awstats.php &> /dev/null
30 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php &> /dev/null
59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/ftp_logs.php &> /dev/null
59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/mail_logs.php &> /dev/null
59 23 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/cleanup.php &> /dev/null
0 4 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php &> /dev/null
0,30 * * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/check_services.php &> /dev/null
15 3,15 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/quota_msg.php &> /dev/null
40 00 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/traffic.php &> /dev/null
05 02 * * * /root/ispconfig/php/php /root/ispconfig/scripts/shell/backup.php &> /dev/null
41 5 * * * /etc/webmin/cron/tempdelete.pl

Thank you!
Reply With Quote
  #4  
Old 25th November 2009, 13:26
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,478
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
Default

Please run this command as root:

/root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php

and when it is finished, run:

/root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php

Do you get any errors?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
KingBeto (3rd December 2009)
  #5  
Old 25th November 2009, 20:40
KingBeto KingBeto is offline
Junior Member
 
Join Date: Nov 2009
Posts: 7
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Here it is. Please Note that for some reason, the ispconfig creates junk folders in the /var/www folder.
Like the folder "/var/www/foPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3;fficeLivePatch.0.0)" without quotes.



root@azul:~# /root/ispconfig/php/php /root/ispconfig/scripts/shell/logs.php

Warning: readlink(): Invalid argument in /root/ispconfig/scripts/shell/logs.php on line 125

Warning: readlink(): Invalid argument in /root/ispconfig/scripts/shell/logs.php on line 125
sh: -c: line 0: syntax error near unexpected token `)'
sh: -c: line 0: `chown -R 0:web0 /var/www/foPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)"'



root@azul:~# /root/ispconfig/php/php /root/ispconfig/scripts/shell/webalizer.php
Warning: Truncating oversized referrer field
Warning: Truncating oversized referrer field
Warning: Truncating oversized referrer field
Warning: Truncating oversized referrer field
Warning: Truncating oversized referrer field
Warning: Truncating oversized referrer field
Warning: Truncating oversized referrer field
Warning: Truncating oversized referrer field
Warning: Truncating oversized referrer field
Warning: Truncating oversized referrer field
Warning: Truncating oversized referrer field
Warning: Truncating oversized referrer field
Warning: Truncating oversized referrer field
Warning: Truncating oversized referrer field
Warning: Truncating oversized referrer field
Warning: Truncating oversized referrer field
Warning: Truncating oversized referrer field
Warning: Truncating oversized referrer field
[...]

Warning: Truncating oversized referrer field
Warning: Truncating oversized referrer field
Warning: Truncating oversized referrer field
Warning: Truncating oversized referrer field
Warning: Truncating oversized referrer field
Warning: Truncating oversized referrer field
15194 records (15194 ignored) in 3.00 seconds, 5064/sec
359872 records (359872 ignored) in 76.50 seconds, 4704/sec
2182 records (2182 ignored) in 0.00 seconds
57468789 records (57468789 ignored) in 94860.50 seconds, 605/sec
root@azul:~#
Reply With Quote
  #6  
Old 26th November 2009, 07:53
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,478
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
Default

There is strange directory in /var/www/ which causes the script to stop. Please take a look in /var/www/, there must be a directory with the name "foPath.2; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; OfficeLiveConnector.1.3; OfficeLivePatch.0.0)". Delete that directory and run the scripts again.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
KingBeto (3rd December 2009)
Reply

Bookmarks

Tags
apache log, ispconfig 2, stats, traffic

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
Traffic stats doesn't work ddelbia Installation/Configuration 20 21st January 2006 07:19


All times are GMT +2. The time now is 07:35.


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