我已经更新了我的工作弗罗克索安装到PHP 7。我所有的客户网站工作非常好(使用PHP 7通过FPM)。
唯一的问题是,如果我想访问Froxlor后端,我会得到一个Erorr 503。apache错误日志显示:
`[Tue Oct 11 10:01:04.067069 2016] [proxy:error] [pid 23949] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php7.0-fpm.sock (*) failed`
`[Tue Oct 11 10:01:04.089648 2016] [proxy_fcgi:error] [pid 23949] [client xx.xx.xx.xx:1819] AH01079: failed to make connection to backend: httpd-UDS`
PHP的错误日志说明什么都没有。
如果我试图通过IP直接访问服务器,也会发生同样的事情。
系统-详细信息:
我要在哪里说教这个问题?如果需要,可以提供配置文件。
发布于 2018-11-01 14:06:57
如果您使用的是 PHP ,那么问题可能还在于您需要启动服务。
Apache不会自动停止进程,所以您可以手动启动它,也可以在启动时自动启动它。
对于PHP7.x(请记住包括您的版本):
service php7.x-fpm start
对于PHP 7:
service php7-fpm start
对于PHP 5:
service php-fpm start
这将为您开始FPM过程。
此外,您还可能希望进程在启动时启动。要做到这一点,只需输入以下内容,当然,考虑到您各自的版本。
systemctl enable php7.x-fpm
发布于 2020-07-07 05:22:12
我也有同样的问题,在具有php7.4
的新服务器上,以及这些虚拟主机配置文件(位于/etc/apache2/sites-available/
目录中)上,我从具有php7.2
的服务器迁移。
仔细检查后我发现
<FilesMatch \.php$>
SetHandler "proxy:unix:/run/php/php7.2-fpm.sock|fcgi://localhost/"
</FilesMatch>
然后我用
<FilesMatch \.php$>
SetHandler "proxy:unix:/run/php/php7.4-fpm.sock|fcgi://localhost/"
</FilesMatch>
基本上更新php版本,并在重新启动apache2
之后运行良好。
发布于 2017-04-30 21:16:31
为了使它在我的主机上工作,我所做的步骤:
在/etc/apt/sources.list
中添加了non-free
到debian存储库中。
apt update
apt install libapache2-mod-fastcgi
a2enmod fastcgi
(这使得“无效命令'FastCgiExternalServer‘错误,我遇到了一个新的安装”,走开)。
在弗罗克洛-“设置”-“弗罗克洛尔VirtualHost设置”中:如果启用了vHost,则也将在本地用户下运行。
我还从apache2 2的ports.conf
中删除了所有“听”条目。
https://stackoverflow.com/questions/39973341
复制相似问题