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

    eva2000 Administrator Staff Member

    30,131
    6,778
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,128
    Local Time:
    10:05 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:
    5:05 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

    30,131
    6,778
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +10,128
    Local Time:
    10:05 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