우분투에서 Wordpress의 새로운 인스턴스를 사용하여 these instructions을 통해 wp-cli
을 설치했습니다. 나는 downloading the .phar package, chmodding it, etc을 시도했다. 나는 또한 installing a .deb package을 시도했다. wp plugin update --all --debug
을 실행할 때 두 경우 모두에서 나는 같은 오류를 얻을 : 나는 list of support options를 통해 실행 한AW-Lightsail에 Bitnami의 Wordpress를 설치할 때 WP-CLI가 호환되지 않습니까?
Debug (bootstrap): No readable global config found (0.057s)
Debug (bootstrap): No project config found (0.057s)
Debug (bootstrap): argv: /usr/local/bin/wp plugin update --all --debug (0.057s)
Debug (bootstrap): ABSPATH defined: /opt/bitnami/apps/wordpress/htdocs/ (0.058s)
Debug (bootstrap): Begin WordPress load (0.058s)
Debug (bootstrap): wp-config.php path: /opt/bitnami/apps/wordpress/htdocs/wp-config.php (0.058s)
PHP Notice: Undefined index: HTTP_HOST in phar:///usr/local/bin/wp/php/WP_CLI/Runner.php(1070) : eval()'d code on line 90
PHP Notice: Undefined index: HTTP_HOST in phar:///usr/local/bin/wp/php/WP_CLI/Runner.php(1070) : eval()'d code on line 91
Debug (bootstrap): Loaded WordPress (0.188s)
Debug (bootstrap): Running command: plugin update (0.188s)
Downloading update from https://downloads.wordpress.org/plugin/akismet.4.0.zip...
Using cached file '/home/bitnami/.wp-cli/cache/plugin/akismet-4.0.zip'...
Unpacking the update...
Warning: Could not create directory.
Downloading update from https://downloads.wordpress.org/plugin/all-in-one-wp-migration.6.58.zip...
Using cached file '/home/bitnami/.wp-cli/cache/plugin/all-in-one-wp-migration-6.58.zip'...
Unpacking the update...
Warning: Could not create directory.
Downloading update from https://downloads.wordpress.org/plugin/all-in-one-seo-pack.2.4.2.zip...
Using cached file '/home/bitnami/.wp-cli/cache/plugin/all-in-one-seo-pack-2.4.2.zip'...
Unpacking the update...
Warning: Could not create directory.
Downloading update from https://downloads.wordpress.org/plugin/google-analytics-for-wordpress.6.2.4.zip...
Using cached file '/home/bitnami/.wp-cli/cache/plugin/google-analytics-for-wordpress-6.2.4.zip'...
Unpacking the update...
Warning: Could not create directory.
Downloading update from https://downloads.wordpress.org/plugin/jetpack.5.4.zip...
Using cached file '/home/bitnami/.wp-cli/cache/plugin/jetpack-5.4.zip'...
Unpacking the update...
Warning: Could not create directory.
+--------------------------------+-------------+-------------+--------+
| name | old_version | new_version | status |
+--------------------------------+-------------+-------------+--------+
| akismet | 3.3.4 | 4.0 | Error |
| all-in-one-wp-migration | 6.55 | 6.58 | Error |
| all-in-one-seo-pack | 2.3.15 | 2.4.2 | Error |
| google-analytics-for-wordpress | 6.2.0 | 6.2.4 | Error |
| jetpack | 5.2.1 | 5.4 | Error |
+--------------------------------+-------------+-------------+--------+
Success: Plugins already updated.
나는 아직도 WP-CLI가 AWS Lightsail, 일명 Bitnami에서 제대로 작동하도록 드릴 수 없습니다. github과 wordpress.org forums을 보면 많은 사용자가 위의 오류 중 일부 또는 전부를 갖고있는 것으로 나타났습니다.
wp-config.php
: 조건에 ABSPATH 줄을 줄 바꿈했습니다.wp-config.php
:add_filter()
호출을 MU 플러그인으로 이동하십시오.- 여러
chmod
및chown
이 변경됩니다.
이들 중 일부는 해당 오류가 멀리 갈 수 있도록 못했지만, wp
은 여전히 플러그인을 업데이트 할 수 없습니다 등
나는 PHP 디버그 출력에서 식별 된 누락 된 파일을 작성해야합니까?
AWS Lightsail/Bitnami를 사용하지 않아야합니까? 난 단지 wp-cli
이 필요해. 그래서 나는 ec2 나 다른 어떤 곳으로 옮기려고한다.
그것이 해결책이었습니다. 고맙습니다! sudo su -s/bin/bash 데몬 export PATH =/opt/bitnami/varnish/bin :/opt/bitnami/sqlite/bin :/opt/bin/bash 데몬은 다음과 같이 순서대로 수행해야합니다./usr/local/bin :/usr/local/bin :/opt/bitnami/sbin :/usr/bin :/sbin :/bin :/usr/games :/usr/local/games cd/home/bitnami/apps/wordpress/htdocs wp 플러그인 업데이트 --all --debug . .. 성공 : 5 플러그인 중 5 개가 업데이트되었습니다. ' –
내 솔루션 사용에 대한 내 형식이 올바른지 확인하십시오. 다시 한번 감사드립니다. –