weixin_39789370
weixin_39789370
2021-01-11 03:41

PHP Notice: Undefined index: HTTP_HOST in phar:///usr/local/bin/wp/php/WP_CLI/Runner.php(756)

I followed the instructions of downloading the file, allowing execution, then placing in .../bin/wp. wp --info works fine until I run the command in my WP directory. When I do, I get this error:


PHP Notice:  Undefined index: HTTP_HOST in phar:///usr/local/bin/wp/php/WP_CLI/Runner.php(756) : eval()'d code on line 39
PHP Notice:  Undefined index: HTTP_HOST in phar:///usr/local/bin/wp/php/WP_CLI/Runner.php(756) : eval()'d code on line 60

Any thoughts on why this might be happening? I'm running on an AWS EC2 instance.


WP-CLI root dir:    phar://wp-cli.phar
WP-CLI global config:   
WP-CLI project config:  
WP-CLI version: 0.22.0

该提问来源于开源项目:wp-cli/wp-cli

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

13条回答