【发布时间】:2021-05-04 20:32:22
【问题描述】:
我有一个带有 CentOS 7 的 VPS 服务器。我有两个 PHP 网站在几个虚拟主机上运行良好,现在我想部署一个 Django (Python3) 项目,所以我需要 mod_wsgi 模块。
如果我这样做 systemctl status httpd 我会收到此响应 所以 Apache 已安装并运行(并为我的 PHP 网站提供服务)。
但是如果我这样做yum install mod_wsgiCentOS 告诉我我需要安装 httpd 包。如果我安装了 httpd 包,那么 PHP 将无法工作,并且无法再启动 httpd 服务。
如果我执行whereis httpd,我会得到httpd: /opt/apache/bin/httpd /opt/ferozo/bin/httpd
【问题讨论】:
-
这是off-topic 用于堆栈溢出。它应该发布到superuser.com 或unix.stackexchange.com。无论哪种情况,请务必查看相应的主题页面:Super User & Unix & Linux。
-
您使用什么命令在系统上安装 apache?