Обратился клиент, что ему на почту стали приходить такие письма:
Error while processing /etc/awstats/awstats.conf
Create/Update database for config "/etc/awstats/awstats.conf" by AWStats
version 7.0 (build 1.971)
From data in log file "/var/log/apache2/access.log"...
Error: Couldn't open server log file "/var/log/apache2/access.log" :
Permission denied
Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be
wrong.
Check config file, permissions and AWStats documentation (in 'docs'
directory).
Error while processing /etc/awstats/awstats.conf
Create/Update database for config "/etc/awstats/awstats.conf" by AWStats
version 7.0 (build 1.971)
From data in log file "/var/log/apache2/access.log"...
Error: Couldn't open server log file "/var/log/apache2/access.log" :
Permission denied
Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be
wrong.
Check config file, permissions and AWStats documentation (in 'docs'
directory).
Пробовал выполнить данную штуку вручную:
# sudo -u www-data /usr/bin/perl /usr/lib/cgi-bin/awstats.pl -update -config=domain.com
Create/Update database for config "/etc/awstats/awstats.conf" by AWStats version 7.0 (build 1.971)
From data in log file "/var/log/apache2/access.log"...
Error: Couldn't open server log file "/var/log/apache2/access.log" : Permission denied
Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
Видим аналогичную ошибку.
Совет отсюда: http://linux.koolsolutions.com/2009/10/26/tip-resolving-awstats-permission-denied-error-by-www-data-cron-job/
Не помог.
Тогда я нашел данную статью: http://www.debuntu.org/awstats-error-couldnt-open-server-log-file-logresolvemerge-pl-access-log-no-such-file-or-directory/
# sudo -u www-data /usr/bin/perl /usr/lib/cgi-bin/awstats.pl -update -config=domain.com
Create/Update database for config "/etc/awstats/awstats.conf" by AWStats version 7.0 (build 1.971)
From data in log file "perl /usr/share/awstats/tools/logresolvemerge.pl /var/log/apache2/access.log"...
Error: Couldn't open server log file "perl /usr/share/awstats/tools/logresolvemerge.pl /var/log/apache2/access.log" : No such file or directory
Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
Однако и это не помогло.
В конфиге /etc/awstats/awstats.conf
Строку LogFile заменил на /var/www/volgasystem/logs/access.log (лог домена) и о чудо:
# sudo -u www-data /usr/bin/perl /usr/lib/cgi-bin/awstats.pl -update -config=domain.com
Create/Update database for config "/etc/awstats/awstats.conf" by AWStats version 7.0 (build 1.971)
From data in log file "/var/www/volgasystem/logs/access.log"...
Phase 1 : First bypass old records, searching new record...
Searching new records from beginning of log file...
Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...
Jumped lines in file: 0
Parsed lines in file: 29989
Found 47 dropped records,
Found 0 comments,
Found 0 blank records,
Found 316 corrupted records,
Found 0 old records,
Found 29627 new qualified records.
И все, мы все пофиксили, радуемся рабочему awstat'у.
Error while processing /etc/awstats/awstats.conf
Create/Update database for config "/etc/awstats/awstats.conf" by AWStats
version 7.0 (build 1.971)
From data in log file "/var/log/apache2/access.log"...
Error: Couldn't open server log file "/var/log/apache2/access.log" :
Permission denied
Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be
wrong.
Check config file, permissions and AWStats documentation (in 'docs'
directory).
Error while processing /etc/awstats/awstats.conf
Create/Update database for config "/etc/awstats/awstats.conf" by AWStats
version 7.0 (build 1.971)
From data in log file "/var/log/apache2/access.log"...
Error: Couldn't open server log file "/var/log/apache2/access.log" :
Permission denied
Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be
wrong.
Check config file, permissions and AWStats documentation (in 'docs'
directory).
Пробовал выполнить данную штуку вручную:
# sudo -u www-data /usr/bin/perl /usr/lib/cgi-bin/awstats.pl -update -config=domain.com
Create/Update database for config "/etc/awstats/awstats.conf" by AWStats version 7.0 (build 1.971)
From data in log file "/var/log/apache2/access.log"...
Error: Couldn't open server log file "/var/log/apache2/access.log" : Permission denied
Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
Видим аналогичную ошибку.
Совет отсюда: http://linux.koolsolutions.com/2009/10/26/tip-resolving-awstats-permission-denied-error-by-www-data-cron-job/
Не помог.
Тогда я нашел данную статью: http://www.debuntu.org/awstats-error-couldnt-open-server-log-file-logresolvemerge-pl-access-log-no-such-file-or-directory/
# sudo -u www-data /usr/bin/perl /usr/lib/cgi-bin/awstats.pl -update -config=domain.com
Create/Update database for config "/etc/awstats/awstats.conf" by AWStats version 7.0 (build 1.971)
From data in log file "perl /usr/share/awstats/tools/logresolvemerge.pl /var/log/apache2/access.log"...
Error: Couldn't open server log file "perl /usr/share/awstats/tools/logresolvemerge.pl /var/log/apache2/access.log" : No such file or directory
Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
Однако и это не помогло.
В конфиге /etc/awstats/awstats.conf
Строку LogFile заменил на /var/www/volgasystem/logs/access.log (лог домена) и о чудо:
# sudo -u www-data /usr/bin/perl /usr/lib/cgi-bin/awstats.pl -update -config=domain.com
Create/Update database for config "/etc/awstats/awstats.conf" by AWStats version 7.0 (build 1.971)
From data in log file "/var/www/volgasystem/logs/access.log"...
Phase 1 : First bypass old records, searching new record...
Searching new records from beginning of log file...
Phase 2 : Now process new records (Flush history on disk after 20000 hosts)...
Jumped lines in file: 0
Parsed lines in file: 29989
Found 47 dropped records,
Found 0 comments,
Found 0 blank records,
Found 316 corrupted records,
Found 0 old records,
Found 29627 new qualified records.
И все, мы все пофиксили, радуемся рабочему awstat'у.
Комментариев нет:
Отправить комментарий