/mautic/var/logs/*.php being created by root and not www-data

Your software
My Mautic version is: 3.3.3
My PHP version is: 7.4

I started seeing that I cannot edit emails and some other stuff inside Mautic, and when looking at the error logs, I see permission problems on the log files/

I went to /mautic/var/logs/ and saw that the logs are being generated by user root and not www-data. When I chown back to www-data everything works well again.

Any idea why this is happening ?

Are crons running with the proper user?

Hi @joeyk

crons are actually running as root, however I have not had an issue with this in the past with any other instances… but I will try and change them to www-data and see if that makes a difference.

Thanks,

Not sure if this is the problem, but worth a shot.