gpt4 book ai didi

php - HHVM/FastCGI/Proxy 安装毁了我的 apache?

转载 作者:行者123 更新时间:2023-12-04 19:16:32 29 4
gpt4 key购买 nike

我有一台安装了 apache2 和 php5 的 ubuntu 14.04 笔记本电脑。他们都运作良好。昨天有空,试了一下安装nginx和hhvm。我按照互联网上的一些教程并设法安装它们。但是当我需要再次使用 apache 时,它​​不起作用。实际上当我打开 http://localhost ,它仍然显示“Apache2 Ubuntu 默认页面”页面,但它无法处理任何 php 文件,即使是具有 phpinfo() 函数的页面。我记得在安装 hhvm 之后,我执行了这个:

sudo /usr/share/hhvm/install_fastcgi.sh

这是输出:
Checking if Apache is installed
Detected Apache installation
Looking for custom proxy configuration
No custom proxy configuration found
Checking for enabled proxy_fcgi.load
Not found
Checking for enabled fastcgi.load
Not found
Checking for enabled fcgid.load
Not found
Checking for available proxy_fcgi.load
Found, checking for loading directives
Detected available proxy_fcgi.load configuration, setting up integration
Checking for available hhvm_proxy_fcgi.conf
Found, checking for loading directives
Detected available hhvm_proxy_fcgi.conf configuration, setting up integration
Checking for available proxy.load
Found, checking for loading directives
Detected available proxy.load configuration, setting up integration
Checking for available proxy.conf
Found, checking for loading directives
Detected available proxy.conf configuration, setting up integration
Enabling module proxy.load
Found available module
Creating a symlink
Finished creating a symlink
Enabling module proxy.conf
Found available module
Creating a symlink
Finished creating a symlink
Enabling module proxy_fcgi.load
Found available module
Creating a symlink
Finished creating a symlink
Force enabling module hhvm_proxy_fcgi.conf
Available module found
Removed possible duplicates
Enabling module hhvm_proxy_fcgi.conf
Found available module
Creating a symlink
Finished creating a symlink
Completed force enabling
Restarting apache
Finished restarting apache
Checking if Nginx is installed
Detected Nginx installation
Checking for custom Nginx configuration
Enabling hhvm Nginx module
Finished enabling module
Restarting Nginx
Nginx is running, restarting
Restarted nginx
Finished restarting Nginx

我怀疑那条线毁了我的 apache。我不知道如何恢复它。有什么办法吗?我不想使用 fastcgi 或任何代理,我想停用/删除它们。
处理任何 php 文件时,我的浏览器上出现此错误“内部服务器错误”。从 apache 错误日志中,我得到了这个:
[Wed Mar 02 15:12:13.519428 2016] [proxy:error] [pid 20485] (111)Connection refused: AH00957: FCGI: attempt to connect to 127.0.0.1:9000 (*) failed
[Wed Mar 02 15:12:13.519509 2016] [proxy_fcgi:error] [pid 20485] [client 127.0.0.1:54656] AH01079: failed to make connection to backend: 127.0.0.1

然后我禁用 proxy_fcgi
sudo a2dismod proxy_fcgi

现在我在 apache 错误日志中得到了这个错误:
[Wed Mar 02 15:44:41.946487 2016] [proxy:warn] [pid 21422] [client 127.0.0.1:55563] AH01144: No protocol handler was valid for the URL /info.php. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule. 

我不知道如何解决这个错误。

最佳答案

从此链接:https://github.com/facebook/hhvm/issues/3472 ,罪魁祸首是这个文件:

/etc/apache2/mods-enabled/hhvm_proxy_fcgi.conf.

因为我没有时间玩更多,快速的解决方案就是重命名/删除文件。现在我的 Apache 服务器又开始工作了。

关于php - HHVM/FastCGI/Proxy 安装毁了我的 apache?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35762297/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com