hello,
i've updated my awstats from 6.4 to 6.5 and something went wrong, because now my updates of the statistics don't work anymore.
i've searched the forum but seem to be blind..
i use logresolvemerge.pl because my logfiles are
gzipped and that didn't like the change...
with unzipped logfiles it works, otherwise i get this result:
Update for config "/etc/awstats/awstats.yyyy.index.conf"
With data in log file "/usr/local/awstats/tools/logresolvemerge.pl /home/logfile/stats/yyy1squid/squid/20060111_000000_yyy1_squid_log.gz /home/logfile/stats/yyyy1003/www.yyyy.yy.80.custom.log-20060112.gz |"...
Phase 1 : First bypass old records, searching new record...
Searching new records from beginning of log file...
bad interpreter: No such file or directory.pl: /usr/bin/perl
Error: Command for pipe '/usr/local/awstats/tools/logresolvemerge.pl /home/logfile/stats/yyy1squid/squid/20060111_000000_yyyy_squid_log.gz /home/logfile/stats/skss1003/www.yyy.yy.80.custom.log-20060112.gz |' failed
Setup ('/etc/awstats/awstats.klett.index.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
os: suse 9
perl: v5.8.3
thanx in advance for your help
chris
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hello,
i've updated my awstats from 6.4 to 6.5 and something went wrong, because now my updates of the statistics don't work anymore.
i've searched the forum but seem to be blind..
i use logresolvemerge.pl because my logfiles are
gzipped and that didn't like the change...
with unzipped logfiles it works, otherwise i get this result:
Error: Command for pipe '/usr/local/awstats/tools/logresolvemerge.pl /home/logfile/stats/yyy1squid/squid/20060111_000000_yyyy_squid_log.gz /home/logfile/stats/skss1003/www.yyy.yy.80.custom.log-20060112.gz |' failed
Setup ('/etc/awstats/awstats.klett.index.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
os: suse 9
perl: v5.8.3
thanx in advance for your help
chris
I had this happen too when I upgraded from 6.4 to 6.5.
The solution is convert the logresolvemerge.pl from dos format to unix format.
dos2unix logresolvemerge.pl
chmod +x logresolvemerge.pl
Once I did this, it worked.
Just another tip, make sure that the awstats-6.5 directory is readable by the webserver. For me, I have to chown root:www.
BINGO!!! changing the line endings from DOX to UNIX also made it work on my Mac OS X Server 10.4.8
How did DOS get in to the picture???