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:
    9:59 AM
    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:
    12:59 PM
    latest
    10
    Run it from
    /addons/ directory
     
  3. eva2000

    eva2000 Administrator Staff Member

    29,034
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    2:59 AM
    Nginx 1.13.x
    MariaDB 5.5
  4. Khoi Nguyen

    Khoi Nguyen New Member

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

    29,034
    6,589
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,784
    Local Time:
    2:59 AM
    Nginx 1.13.x
    MariaDB 5.5
    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