Django、mod_wsgi、Apache:内部s

2024-06-16 09:11:49 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经在Redhat服务器中配置了django1.4和mod\wsgi2.0和apache2.2.3。 但是当我试图访问服务器时,我得到了以下错误: “错误500:内部服务器错误。”

[root@lts5srv1 hardi]# wget mritest.domain.ch
--2012-08-23 21:51:27--  http://mritest.domain.ch/
Resolving mritest.domain.ch... 127.0.0.1
Connecting to mritest.domain.ch|127.0.0.1|:80... connected.
HTTP request sent, awaiting response... 500 Internal Server Error
2012-08-23 21:51:27 ERROR 500: Internal Server Error.

所以我有联系,但我没有得到任何有效的回应。 这取决于django版本吗,我应该使用django1.3进行部署吗?在

编辑

Apache错误日志:

^{pr2}$

Tags: 服务器modserverdomain错误errorrootwget
2条回答

web服务器的文件描述符不足。在httpd initscript中使用ulimit -n来增加允许的文件描述符数量。在

国防部_wsgi.so公司为特定的Python版本编译。如果没有安装该版本,或者强制它使用不同的Python版本(这是无法做到的),则可能会出现此问题。在

找出Python mod的哪个版本_wsgi.so公司为编译。在

http://code.google.com/p/modwsgi/wiki/CheckingYourInstallation#Python_Shared_Libraryhttp://code.google.com/p/modwsgi/wiki/CheckingYourInstallation#Python_Installation_In_Use

所以首先要做的是找出_wsgi.so公司是根据编译的。在

相关问题 更多 >