Skip to main content

install wp CLI

Comments

8 comments

  • cPRex Jurassic Moderator
    Hey there! When you say the command "did not work" can you provide me more details? Was the command not found at all? Did you receive an error when trying to execute it? Knowing that will likely be the key to helping you fix the problem.
    0
  • Krustem
    When testing the wp --info command from whm, there is no problem, but when testing the command in cpanel, the response is that the command does not exist
    0
  • cPRex Jurassic Moderator
    Thanks for the additional details. After you performed the installation, did you move the command to the /usr/local/bin location so it can be accessed by all users? You can run this as root to perform that work, running this from the directory where you performed the installation: mv wp-cli.phar /usr/local/bin/wp
    Since /usr/local/bin is part of every user's default path, I would expect that to work well.
    0
  • Krustem
    Unfortunately, it didn't work
    0
  • SimpleSonic
    You didn"t mention if whether or not you are using CloudLinux and CageFS. If you are, you will need to force an update. Run the following command as root to do so: cagefsctl --force-update
    0
  • cPRex Jurassic Moderator
    That command not working indicates the file is already in the correct location. That's a great idea about CageFS! Since I see the "CloudLinux Manager" option on the left, this would be a good thing to try.
    0
  • Krustem
    Yes I am using Cloudlinux - cageFS I did the command you recommended cagefsctl --force-update
    But unfortunately to no avail
    0
  • cPRex Jurassic Moderator
    Can you try the details outlined here as well?
    0

Please sign in to leave a comment.