NGINX php-cli cron job not working - Raspberry Pi Forums
i can run php script via command line have php-cli installed. i'm trying run php script every minute nothing working. i've tried: also: php file simple: both index , test files have 777 permissions. i've tried setting crontab -e root user , pi user...nothing works. please out.
code: select all
* * * * * /usr/bin/php /usr/share/nginx/www/index.php
code: select all
* * * * * php -f /usr/share/nginx/www/index.php
code: select all
<?php $file = 'test.txt'; $handle = fopen($file, 'a') or die("can't open file"); $string = "testing\n"; fwrite($handle, $string); fclose($handle); ?>
raspberrypi
Comments
Post a Comment