access.log permission for awstats

Asked by dinar qurbanov

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

access.log owner and group are: root and adm.

why there is no "adm" group in "users and groups"->"group settings"?

what should i do? from what username awstats runs? i run from browser then it is www-data i think. how to give www-data group permission to read access.log.

i do not understand groups in linux. why any file has permissions for only one group?

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Bhavani Shankar (bhavi) said :
#1

Hello

From the error message that is saying do not allow anyone (except root and anyone in the adm group) to traverse down this folder. This is probably why your awstats generation was failing (unless of course you ran it as root). Allow anyone to traverse down with the following:

$ sudo chmod 755 /var/log/apache2

Regards

Revision history for this message
dinar qurbanov (qdinar) said :
#2

i knew
that way.
i wanted more correct way.

offtopic:
this text area is small in opera 9.27. (correct please css to support opera.) i should write this to launchpad bugs.

maybe awstats_configure.pl would correct that permission. i have not run it. but maybe it already had run during .deb installation. do you know? i am now looking at its code a little.

Revision history for this message
dinar qurbanov (qdinar) said :
#3

i am looking at awstats_configure.pl's code.

Revision history for this message
Sharar Ravitz (jewfro-macabbi) said :
#4

You can also:

sudo chown /var/log/apache2/acces.log www-data

Can you help with this problem?

Provide an answer of your own, or ask dinar qurbanov for more information if necessary.

To post a message you must log in.