kasparsd / php-7-debian

Install PHP 7 on Debian/Ubuntu
349 stars 103 forks source link

Run client script #31

Closed clarkk closed 8 years ago

clarkk commented 8 years ago

How to run PHP as cli ??

/usr/local/php7/sbin/php7-fpm -f /var/cronjob.php
clarkk commented 8 years ago
/usr/local/php7/bin/php -f /var/cronjob.php
maximal commented 8 years ago

You can go without -f, just:

/usr/local/php7/bin/php /var/cronjob.php
stathis commented 8 years ago

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