Welcome to Centmin Mod Community
Become a Member

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:
    4:37 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:
    7:37 PM
    latest
    10
    Run it from
    /addons/ directory
     
  3. eva2000

    eva2000 Administrator Staff Member

    54,606
    12,225
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,794
    Local Time:
    10:37 AM
    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:
    4:37 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

    54,606
    12,225
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,794
    Local Time:
    10:37 AM
    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