0

我从 ubuntu 21.04 升级到 21.10。

即使在 a2dismod php7.4 (...) 之后,apache2 也不会更改为 php8。我收到以下错误。我检查了 apache/ 中的配置文件,但找不到它的行。

[Fri Jan 07 13:04:04.231832 2022] [proxy:error] [pid 1320] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.4-fpm.sock (*) failed

[Fri Jan 07 13:04:04.231889 2022] [proxy_fcgi:error] [pid 1320] [client 127.0.0.1:50726] AH01079: failed to make connection to backend: httpd-UDS, referer: http://localhost/oodb...

[Fri Jan 07 13:04:04.780393 2022] [proxy:error] [pid 1319] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.4-fpm.sock (*) failed

[Fri Jan 07 13:04:04.780431 2022] [proxy_fcgi:error] [pid 1319] [client 127.0.0.1:50728] AH01079: failed to make connection to backend: httpd-UDS, referer: http://localhost/...

[Fri Jan 07 13:04:06.829607 2022] [proxy:error] [pid 1318] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.4-fpm.sock (*) failed
4

1 回答 1

0

即使使用下面的命令,问题仍然存在。

  • sudo systemctl 启用 php8-fpm
  • sudo systemctl 禁用 php7.4-fpm

只有在手动删除链接conf-enabled/php7.4-fpm.conf(/etc/apache2)并设置符号链接(sudo ln -s ../conf-available/php8.0-fpm.conf)之后,apache才起作用(重新启动后)。

于 2022-01-07T14:13:50.973 回答