teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

apache error log 更新します。こちらが最新です。

2017/07/09 05:01

投稿

am120sec
am120sec

スコア14

title CHANGED
File without changes
body CHANGED
@@ -67,24 +67,13 @@
67
67
 
68
68
  [apache error_log]
69
69
  ```
70
- [Sun Jul 09 13:32:33.551987 2017] [mpm_prefork:notice] [pid 25040] AH00170: caught SIGWINCH, shutting down gracefully
70
+ [Sun Jul 09 13:58:11.082066 2017] [mpm_prefork:notice] [pid 27140] AH00170: caught SIGWINCH, shutting down gracefully
71
- [Sun Jul 09 13:32:34.745400 2017] [suexec:notice] [pid 27140] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
71
+ [Sun Jul 09 13:58:12.198682 2017] [suexec:notice] [pid 27265] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
72
- [Sun Jul 09 13:32:34.770069 2017] [auth_digest:notice] [pid 27140] AH01757: generating secret for digest authentication ...
72
+ [Sun Jul 09 13:58:12.218016 2017] [auth_digest:notice] [pid 27265] AH01757: generating secret for digest authentication ...
73
- [Sun Jul 09 13:32:34.771424 2017] [lbmethod_heartbeat:notice] [pid 27140] AH02282: No slotmem from mod_heartmonitor
73
+ [Sun Jul 09 13:58:12.218726 2017] [lbmethod_heartbeat:notice] [pid 27265] AH02282: No slotmem from mod_heartmonitor
74
- [Sun Jul 09 13:32:34.777389 2017] [mpm_prefork:notice] [pid 27140] AH00163: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
74
+ [Sun Jul 09 13:58:12.223378 2017] [mpm_prefork:notice] [pid 27265] AH00163: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
75
- [Sun Jul 09 13:32:34.777439 2017] [core:notice] [pid 27140] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
75
+ [Sun Jul 09 13:58:12.223404 2017] [core:notice] [pid 27265] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
76
- [Sun Jul 09 13:33:05.155353 2017] [:error] [pid 27146] [client 111.104.38.104:60575] mod_wsgi (pid=27146): Target WSGI script '/var/www/site/hello.py' cannot be loaded as Python module.
77
- [Sun Jul 09 13:33:05.155420 2017] [:error] [pid 27146] [client 111.104.38.104:60575] mod_wsgi (pid=27146): Exception occurred processing WSGI script '/var/www/site/hello.py'.
76
+ [Sun Jul 09 13:58:15.424388 2017] [:error] [pid 27271] [client 111.104.38.104:60837] No WSGI daemon process called 'yourapp' has been configured: /var/www/site/wsgi.py
78
- [Sun Jul 09 13:33:05.155457 2017] [:error] [pid 27146] [client 111.104.38.104:60575] Traceback (most recent call last):
79
- [Sun Jul 09 13:33:05.155489 2017] [:error] [pid 27146] [client 111.104.38.104:60575] File "/var/www/site/hello.py", line 1, in <module>
80
- [Sun Jul 09 13:33:05.155558 2017] [:error] [pid 27146] [client 111.104.38.104:60575] from django.http import HttpResponse
81
- [Sun Jul 09 13:33:05.155581 2017] [:error] [pid 27146] [client 111.104.38.104:60575] ImportError: No module named django.http
82
- [Sun Jul 09 13:33:08.417393 2017] [:error] [pid 27143] [client 111.104.38.104:60576] mod_wsgi (pid=27143): Target WSGI script '/var/www/site/hello.py' cannot be loaded as Python module.
83
- [Sun Jul 09 13:33:08.417445 2017] [:error] [pid 27143] [client 111.104.38.104:60576] mod_wsgi (pid=27143): Exception occurred processing WSGI script '/var/www/site/hello.py'.
84
- [Sun Jul 09 13:33:08.417461 2017] [:error] [pid 27143] [client 111.104.38.104:60576] Traceback (most recent call last):
85
- [Sun Jul 09 13:33:08.417494 2017] [:error] [pid 27143] [client 111.104.38.104:60576] File "/var/www/site/hello.py", line 1, in <module>
86
- [Sun Jul 09 13:33:08.417559 2017] [:error] [pid 27143] [client 111.104.38.104:60576] from django.http import HttpResponse
87
- [Sun Jul 09 13:33:08.417576 2017] [:error] [pid 27143] [client 111.104.38.104:60576] ImportError: No module named django.http
88
77
 
89
78
  ```
90
79
  参考にした資料

2

error log を追記しました。

