Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Install wp-cli on cPanel?

Discussion in 'General Discussion' started by Nabbello, May 22, 2019.

  1. Nabbello

    Nabbello Member

    Joined:
    Nov 9, 2016
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    italy
    cPanel Access Level:
    Root Administrator
    Hello,
    I need to give my customers the ability to use wp-cli, how can i install on our servers?
    Actually we use cloudlinux-litespeed.

    Thanks
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,262
    Likes Received:
    480
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    HI @Nabbello


    They should be able to use wp-cli as long as the wp-cli package is installed on the server.


    It should be something like the following to install it:

    Code:
    yum install wp-cli
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Nabbello

    Nabbello Member

    Joined:
    Nov 9, 2016
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    italy
    cPanel Access Level:
    Root Administrator
    @cPanelLauren

    Thanks for the reply,
    i did as you said but if i typer wp on terminal i have

    -bash: wp: command not found
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,262
    Likes Received:
    480
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Nabbello

    Can you try the following and let me know if it works for the user?

    Code:
    /usr/local/cpanel/3rdparty/bin/wp
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. Nabbello

    Nabbello Member

    Joined:
    Nov 9, 2016
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    italy
    cPanel Access Level:
    Root Administrator
    #5 Nabbello, May 22, 2019
    Last edited: May 22, 2019
    cPanelLauren likes this.
  6. Nabbello

    Nabbello Member

    Joined:
    Nov 9, 2016
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    italy
    cPanel Access Level:
    Root Administrator
  7. Nabbello

    Nabbello Member

    Joined:
    Nov 9, 2016
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    italy
    cPanel Access Level:
    Root Administrator
    cPanelLauren likes this.
  8. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,262
    Likes Received:
    480
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    You could have also created an alias but, I was unaware you were running CageFS - thanks for sharing what worked for you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  9. Nabbello

    Nabbello Member

    Joined:
    Nov 9, 2016
    Messages:
    19
    Likes Received:
    2
    Trophy Points:
    3
    Location:
    italy
    cPanel Access Level:
    Root Administrator
    What is the solution to use on cagefs? i mean the first method
     
  10. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,262
    Likes Received:
    480
    Trophy Points:
    233
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    What you did should work for cagefs, without it you should have been able to just create an alias for wp -> the full path. That or a symlink in /usr/local/bin/
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice