shell_exec wont work from crontab
问题 I have looked at other answers they dont fit to this case. I am using the full path to the file. Code I copied is simplified. run.php contains: shell_exec("php /var/www/html/sync/chourly.php $position $quotientx > /dev/null 2>/dev/null &"); if I use manually php run.php - it works great. here is the line on crontab -e : 05 * * * * /usr/bin/wget -O /dev/null http://sync.eeeww.com/run.php again the file run.php starts BUT chourly.php doesn't start. I am using centOS 6 any suggestions please?