doulian8742 2016-02-08 15:33
浏览 46

运行cron作业的权限被拒绝

I have codeigniter cron jobs in controller in /data1/src/test1. I am running one of the methods in controller present in above code. so i run the cron as follows

30 08   *   *   * /usr/bin/php  /data2/src/test/index.php controller method1 > /tmp/test.log 2>&1.

Test folder is codeigniter framework and controller1.php is present in controllers folder.and method1 is function inside this controller class.

But when this cron runs.I get error in log file as permission denied. Please guide me for scheduling cron in codeigniter

  • 写回答

1条回答 默认 最新

  • douzhongjian0752 2016-02-08 19:14
    关注

    The user under which the crontab runs doesn't have permissions to access /usr/bin/php.

    "Fixing" it should be as simple as chmod +x /usr/bin/php.

    评论

报告相同问题?

悬赏问题

  • ¥15 #MATLAB仿真#车辆换道路径规划
  • ¥15 java 操作 elasticsearch 8.1 实现 索引的重建
  • ¥15 数据可视化Python
  • ¥15 要给毕业设计添加扫码登录的功能!!有偿
  • ¥15 kafka 分区副本增加会导致消息丢失或者不可用吗?
  • ¥15 微信公众号自制会员卡没有收款渠道啊
  • ¥100 Jenkins自动化部署—悬赏100元
  • ¥15 关于#python#的问题:求帮写python代码
  • ¥20 MATLAB画图图形出现上下震荡的线条
  • ¥15 关于#windows#的问题:怎么用WIN 11系统的电脑 克隆WIN NT3.51-4.0系统的硬盘