How to make syslog files readable by default for phplogcon on debian?

From rsyslog wiki
Jump to: navigation, search

1. First add a new group by using this command, we call the group logadmin in this sample.

     groupadd logadmin


2. Now we add the www-data user to the new created logadmin group!

     usermod -a -G logadmin www-data


Verify the success by using this command:

     groups www-data


3. Now it is time to edit the /etc/logrotate.conf configuration file. Search for the default "create" command, and change it to the following:

     create 640 root logadmin

The next time logrotate will run, the logfiles will become readable to the webserver by default.

Back to phpLogCon FAQ