php - Permission denied for running cron job -


i have codeigniter cron jobs in controller in /data1/src/test1. running 1 of methods in controller present in above code. run cron follows

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

test folder codeigniter framework , controller1.php present in controllers folder.and method1 function inside controller class.

but when cron runs.i error in log file permission denied. please guide me scheduling cron in codeigniter

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

"fixing" should simple chmod +x /usr/bin/php.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -