在Ubuntu上使用一個新的WordPress實例,我通過these instructions安裝wp-cli
。我試過downloading the .phar package, chmodding it, etc。我也試過installing a .deb package。在這兩種情況下,我跑wp plugin update --all --debug
時,你得到同樣的錯誤:WP Lights與AWS Lightsail上的Bitnami Wordpress安裝不兼容?
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.
我已經通過了list of support options運行,我仍然無法獲得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/bitnami/PHP /箱中:/ opt/bitnami/MySQL的/斌:/選擇/ bitnami/Apache2的/ bin中中:/ opt/bitnami /普通/斌:在/ usr/local/sbin中:在/ usr/local/bin目錄:在/ usr/sbin:/ usr/bin:/ sbin:/ bin:/ usr/games:/ usr/local/games cd/home/bitnami/apps/wordpress/htdocs wp plugin update --all --debug 。 .. 成功:更新了5個插件。 ' –
另請參閱下面我的使用您的解決方案的更好格式的版本。再次感謝。 –