PHP守护进程问题

hyperf项目,添加了守护进程,报错如下:

Stack trace:
#0 /www/sites/apiwbst/index/api/bin/hyperf.php(21): Hyperf\Engine\DefaultOption::hookFlags()
#1 {main}
  thrown in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php on line 23

Fatal error: Uncaught Hyperf\Engine\Exception\RuntimeException: The ext-swoole is required. in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php:23
Stack trace:
#0 /www/sites/apiwbst/index/api/bin/hyperf.php(21): Hyperf\Engine\DefaultOption::hookFlags()
#1 {main}
  thrown in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php on line 23

Fatal error: Uncaught Hyperf\Engine\Exception\RuntimeException: The ext-swoole is required. in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php:23
Stack trace:
#0 /www/sites/apiwbst/index/api/bin/hyperf.php(21): Hyperf\Engine\DefaultOption::hookFlags()
#1 {main}
  thrown in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php on line 23

Fatal error: Uncaught Hyperf\Engine\Exception\RuntimeException: The ext-swoole is required. in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php:23
Stack trace:
#0 /www/sites/apiwbst/index/api/bin/hyperf.php(21): Hyperf\Engine\DefaultOption::hookFlags()
#1 {main}
  thrown in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php on line 23

Fatal error: Uncaught Hyperf\Engine\Exception\RuntimeException: The ext-swoole is required. in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php:23
Stack trace:
#0 /www/sites/apiwbst/index/api/bin/hyperf.php(21): Hyperf\Engine\DefaultOption::hookFlags()
#1 {main}
  thrown in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php on line 23

Fatal error: Uncaught Hyperf\Engine\Exception\RuntimeException: The ext-swoole is required. in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php:23
Stack trace:
#0 /www/sites/apiwbst/index/api/bin/hyperf.php(21): Hyperf\Engine\DefaultOption::hookFlags()
#1 {main}
  thrown in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php on line 23

Fatal error: Uncaught Hyperf\Engine\Exception\RuntimeException: The ext-swoole is required. in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php:23
Stack trace:
#0 /www/sites/apiwbst/index/api/bin/hyperf.php(21): Hyperf\Engine\DefaultOption::hookFlags()
#1 {main}
  thrown in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php on line 23

Fatal error: Uncaught Hyperf\Engine\Exception\RuntimeException: The ext-swoole is required. in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php:23
Stack trace:
#0 /www/sites/apiwbst/index/api/bin/hyperf.php(21): Hyperf\Engine\DefaultOption::hookFlags()
#1 {main}
  thrown in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php on line 23

Fatal error: Uncaught Hyperf\Engine\Exception\RuntimeException: The ext-swoole is required. in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php:23
Stack trace:
#0 /www/sites/apiwbst/index/api/bin/hyperf.php(21): Hyperf\Engine\DefaultOption::hookFlags()
#1 {main}
  thrown in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php on line 23

Fatal error: Uncaught Hyperf\Engine\Exception\RuntimeException: The ext-swoole is required. in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php:23
Stack trace:
#0 /www/sites/apiwbst/index/api/bin/hyperf.php(21): Hyperf\Engine\DefaultOption::hookFlags()
#1 {main}
  thrown in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php on line 23

Fatal error: Uncaught Hyperf\Engine\Exception\RuntimeException: The ext-swoole is required. in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php:23
Stack trace:
#0 /www/sites/apiwbst/index/api/bin/hyperf.php(21): Hyperf\Engine\DefaultOption::hookFlags()
#1 {main}
  thrown in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php on line 23

Fatal error: Uncaught Hyperf\Engine\Exception\RuntimeException: The ext-swoole is required. in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php:23
Stack trace:
#0 /www/sites/apiwbst/index/api/bin/hyperf.php(21): Hyperf\Engine\DefaultOption::hookFlags()
#1 {main}
  thrown in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php on line 23

Fatal error: Uncaught Hyperf\Engine\Exception\RuntimeException: The ext-swoole is required. in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php:23
Stack trace:
#0 /www/sites/apiwbst/index/api/bin/hyperf.php(21): Hyperf\Engine\DefaultOption::hookFlags()
#1 {main}
  thrown in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php on line 23

Fatal error: Uncaught Hyperf\Engine\Exception\RuntimeException: The ext-swoole is required. in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php:23
Stack trace:
#0 /www/sites/apiwbst/index/api/bin/hyperf.php(21): Hyperf\Engine\DefaultOption::hookFlags()
#1 {main}
  thrown in /www/sites/apiwbst/index/api/vendor/hyperf/engine/src/DefaultOption.php on line 23

目前项目正常运行,swoole是编译安装的,想添加守护进程,好几个版本了,都是无法添加成功。

配置文件:

之前反馈过,不知道还有没有希望解决

容器中执行 php -m 看一下 swoole 是否已经安装
从报错看 swoole 还是没安装

你当前的 1Panel 和 PHP 分别是什么版本?

1Panel版本
image
PHP版本

新建一个 PHP 运行环境试试