移动到PHP 7.2后,php cron作业没有运行

移动到PHP 7.2后,php cron作业没有运行

问题描述:

We have previously cron jobs on apacher server php version 5.6, now we have moved to php 7.2 , cron jobs are not being run , giving this error.

Session path "/var/www/sessions" is not writable for PHP! 

We have not used session in any cron jobs.

May anyone let me know what kind of issue is this?

Thanks

我们以前在apacher服务器php版本5.6上有cron作业,现在我们已经转移到php 7.2,cron作业不是 正在运行,发出此错误。 p>

 会话路径“/ var / www / sessions”对于PHP不可写!  
  code>  pre> 
 
 

我们在任何cron作业中都没有使用会话。 p>

请问有谁让我知道这是什么类型的问题? p>

谢谢 p> div>

I have found issue for this it was path issue, cron jobs were not including up file above directory

include(../config.php); // this file was not including 

so I found solution and changed the path to this

include("/var/www/html/config.php");

now all cron jobs are working fine