Skip to main content

where is the real path to PHP7 CLI?

Comments

6 comments

  • Eminds
    PHP7 CLI path - /opt/cpanel/ea-php70/opt/cpanel/ea-php70/root/usr/bin I think that is what you are looking for
    0
  • nbjed
    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
  • SysSachin
    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
    0
  • nbjed
    With EasyApache 4
    0
  • nbjed
    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
  • cPanelMichael
    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.