linux - Errors while executing a PHP script with crontab -


i'm making website php5, here's setup: website hosted on raspberry pi running raspbian (debian) os. i'm using nginx web server php5-fpm 5.4.39. website made using atomik framework , script made consolekit plugin (it's little specific problem may not).

so have script, , run php /path/to/index.php <command>. works great when using within shell, when try make cron execute it, prints me error saying $_server['request_method'] not defined that's can solve forcing variable value. after that, nothing happen , don't know do. tried everything: different commands, running command in outside bash script, php she-bang, none of them works. have idea of cause this? maybe different command cron run fix problem? fact "no user" (i guess, i'm not linux expert) running script problem?

you trigger php code through http in cron:

30 11 * * * /usr/bin/wget http://www.example.com/cron.php  

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -