0
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Django / Apache / mod_wsgi: Internal Server Error 500

Posted at

Django + Apache + mod_wsgiでInternal Server Errorが出たらやること。
基本の”き”。

・django-admin.py startproject mysite直後の動作確認で躓く
公式サイト掲載の設定を確認する。

書いてあるようにApacheで下記の設定ができてれば大抵OK・・・なんだけど。


WSGIScriptAlias / /path/to/mysite.com/mysite/wsgi.py
WSGIPythonPath /path/to/mysite.com

<Directory /path/to/mysite.com/mysite>
<Files wsgi.py>
Require all granted
</Files>
</Directory>

・Apacheのエラーログを確認
これで大抵のことは解決。
むしろtail -fを常にしておくといいかもね・・・


tail -f /var/log/httpd/error_log

随時追加予定。

0
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?