Web Hosting Talk







View Full Version : VERY strange behavior in WHM/cPanel


badger58
08-31-2004, 11:06 AM
I made a few minor changes to my hosted domains, having to do with logs and web stats settings. After saving the change, several odd behaviors have surfaced.

1) When I list domains, and click on the cpanel for the domain, instead of getting the cpanel, I get the text of the redirect. Example:

===============
0.0.0.0 - foo [31/Aug/2004:10:54:35 -0400] "GET / HTTP/1.1" 301 0 "foo.com:2086/scripts2/listaccts" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040626 Firefox/0.9.1"
HTTP/1.0 301 Moved
Server: cpsrvd/9.4.0
Connection: close
Location: /frontend/x/index.html
Content-type: text/html

<a href=/frontend/x/index.html>The Document has moved here</a>
================

If I manually type in the "/frontend/x/index.html" part of the URL, I get taken to the normal cpanel page. This did not happen before I modified the config. It happens in both explorer and firefox.

2) awstats no longer loads, it prompts me to download awstats.pl which, when opened, shows an error page that is too long to post here. The relevant text states "<body>Your browser does not support frames.<br />
You must set AWStats UseFramesWhenCGI parameter to 0
to see your reports.<br />" . This browser supported frames yesterday, I suspect it does today, as well. Also, this did not happen before changes were made.

3) stats don't appear to be running. It's been well over 24 hours since the last stats runs, and the stats are not being updated. I can't find a setting that says when these stats are supposed to be run.

Here are the changes I made in order, as best as I can remember.

Edit /etc/logrotate.d/apache
Added /usr/local/apache/logs/access_logs error_logs and suexec_logs to be rotated on a daily basis, at 7AM.

Tweak Settings:
Uncheck Analog stats
Uncheck Webalizer stats
Save

After reviewing some of the sites, I decided I should re-enable those. Also decided to implement log file deletion after stats, and to save the raw logs on each individual server for historical purposes.

Tweak Settings
check analog stats
check webalizer stats
check delete each domains access logs after stats run
save.

I then went in to a couple of sites cpanels and edited the raw logs to save after stats run. It was then that I noticed the problem.

Any help would be appreciated it.

probonic
08-31-2004, 05:34 PM
Have you looked at the CPanel forums (http://forums.cpanel.net)? That is best as your first port of call for CPanel/WHM problems.

badger58
09-01-2004, 11:11 AM
I posted there as well, and it was recommended that I run these scripts.

/scripts/updatenow
/scripts/upsys
/scripts/upcp

That fixed the the strange behavior, though I suspect that just restarting cpanel during the updates had as much to do with that as anything.

I still have one site that it not rotating it's logs properly, but I have to wait until morning to see if it was just a timing issue.

Thanks.

probonic
09-01-2004, 11:16 AM
Yeah - small bugs do tend to creep into CPanel and WHM, and CPanel release updates so quickly that bugs can be fixed from one moment to the next.