Welcome to Centmin Mod Community
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:
    9:47 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

    537
    104
    43
    Nov 22, 2014
    Virginia, USA
    Ratings:
    +157
    Local Time:
    12:47 AM
    latest
    10
    Run it from
    /addons/ directory
     
  3. eva2000

    eva2000 Administrator Staff Member

    53,537
    12,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,677
    Local Time:
    2:47 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
  4. Khoi Nguyen

    Khoi Nguyen New Member

    2
    0
    1
    Apr 10, 2015
    Ratings:
    +0
    Local Time:
    9:47 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

    53,537
    12,134
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,677
    Local Time:
    2:47 PM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    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