2017/07/09 05:01

投稿

am120sec
am120sec

スコア14

title CHANGED
File without changes
body CHANGED
@@ -65,6 +65,28 @@
65
65
  | --wsgi.py
66
66
 
67
67
 
68
+ [apache error_log]
69
+ ```
70
+ [Sun Jul 09 13:32:33.551987 2017] [mpm_prefork:notice] [pid 25040] AH00170: caught SIGWINCH, shutting down gracefully
71
+ [Sun Jul 09 13:32:34.745400 2017] [suexec:notice] [pid 27140] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
72
+ [Sun Jul 09 13:32:34.770069 2017] [auth_digest:notice] [pid 27140] AH01757: generating secret for digest authentication ...
73
+ [Sun Jul 09 13:32:34.771424 2017] [lbmethod_heartbeat:notice] [pid 27140] AH02282: No slotmem from mod_heartmonitor
74
+ [Sun Jul 09 13:32:34.777389 2017] [mpm_prefork:notice] [pid 27140] AH00163: Apache/2.4.6 (CentOS) mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
75
+ [Sun Jul 09 13:32:34.777439 2017] [core:notice] [pid 27140] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
76
+ [Sun Jul 09 13:33:05.155353 2017] [:error] [pid 27146] [client 111.104.38.104:60575] mod_wsgi (pid=27146): Target WSGI script '/var/www/site/hello.py' cannot be loaded as Python module.
77
+ [Sun Jul 09 13:33:05.155420 2017] [:error] [pid 27146] [client 111.104.38.104:60575] mod_wsgi (pid=27146): Exception occurred processing WSGI script '/var/www/site/hello.py'.
78
+ [Sun Jul 09 13:33:05.155457 2017] [:error] [pid 27146] [client 111.104.38.104:60575] Traceback (most recent call last):
79
+ [Sun Jul 09 13:33:05.155489 2017] [:error] [pid 27146] [client 111.104.38.104:60575] File "/var/www/site/hello.py", line 1, in <module>
80
+ [Sun Jul 09 13:33:05.155558 2017] [:error] [pid 27146] [client 111.104.38.104:60575] from django.http import HttpResponse
81
+ [Sun Jul 09 13:33:05.155581 2017] [:error] [pid 27146] [client 111.104.38.104:60575] ImportError: No module named django.http
82
+ [Sun Jul 09 13:33:08.417393 2017] [:error] [pid 27143] [client 111.104.38.104:60576] mod_wsgi (pid=27143): Target WSGI script '/var/www/site/hello.py' cannot be loaded as Python module.
83
+ [Sun Jul 09 13:33:08.417445 2017] [:error] [pid 27143] [client 111.104.38.104:60576] mod_wsgi (pid=27143): Exception occurred processing WSGI script '/var/www/site/hello.py'.
84
+ [Sun Jul 09 13:33:08.417461 2017] [:error] [pid 27143] [client 111.104.38.104:60576] Traceback (most recent call last):
85
+ [Sun Jul 09 13:33:08.417494 2017] [:error] [pid 27143] [client 111.104.38.104:60576] File "/var/www/site/hello.py", line 1, in <module>
86
+ [Sun Jul 09 13:33:08.417559 2017] [:error] [pid 27143] [client 111.104.38.104:60576] from django.http import HttpResponse
87
+ [Sun Jul 09 13:33:08.417576 2017] [:error] [pid 27143] [client 111.104.38.104:60576] ImportError: No module named django.http
88
+
89
+ ```
68
90
  参考にした資料
69
91
  [https://teratail.com/questions/80949](https://teratail.com/questions/80949)
70
92
  [http://docs.djangoproject.jp/en/latest/howto/deployment/wsgi/modwsgi.html](http://docs.djangoproject.jp/en/latest/howto/deployment/wsgi/modwsgi.html)

1

誤字訂正

2017/07/09 04:38

投稿

am120sec
am120sec

スコア14

title CHANGED
File without changes
body CHANGED
@@ -6,7 +6,7 @@
6
6
  ```
7
7
  WSGIScriptAlias / /var/www/site/wsgi.py
8
8
  ```
9
- 具体的にはこちらのコードです/var~~からの先のコードなのですが
9
+ 具体的には/var~~からの先のコードなのですが
10
10
  1. mod_wsgiをインストールした際に作られたファイルのパスを指定?
11
11
  2. 実行したいファイルパス(/var/www/site/hello.py)を指定?
12
12
  3. http://mydomain.jpはどこにも記述しなくてもよいのか?