Answer the question
In order to leave comments, you need to log in
Why are GLPI requests not received from the mail server?
I have it on the server on prod and local for GLPI tests, everything initially worked, accepted applications from the mail and displayed it on the ticket.php page, now it stopped working, mb cron cleared, maybe just changed the access to the directory (I looked at www-data there ).
Now you can get applications if you go to the settings - receivers - (action) - to receive applications,
I have already searched the entire Internet. There is something like an instruction on the site
/usr/bin/php /var/www/glpi/front/cron.php
, I tried the command: I
realized that there are no rights for the PHP code to work:
PHP Warning: mkdir(): Permission denied in /var/www/glpi/inc/config.class.php on line 3105
PHP Fatal error: Uncaught UnexpectedValueException: The stream or file "/var/www/glpi/files/_log/php-errors.log" could not be opened: failed to open stream: Permission denied in /var/www/glpi/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php:107
Stack trace:
#0 /var/www/glpi/vendor/monolog/monolog/src/Monolog/Handler/AbstractProcessingHandler.php(39): Monolog\Handler\StreamHandler->write()
#1 /var/www/glpi/vendor/monolog/monolog/src/Monolog/Logger.php(344): Monolog\Handler\AbstractProcessingHandler->handle()
#2 /var/www/glpi/inc/toolbox.class.php(434): Monolog\Logger->addRecord()
#3 /var/www/glpi/inc/toolbox.class.php(468): Toolbox::log()
#4 /var/www/glpi/inc/config.class.php(3111): Toolbox::logError()
#5 /var/www/glpi/inc/config.php(56): Config::getCache()
#6 /var/www/glpi/inc/includes.php(48): include_once('/var/www/glpi/i...')
#7 /var/www/glpi/front/cron.php(38): include('/var/www/glpi/i...')
#8 {main}
thrown in /var/www/glpi/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php on line 107
* * * * * www-data /usr/bin/php /var/www/glpi/front/cron.php &> /var/www/glpi/glpi.log
Answer the question
In order to leave comments, you need to log in
The issue is resolved, thank you, rummaged through the Internet for 4 days, and eventually found the answer on the women's forums in 2004.
what to do:
1) We go on behalf of glpi (look for the password on the Internet)
2) settings -> automatic actions -> mailgate -> (we set our own conditions, it’s better to set CLI at the execution point, not GLPI, clear the last actions ) - > click save
3) go to the terminal
$: sudo crontab -e
$: * * * * /bin/php /var/www/glpi/front/cron.php &> /dev/null
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question