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

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 7th June 2012, 11:15
Mannekino Mannekino is offline
Junior Member
 
Join Date: Nov 2010
Posts: 8
Thanks: 2
Thanked 0 Times in 0 Posts
Default Problems with generating AWStats logs

Hello,

I was doing some checking and cleanup of my server and I noticed some mail in /var/mail/www-data. I checked the contents of these messages and found a bunch of AWStats errors like these:

Code:
Create/Update database for config "/etc/awstats/awstats.www.example.com.conf" by AWStats version 6.95 (build 1.943)
>From data in log file "/var/log/ispconfig/httpd/www.example.com/yesterday-access.log"...
Error: Couldn't open server log file "/var/log/ispconfig/httpd/www.example.com/yesterday-access.log" : No such file or directory
Setup ('/etc/awstats/awstats.www.example.com.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
Error: SiteDomain parameter not defined in your config/domain file. You must edit it for using this version of AWStats.
Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
I went to check on the first error. I looked into the directory of the log file location.

Code:
user@host:/var/log/ispconfig/httpd/www.example.com$ ls -alh
total 148K
drwxr-xr-x 2 root  root    4.0K 2012-05-10 00:30 .
drwxr-xr-x 9 root  root    4.0K 2012-03-24 17:45 ..
lrwxrwxrwx 1 root  root      19 2012-04-09 02:37 access.log -> 20120409-access.log
-rw-r--r-- 1 web11 client5 136K 2012-04-09 17:08 error.log
lrwxrwxrwx 1 root  root      54 2012-04-11 00:30 yesterday-access.log -> /var/www/clients/client5/web11/log/20120409-access.log
So I followed the symbolic link and checked that directory. And I found that it loops back to the previous directory. So it seems there is something wrong with the way the directories are created?

Code:
user@host:/var/www/clients/client5/web11$ ls -alh
total 24K
drwxr-xr-x 6 root  root    4.0K 2012-03-24 17:45 .
drwxr-xr-x 4 root  root    4.0K 2012-03-24 17:45 ..
drwxr-xr-x 2 web11 client5 4.0K 2012-03-24 17:38 cgi-bin
lrwxrwxrwx 1 root  root      41 2012-03-24 17:45 log -> /var/log/ispconfig/httpd/www.example.com
drwxr-xr-x 2 web11 client5 4.0K 2012-03-24 17:38 ssl
drwxr-xr-x 2 web11 client5 4.0K 2012-03-24 17:38 tmp
drwxr-xr-x 6 web11 client5 4.0K 2012-03-26 00:21 web
The symbolic link goes back to the directory where the yesterday-access.log is linked again. So it seems it goes in a infinite loop. How can this problem be resolved?

Kind regards,

Mannekino
Reply With Quote
Sponsored Links
  #2  
Old 7th June 2012, 11:47
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,672
Thanks: 819
Thanked 5,317 Times in 4,170 Posts
Default

The problem is a bit different, there is no loop in the symlinks. The reason for your problem is that the website has no pageviews fo more then 30 days, so no new access logs had been created and the old access logs get deleted after one month, so that the target file of the access.log symlink das not exist anymore.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 7th June 2012, 11:59
Mannekino Mannekino is offline
Junior Member
 
Join Date: Nov 2010
Posts: 8
Thanks: 2
Thanked 0 Times in 0 Posts
 
Default

Ah, that might be an explanation also then. I will make a page view for all the sites listed in the mail messages to see what happens.
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
Problems with AWStats Cletus Server Operation 12 6th July 2012 15:51
AWStats - Fix and Improvement (working) erosbk Developers' Forum 33 1st May 2012 12:04
Use old cpanel awstats logs (txt) in ispconfig server corpus General 2 14th September 2011 14:13
Generating Web Site Statistics With AWStats & JAWStats On Debian Lenny robertlouwen HOWTO-Related Questions 4 9th January 2011 03:35
Awstats killed logs luchs3 Installation/Configuration 8 10th October 2008 08:46


All times are GMT +2. The time now is 18:47.


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