doutong6814
2019-01-29 05:11
浏览 75
已采纳

移动到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

图片转代码服务由CSDN问答提供 功能建议

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

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

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

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

谢谢

  • 写回答
  • 好问题 提建议
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dpub33855 2019-02-08 11:27
    已采纳

    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

    已采纳该答案
    评论
    解决 无用
    打赏 举报

相关推荐 更多相似问题