The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED where is the real path to PHP7 CLI?

Discussion in 'EasyApache' started by nbjed, Dec 22, 2016.

Tags:
  1. nbjed

    nbjed Member

    Joined:
    Aug 5, 2016
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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.
     
  2. Eminds

    Eminds Well-Known Member

    Joined:
    Nov 10, 2016
    Messages:
    174
    Likes Received:
    10
    Trophy Points:
    18
    Location:
    India
    cPanel Access Level:
    Root Administrator
    PHP7 CLI path -

    /opt/cpanel/ea-php70/opt/cpanel/ea-php70/root/usr/bin

    I think that is what you are looking for
     
  3. nbjed

    nbjed Member

    Joined:
    Aug 5, 2016
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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
     
  4. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    542
    Likes Received:
    39
    Trophy Points:
    28
    Location:
    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:
    [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
     
  5. nbjed

    nbjed Member

    Joined:
    Aug 5, 2016
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    china
    cPanel Access Level:
    Root Administrator
    With EasyApache 4
     
  6. nbjed

    nbjed Member

    Joined:
    Aug 5, 2016
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    china
    cPanel Access Level:
    Root Administrator
    You are right! thank you very much!
    and why not need "-cli" after the command?
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,999
    Likes Received:
    1,275
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    This is answered on the following post:

    EasyApache 4 Cron Issue

    Thanks!
     
Loading...

Share This Page