Website stats not working after rebuild

Dweezel

Member
Sep 26, 2007
7
0
51
Hi. I have what my hosting company calls a 'miniserver'. It's running apache, php, mysql and is administered with WHM/Cpanel. Last week I had to rebuild apache as I needed the gd library for a site I was transfering over to this server. I rebuilt it with gd using the WHM and had no initial problems. I did a few checks of some sites on the server and found that a contact form on one of the sites wasn't working. Using the search feature on this forum, I found a thread that suggested I disable suexec, which I did and the problem was instantly solved.

However, I've just checked the stats for each of the sites I'm hosting and all of them (both webalizer and analog) end on October 27th which is the day I did the rebuild. Does anyone have any ideas about what I may need to do to get it working? I'm hoping it will be as easy as disabling suexec was in solving my previous problem,and also hoping it's not disabling suexec that's causing it.

I've had a look around in WHM and have found some information that is probably relevant:

Server Configuration > Statistics Software Configuration :
In this section of whm both webalizer and analog are shown as 'allowed' and 'enabled by default'. There is a warning at the top of the page which reads as follows :

"The server is having trouble keeping up with your statistics processing schedule. You should increase the time between statistic generation, or upgrade the server. If you have recently decreased the time between statistic generation, you may wish to wait that amount of time to see if the server will catch up before changing back.
I find it hard to believe what this message is telling me. The stats are set to generate once every 24 hours and the bandwith stats every 6 hours (default settings). Surely getting stats generated once a day shouldn't be beyond the servers capabilities.



Server Configuration > Tweak Settings:
Number of days between processing log files and bandwidth usage (default 1, decimal values are ok): 1

Delete each domain's access logs after stats run : Checked

The load average above the number of cpus at which logs file processing should be suspended (default 0): 0

Do not include password in the raw log download link in cPanel (via ftp). : unchecked

Do not reset /usr/local/apache/domlogs/ftpxferlog after it has been separated into each domain name's ftp log : unchecked

Keep log files at the end of the month (default is off as you can run out of disk space quickly) : unchecked

Keep Stats Log (/usr/local/cpanel/logs/stats_log) between cPanel restarts (default is off) : unchecked

Chmod value for raw apache log files (0640 is the default): This is empty

When viewing bandwidth usage in WHM, always display in Megabytes first. unchecked

Exim Stats Daemon (required for smtp bandwidth logging; must also be modified in the service manager as well : checked

Stats Log Level (default is 1, larger numbers indicate more debug information in /usr/local/cpanel/logs/stats_log) [0...10]: 1



Any help on this greatly appreciated.

TIA,

Chris.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,216
11
313
Houston, TX
cPanel Access Level
Root Administrator
...

Server Configuration > Statistics Software Configuration :
In this section of whm both webalizer and analog are shown as 'allowed' and 'enabled by default'. There is a warning at the top of the page which reads as follows :



I find it hard to believe what this message is telling me. The stats are set to generate once every 24 hours and the bandwith stats every 6 hours (default settings). Surely getting stats generated once a day shouldn't be beyond the servers capabilities.
...
If you are on a VPS, it is possible you are not being allocated sufficient use of the server's resources to complete this background process within 24 hours. In such a situation, typically hosting providers would resolve this issue by only allowing 1 stats program (thus minimizing the amount of resources required for stats processing).