Cron & logs?

Hey guys I have a small problem that is getting quite anoying.
it looks like our matrix system is set to roll our logs (or generate some sort of log report)

We previously under 3.4 used the following line as root user on the box to run cron manager. This seemed to work fine on 3.4

1,15,30,45 * * * * /usr/bin/php /var/www/matrix36/core/cron/run.php

Now we are on 3.6 I have changed this cron entry to the squiz user on the box.

There is one problem, when it rolls the log it changes the permissions on the old log files to the user the cron entry is for.

eg if that cron entry is put in squiz users cron then squiz:squiz ownership. If under root then root:root ownership.



This becomes very frustrating as matrix requires squiz:apache or root:apache to be able to write or read to the files & it throws up errors.

Anyone got a solution for this?

Regards,

Will

I usually run the Cron Manager script as Apache. :slight_smile:

[quote]I usually run the Cron Manager script as Apache. :slight_smile:
[right][post=“9465”]<{POST_SNAPBACK}>[/post][/right][/quote]



we use our web owner which in our case is web rather than the default apache group, works fine with ours. :smiley:

okies will run under apache see if it works :slight_smile:
didn't know what user ppl run it under.

Thanks again,

Will