You are not logged in.
Pages: 1
Topic closed
Hi,
GLPI Version - 0.71.5
mysql Version :5.0.77-1.fc10
OS: Fedora 10
Apache : 2.2.10-2
I am new user for linux and GLPI both.
now i have got everything setup with glpi. all seems working absolutely fine except this auto pull using cron
Few detail are here:
GLPI Directory : /usr/share/glpi
Apache install with user root
When i manually click on get emails now. It works perfect.
But i followed instructions at http://glpi-project.org/wiki/doku.php?i … ig:crontab
it still did not work for me.
i tried restoring cron.php, cron.class.php from original source.
i have added in root`s cron this lines
*/1 * * * * /usr/bin/php /usr/share/glpi/front/cron.php &>/dev/null
also in cron.d folder
i found glpi file where it is something like
*/4 * * * * apache /usr/bin/php /usr/share/glpi/front/cron.php
i am getting mail in root account like this
From root@localhost.localdomain Thu Apr 16 12:16:01 2009
Return-Path: <root@localhost.localdomain>
Date: Thu, 16 Apr 2009 12:16:01 +0100
From: root@localhost.localdomain (Cron Daemon)
To: root@localhost.localdomain
Subject: Cron <root@InternalSupport> /usr/bin/php /usr/share/glpi/front/cron.php
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Status: R
can any one guide where i am wronge?
Thanks,
Sam
Offline
Have you install php5-cli ?
And change your cron (php5)
*/4 * * * * apache /usr/bin/php5 /usr/share/glpi/front/cron.php
Last edited by yllen (2009-04-16 13:48:08)
CentOS 6.5 - CentOS 7.x
PHP 5.6 - PHP 7.x - MySQL 5.6 - MariaDB 10.2 + APC + oOPcache
GLPI from 0.72 to dev version
Certifiée ITIL (ITV2F, ITILF, ITILOSA)
Offline
Hi have installed it already
php-cli-5.2.6-5.i386
more detail guide needed.
i dont have /usr/bin/php5 folder instead i have /usr/bin/php folder
to be more accurate can u guide me where this entry actully need
*/4 * * * * apache /usr/bin/php5 /usr/share/glpi/front/cron.php
i have this entry in my /etc/cron.d/ glpi
i have also add following line by crontab -e from root
*/1 * * * * /usr/bin/php /usr/share/glpi/front/cron.php &>/dev/null
error in log:
Following is the info i found from cron log
(apache) INFO (Job execution of per-minute job scheduled for 14:20 delayed into subsequent minute 14:22. Skipping job run.)
thanks,
sam
Last edited by sangram.gohil (2009-04-16 15:26:27)
Offline
what did you see when you try on command line :
#/usr/bin/php5 -a /usr/share/glpi/front/cron.php
Be sure that in /etc/php5/cli/php.ini you set memory limit to 128M
JMD / Jean-Mathieu Doléans - Glpi-project.org - Association Indepnet
Apportez votre pierre au projet GLPI : Soutenir
Offline
the command
#/usr/bin/php5 -a /usr/share/glpi/front/cron.php
result : bash: /usr/bin/php5: No such file or directory
usr/bin/php -a /usr/share/glpi/front/cron.php
result : takes me in php console like this
php>
my php.ini resides in /etc/
i chnages value of memory from 32 MB to 128 MB.
any thing else you suggest?
like .lock files to removed?
Thanks
sam
Offline
i am being late but
I have done following & it started working.
removed old >lock files from _cron folder
Thanks,
sam
Offline
> it started working.
Perfect, I close
Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/
Offline
Pages: 1
Topic closed