最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

wp cli - Only the WP CLI command, wp --info, runs under my cPanel account

programmeradmin5浏览0评论

Please review the following commands I have issued remotely to the Bash Shell on my dedicated cPanel/WHM server:

[root@host ~]# wp cli update Success: WP-CLI is at the latest version.

Then I switched to a cPanel account (with shell access) that hosts a WordPress site:

[root@host ~]# su -l chaseland Last login: Fri Oct 30 15:17:01 MDT 2020 on pts/0

…and the --info command does indeed work:

[chaseland@host ~]$ wp --info OS: Linux 3.10.0-957.21.3.el7.x86_64 #1 SMP Tue Jun > 18 16:35:19 UTC 2019 x86_64 Shell: /usr/local/cpanel/bin/jailshell PHP binary: /opt/cpanel/ea-php74/root/usr/bin/php PHP version: 7.4.11 php.ini used: /opt/cpanel/ea-php74/root/etc/php.ini WP-CLI root dir: phar://wp-cli.phar/vendor/wp-cli/wp-cli WP-CLI vendor dir: phar://wp-cli.phar/vendor WP_CLI phar path: /home/chaseland WP-CLI packages dir:
WP-CLI global config: WP-CLI project config:
WP-CLI version: 2.4.0

However, any other command I try to execute produces an error:

[chaseland@host ~]$ wp plugin update --all Error: This does not seem to be a WordPress installation. Pass --path=path/to/wordpress or run wp core download. [chaseland@host ~]$

This is my first installation of WP CLI and am having difficulty determining what to do next.

Thank you for any assistance, Don

发布评论