简体   繁体   English

在RHEL中使用Apache和mod_wsgi部署python-django应用程序时出错

[英]Error in deploying python-django app with Apache and mod_wsgi in RHEL

I am unable to deploy Django-Python application with Apache and mod_wsgi in RHEL. 我无法在RHEL中使用Apache和mod_wsgi部署Django-Python应用程序。

Below is my configuration: 下面是我的配置:

Alias /static /home/appuser/xxxweb/yyydep/app/static
<Directory /home/appuser/xxxweb/yyydep/app>
    Require all granted
</Directory>

<Directory /home/appuser/xxxweb/yyydep/app/management>
    <Files wsgi.py>
        Require all granted
    </Files>
</Directory>

WSGIDaemonProcess management python-path=/home/appuser/xxxweb/yyydep python-home=/home/appuser/xxxweb/yyydep/disneyenv
WSGIProcessGroup management
WSGIScriptAlias / /home/appuser/xxxweb/yyydep/app/management/wsgi.py

After restarting the apache server below is the error which has been logged. 重新启动以下apache服务器后,已记录该错误。

Security update check failed: Couldn't connect to server for https://securitycheck.phusionpassenger.com:443/v1/check.json (if this error persists check your connection security or try upgrading Passenger) (next check in 24 hours) ImportError: No module named site 安全更新检查失败:无法连接到https://securitycheck.phusionpassenger.com:443/v1/check.json的服务器(如果此错误仍然存​​在,请检查您的连接安全性或尝试升级乘客)(24小时进行下一步检查) ImportError:没有名为站点的模块

Can any of them help me to resolve this? 他们中的任何一个可以帮助我解决这个问题吗?

Thanks 谢谢

Try these commands in shell first and see what happens: 首先在shell中尝试以下命令,看看会发生什么:

firewall-cmd --permanent --zone=public --add-service=http
firewall-cmd --permanent --zone=public --add-service=https
firewall-cmd --reload

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM