1

Topic: receive mail notice after upgrade ubuntu from 11.10 to 12.04

Hi Mr. Zhang..?

I just already upgrade my ubuntu server from 11.10 to 12.04 Precise Pangolin, after that I Always receice an email notice from root@myserver ,

Create/Update database for config "/etc/awstats/awstats.smtp.conf" by AWStats version 7.0 (build 1.971)
>From data in log file "perl /usr/share/doc/awstats/examples/maillogconvert.pl standard < /var/log/mail.log |"...
sh: 1: cannot open /var/log/mail.log: Permission denied
Phase 1 : First bypass old records, searching new record...
Searching new records from beginning of log file...
Error: Command for pipe 'perl /usr/share/doc/awstats/examples/maillogconvert.pl standard < /var/log/mail.log |' failed
Setup ('/etc/awstats/awstats.smtp.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
Create/Update database for config "/etc/awstats/awstats.web.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.web.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).
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).


what should I do Mr.. Please help me..?

2

Re: receive mail notice after upgrade ubuntu from 11.10 to 12.04

westriverboy wrote:

Error: Couldn't open server log file "/var/log/apache2/access.log" : Permission denied

This is the root cause.

Try this command:

# usermod -g adm www-data

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

3 (edited by Biricco 2014-09-25 21:39:22)

Re: receive mail notice after upgrade ubuntu from 11.10 to 12.04

Hello I am stepping stone to the question of having found the same problem, not to open another question. is more useful to a post with the solution without. I apologize from the beginning, if I have not made before, and for my not perfect English.
Searching on google I found myself here.
I my problem is the same, but trying ZhangHuangbin as suggested, I have not solved.

ZhangHuangbin wrote:

Try this command:

# usermod -g adm www-data


I was wondering if it was resolved or not?

This is a message i got before apply that code:

Error while processing /etc/awstats/awstats.web.conf
Create/Update database for config "/etc/awstats/awstats.web.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" : File o directory non esistente
Setup ('/etc/awstats/awstats.web.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" : File o directory non esistente
Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).

And this is that i got after apply what ZhangHuangbin suggest:

Error while processing /etc/awstats/awstats.web.conf
Create/Update database for config "/etc/awstats/awstats.web.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" : File o directory non esistente
Setup ('/etc/awstats/awstats.web.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" : File o directory non esistente
Setup ('/etc/awstats/awstats.conf' file, web server or permissions) may be wrong.
Check config file, permissions and AWStats documentation (in 'docs' directory).

I think it not worked... any suggest?

4

Re: receive mail notice after upgrade ubuntu from 11.10 to 12.04

This is not the same issue.

Biricco wrote:

Error: Couldn't open server log file "/var/log/apache2/access.log" : File o directory non esistente

You need to update /etc/awstats/awstats.conf to point to correct Apache log file.

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

5

Re: receive mail notice after upgrade ubuntu from 11.10 to 12.04

Thanks so much it solved!
I created a file access.log in "/var/log/apache2/*" and got no one more error.

6

Re: receive mail notice after upgrade ubuntu from 11.10 to 12.04

You should update Awstats config file to point to correct Apache log file, not create an empty file.

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee