After I have updated lang/perl5.20 to 5.20 using PKGNG I am now receiving the following error on all the cron jobs that run perl scripts as the www user:
The Cron job is:
Additionally...
Interesting thing is, it works fine if I run it interactively as www:
Code:
Can't locate operating_systems.pm: Permission denied at /usr/local/www/awstats/cgi-bin/awstats.pl line 2258.
Can't locate common.pl: Permission denied at /usr/local/www/lightsquid/lightparser.pl line 36.
The Cron job is:
Code:
@hourly /usr/local/www/lightsquid/lightparser.pl today #LigthSquid
@hourly /usr/local/bin/perl /usr/local/www/awstats/cgi-bin/awstats.pl -config=saturn -update #Update Webstats
Additionally...
Code:
root@saturn:~ # head /usr/local/www/lightsquid/lightparser.pl
#!/usr/local/bin/perl
#
# LightSquid Project (c) 2004-2005 Sergey Erokhin aka ESL
Interesting thing is, it works fine if I run it interactively as www:
Code:
su -m www -c '/usr/local/www/lightsquid/lightparser.pl today'
Code:
root@saturn:~ # su -m www -c '/usr/local/bin/perl /usr/local/www/awstats/cgi-bin/awstats.pl -config=saturn -update'
Create/Update database for config "/usr/local/etc/awstats/awstats.saturn.conf" by AWStats version 7.4 (build 20150714)
From data in log file "/var/log/httpd-access.log"...
Phase 1 : First bypass old records, searching new record...
Direct access after last parsed record (after line 657112)
Jumped lines in file: 657112
Found 657112 already parsed records.
Parsed lines in file: 59
Found 0 dropped records,
Found 0 comments,
Found 0 blank records,
Found 0 corrupted records,
Found 0 old records,
Found 59 new qualified records.