What a time I’ve had since I last posted here on 27 Feb!
Much correspondence has passed between me and what was my then-host (I’ve since moved, as you’ll see). In this correspondence, my old host finally admitted that they had changed a cPanel setting and prevented the logging of archive files. In fact, they were adamant that they had done this “months ago” and they were not going to change it back. This led to me moving my web sites to another host. This move was completed in the last few days.
You can imagine my surprise when I began to discover that THEIR Raw Access Logs appeared to be behaving in the same way i.e. only the first 24 hours’-worth of logging was being stored in the archive log file for March 2012!
To cut a long story short, my correspondence with my new host soon uncovered the fact (in the space of just one email back and forth, in fact) that there is nothing wrong with the log files at all - the problem lies with WinZip, the program I’ve been using to unzip the files. What seems to be happening is that WinZip, in decompressing the files, only decompresses the data that was logged in the initial 24-hour period - although further chunks of 24-hour logging data are appended to the log file (it grows in size accordingly, as does the “packed size” of the compressed file within), they do not appear in the decompressed file when viewed in apps such as Winsyntax, Notepad, Word, etc!
My new host suggested I try using the free, open source app [b]7zip[/b] to unzip the files, which I did. Hey presto! All the data appears in all the log files - even the log files at the old host!
Why this should be the case is unclear, but my theory runs along these lines:
Probably nothing has changed at my old host, but what has definitely changed since the last time I opened any gzipped log files is:
-
I’ve moved from Windows XP on a 32-bit PC to Windows 7 on a 64-bit PC;
-
WinZip has gone through a few upgrades (from the 32-bit version I was using on XP), and is currently on version 16.0 (9715 - 64-bit version).
The problem must lie somewhere within those two areas. Either the current (and, perhaps recent past) version(s) of WinZip 64-bit itself has a specific bug that prevents it decompressing data appended to the initial data stored in a file of this kind when the gzip file is over-written after the first 24-hour logging period, or a combination of WinZip 64-bit running on a Windows 7 64-bit PC causes the problem.
What’s so amazing is my old host’s dogged insistence that they had changed a cPanel setting themselves to prevent proper logging. (It was this insistence that threw me completely off the scent and stopped me even beginning to consider some other reason.) I’ve even sent a seven-page letter to their MD (posted in the mail just prior to uncovering the real cause of the problem) bemoaning the fact that they admitted they’d made this change “months ago” without informing any of their customers, and demanding a pro rata refund of the annual fees I’d paid in January because they’d changed one of the fundamental functions of my hosting package without informing me!
Well. I’ll be interested to see what the MD replies (I’m saying nothing in the meantime!), but I thought you would want to know that the problem, in the end, was nothing whatsoever to do with cPanel’s software (or with my old host’s logs, for that matter!).
I hope this info proves helpful to anyone else who encounters this problem!
Best wishes,
Ted.