SOLVED where is the real path to PHP7 CLI?

nbjed

Member
Aug 5, 2016
10
0
1
china
cPanel Access Level
Root Administrator
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.
 

nbjed

Member
Aug 5, 2016
10
0
1
china
cPanel Access Level
Root Administrator
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
 

SysSachin

Well-Known Member
Aug 23, 2015
604
48
28
India
cPanel Access Level
Root Administrator
Twitter
Try with this.


Code:
/opt/cpanel/ea-php70/root/usr/bin/php /home/mhthread/public_html/cli/akeeba-backup.php
Code:
[[email protected] 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
 

nbjed

Member
Aug 5, 2016
10
0
1
china
cPanel Access Level
Root Administrator
Try with this.


Code:
/opt/cpanel/ea-php70/root/usr/bin/php /home/mhthread/public_html/cli/akeeba-backup.php
Code:
[[email protected] 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?