无法在 CentOS 5.5 VPS 上安装 mod_wsgi

无法在 CentOS 5.5 VPS 上安装 mod_wsgi

我正在尝试在我的 VPS 上安装 mod_wsgi,但它不起作用。这就是我正在做的事情:

wget http://modwsgi.googlecode.com/files/mod_wsgi-2.5.tar.gz
tar xzvf mod_wsgi-2.5.tar.gz
cd mod_wsgi-2.5

./configure --with-python=/opt/python2.5/bin/python

运行上述命令后,出现此错误:

checking for apxs2... no
checking for apxs... no
checking Apache version... ./configure: line 1298: apxs: command not found
./configure: line 1298: apxs: command not found
./configure: line 1299: /: is a directory

./configure: line 1461: apxs: command not found
configure: creating ./config.status
config.status: creating Makefile
config.status: error: cannot find input file: Makefile.in

通过一些研究我发现我需要修改我的命令:

./configure --with-apxs=/usr/local/apache/bin/apxs \
--with-python=/usr/local/bin/python

但是,/usr/local/apache/ 不存在,或者它告诉我的就是这个。如果它不存在,我该如何使用所有需要的文件来创建它,或者如果 apache 位于我的 VPS 上的其他地方,它会位于哪里?

我还想提一下,在整个过程之前我运行了一条命令来安装 apache:

yum install httpd

所以我认为这就是我所需要的,但显然不是(我对所有这些服务器管理工​​作都很陌生,所以请温柔一点)

编辑:这是我一直使用来完成所有设置的教程:http://binarysushi.com/blog/2009/aug/19/CentOS-5-3-python-2-5-virtualevn-mod-wsgi-and-mod-rpaf/

我被困在“安装 mod_wsgi”标题上

谢谢你的帮助!

答案1

mod_wsgi 位于电力供应处。配置完成后,您也可以通过 yum 安装它。

编辑: 直接链接到添加 EPEL 仓库的说明

相关内容