【发布时间】:2018-08-08 13:01:11
【问题描述】:
我通过apache 运行了一个django 项目,但得到了
Internal Server Error
所以我检查了error.log 并得到:
[wsgi:warn] Target WSGI script '/var/www/shop/shop/wsgi.py'
cannot be loaded as Python module.
我尝试通过 3 个步骤解决此问题:
sudo apt-get remove libapache2-mod-wsgipip install mod_wsgimod_wsgi-express module-config
但我不知道如何将config的信息添加到Apache配置中。
我用的是Ubuntu,所以Apache中没有名为httpd.conf的文件,所以我尝试将mod_wsgi config的信息插入到文件000-default中,但是没有成功返回重启时出错apache:
caught sigterm shutting down
我试图删除我添加的代码并重新启动, 但我遇到了另一个错误:
Job for apache2.service failed because the control process
exited with error code.
我很困惑,谁能救我脱离困境?
【问题讨论】: