You are not logged in.
Hi,
The file php-errors.log has apache.apache as owner but it changes automatically to root.root.
When that happens, I can't access glpi anymore.
How can I prevent that from happening?
Thanks. V.
Offline
Great support here...
Offline
Do you have a cron task for GLPI running as root instead of Apache?
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline
The cron task is executed as root, when I run it as apache it is not working:
root /usr/bin/php /var/www/html/glpi/front/cron.php &>/dev/null
This works
This doesn't work:
apache /usr/bin/php /var/www/html/glpi/front/cron.php &>/dev/null
Thanks.
Last edited by verus (2020-11-23 12:25:53)
Offline
Are you able to manually run the command as Apache? Do any errors show up in files/_log/cron.log or files/_log/php-errors.log? You will need to make sure the ownership on those log files is correct first before running the command.
GLPI Collaborator and Plugin Developer.
My non-English comments are automated translations. Sorry for any confusion that causes.
Mes commentaires non anglais sont des traductions automatiques. Désolé pour toute confusion qui cause.
Mis comentarios que no están en inglés son traducciones automáticas. Perdón por cualquier confusión que cause.
Offline
The cron task is executed as root, when I run it as apache it is not working:
Assuming the path below, provided by you, is the actual path for the installation, proceed as follows.
As root do:
chgrp -R apache /var/www/html/glpi/files/_log
chmod g+ws /var/www/html/glpi/files/_log
chmod g+w /var/www/html/glpi/files/_log/*
Change the Cron Job back to
apache /usr/bin/php /var/www/html/glpi/front/cron.php &>/dev/null
I hope this helps you fix the issue you're facing.
Offline
I have the same problem - but the cron is running as www-data. Ideas?
Offline
bump
Offline