Discover Centmin Mod today
Register Now

hello everyone...can someone help me with wpcli

Discussion in 'Introductions' started by Khoi Nguyen, Apr 10, 2015.

  1. Khoi Nguyen

    Khoi Nguyen New Member

    2
    0
    1
    Apr 10, 2015
    Ratings:
    +0
    Local Time:
    1:54 PM
    every time i try to run wp cli i get this error bash: php: command not found
     
  2. Matt Williams

    Matt Williams WordPress Fanatic

    468
    90
    28
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +135
    Local Time:
    4:54 PM
    latest
    10
    Run it from
    /addons/ directory
     
  3. eva2000

    eva2000 Administrator Staff Member

    37,189
    8,123
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,508
    Local Time:
    7:54 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
  4. Khoi Nguyen

    Khoi Nguyen New Member

    2
    0
    1
    Apr 10, 2015
    Ratings:
    +0
    Local Time:
    1:54 PM
    i did exactly what your instructions says and i keep getting this error

    /usr/bin/env: php: No such file or directory
     
  5. eva2000

    eva2000 Administrator Staff Member

    37,189
    8,123
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +12,508
    Local Time:
    7:54 AM
    Nginx 1.15.x
    MariaDB 5.5/10.x
    you ran as root user ? was it installed as root user ? what's output of these 5 commands

    Code:
    whoami
    echo $PATH
    which php
    which wp
    env
    also exact command you used to run wp-cli
     
    Last edited: May 22, 2015
..