我安装了httpd(apache),它不起作用,在日志文件中我得到了这个错误 - >
[Mon Jun 27 18:59:26.121033 2016] [proxy:error] [pid 3827] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php-fpm/www.sock (*) failed
[Mon Jun 27 18:59:26.121136 2016] [proxy_fcgi:error] [pid 3827] [client ::1:44760] AH01079: failed to make connection to backend: httpd-UDS
这是我的配置,如this
答案 0 :(得分:1)
# Redirect to local php-fpm if mod_php is not available
<IfModule !mod_php5.c>
<IfModule !mod_php7.c>
# Enable http authorization headers
SetEnvIfNoCase ^Authorization$ "(.+)" HTTP_AUTHORIZATION=$1
<FilesMatch \.php$>
SetHandler "proxy:unix:/run/php-fpm/www.sock|fcgi://localhost"
</FilesMatch>
</IfModule>
</IfModule>
因此要解决此问题,请使mod_php可用
dnf install php
或安装并配置php-fpm。