Closed clarkk closed 8 years ago
/usr/local/php7/bin/php -f /var/cronjob.php
You can go without -f
, just:
/usr/local/php7/bin/php /var/cronjob.php
You can even create a symlink so you can omit the whole path every time you need to run the php7 cli.
ln -s /usr/local/php7/bin/php /usr/bin/php7
How to run PHP as
cli
??