where is the real path to PHP7 CLI?
where is the real path to PHP7 CLI?
I will run the cron job in the php7.
but use php5 command,it is not work.
like this:
/usr/bin/php5-cli /home/mhthread/public_html/cli/akeeba-backup.php
not work in php7.
-
PHP7 CLI path - /opt/cpanel/ea-php70/opt/cpanel/ea-php70/root/usr/bin I think that is what you are looking for 0 -
why this commend can not work? /opt/cpanel/ea-php70/opt/cpanel/ea-php70/root/usr/bin/php-cli /home/mhthread/public_html/cli/akeeba-backup.php no such file or directory 0 -
Try with this. /opt/cpanel/ea-php70/root/usr/bin/php /home/mhthread/public_html/cli/akeeba-backup.php
[root@Srv bin]# /opt/cpanel/ea-php70/root/usr/bin/php -v PHP 7.0.14 (cli) (built: Dec 13 2016 13:46:28) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies0 -
With EasyApache 4 0 -
Try with this.
/opt/cpanel/ea-php70/root/usr/bin/php /home/mhthread/public_html/cli/akeeba-backup.php
[root@Srv bin]# /opt/cpanel/ea-php70/root/usr/bin/php -v PHP 7.0.14 (cli) (built: Dec 13 2016 13:46:28) ( NTS ) Copyright (c) 1997-2016 The PHP Group Zend Engine v3.0.0, Copyright (c) 1998-2016 Zend Technologies
You are right! thank you very much! and why not need "-cli" after the command?0 -
and why not need "-cli" after the command?
Hello, This is answered on the following post: EasyApache 4 Cron Issue Thanks!0
Please sign in to leave a comment.
Comments
6 comments