Previously , for 3 months : no poblem, to run php via cron (for 5 php scripts)
After Update on 2 Yùn, the same problem : apparently crontab give me headaches
lines like this in crontab (edited with crontab -e of course)
*/5 * * * * /usr/bin/php /www/sd/get_data.php
Are not working. ( I precise that /usr/bin/php is a symlink to /usr/bin/php5-cli and the the php script is correctly working alone when I manually launch it: it creates a json file on the sd card: so everything is working in this code, and php has all the required modules).
logread shows me they are executed with no error
Jun 30 08:15:01 zlikabox cron.info crond[25598]: crond: USER root pid 17485 cmd /usr/bin/php /www/sd/get_data.php
But they wont do job via cron: there is no json file modified on the sd card, the SD card is not in read-only mode , root obviously has write access and execution rights 
So I did a few test after reset to factory , under the latest official image. re-install php5 and all its required modules: the php file runs via php correctly.
If I add this shell script ... (not a php file ) in my crontab every 5 minutes
#!/bin/ash
echo "pouet" >> /www/sd/pouet
/usr/bin/php /www/sd/get_data.php
- "pouet" is correctly written in /www/sd/pouet file.
- /usr/bin/php is not called (even if i call /usr/bin/php-cli )
Please use
/usr/bin/php /www/sd/get_data.php &> /www/sd/php.log
and paste the content of the file
ARGHHHHHHH !
it runs via PHP php blabalablabla
but via CRON :
Warning: require_once(Config/Lite/Exception.php): failed to open stream: No such file or directory in /mnt/sda1/Config/Lite.php on line 17
Fatal error: require_once(): Failed opening required 'Config/Lite/Exception.php' (include_path='.:') in /mnt/sda1/Config/Lite.php on line 17
It seems that it is php that has a problem of paths indeed ?
absolute path V.S. relative path:
You might try change
require_once('Config/Lite/Exception.php');
to
require_once('/mnt/sdb1/Config/Lite/Exception.php');
well I've changed the cron entry : cd /mnt/sda1;/usr/bin/php blabalbla
BUT NOW I HAVE ANOTHER PROBLEM 
the php script polls the controller via REST URL like this http://localhost/arduino/mode/pm/ ( and 2 others in the same php script), that was working for 3 months i repeat, without any error.
But now after 1 or 1.5 hour of running time i get this :
Warning: file_get_contents(http://localhost/arduino/mode/pm/): failed to open stream: HTTP request failed! HTTP/1.0 500 OK
I have to re-upload the sketch (via arvdude) to correct this problem.
Then your scetch stoped running. You should post it here.
BTW you should start php scripts with -u option, to avoid missinterpretations like not running.
I had a javascript polling the REST URL 5 times /sec to draw a gauge.
No problem until last update too.
I'm stopping this JS , and i will see.