質問編集履歴

2

補足②

2020/02/01 11:31

投稿

Y.NINOMIYA
Y.NINOMIYA

スコア32

test CHANGED
File without changes
test CHANGED
@@ -169,3 +169,11 @@
169
169
 
170
170
 
171
171
  ```
172
+
173
+
174
+
175
+
176
+
177
+ ### 補足②
178
+
179
+ サーバーはApache、virtualhostによって外部からのアクセスを別ディレクトリにdocumentrootしていましたが現在はvirtualhost.confはバックアップしてサーバーからは削除しています

1

エラーについて補足

2020/02/01 11:31

投稿

Y.NINOMIYA
Y.NINOMIYA

スコア32

test CHANGED
File without changes
test CHANGED
@@ -141,3 +141,31 @@
141
141
 
142
142
 
143
143
  よろしくお願いします。
144
+
145
+
146
+
147
+ ### 補足①
148
+
149
+ localhostにアクセスを試みた時のapacheのエラーログです
150
+
151
+ ```error
152
+
153
+ [Fri Jan 31 23:51:47.659698 2020] [wsgi:error] [pid 5521] [remote ::1:53028] mod_wsgi (pid=5521): Failed to exec Python script file '/var/www/flask/flask_app.wsgi'.
154
+
155
+ [Fri Jan 31 23:51:47.659915 2020] [wsgi:error] [pid 5521] [remote ::1:53028] mod_wsgi (pid=5521): Exception occurred processing WSGI script '/var/www/flask/flask_app.wsgi'.
156
+
157
+ [Fri Jan 31 23:51:47.660149 2020] [wsgi:error] [pid 5521] [remote ::1:53028] Traceback (most recent call last):
158
+
159
+ [Fri Jan 31 23:51:47.660221 2020] [wsgi:error] [pid 5521] [remote ::1:53028] File "/var/www/flask/flask_app.wsgi", line 5, in <module>
160
+
161
+ [Fri Jan 31 23:51:47.660230 2020] [wsgi:error] [pid 5521] [remote ::1:53028] from app import app as application
162
+
163
+ [Fri Jan 31 23:51:47.660240 2020] [wsgi:error] [pid 5521] [remote ::1:53028] File "/var/www/flask/app.py", line 1, in <module>
164
+
165
+ [Fri Jan 31 23:51:47.660246 2020] [wsgi:error] [pid 5521] [remote ::1:53028] from flask import Flask
166
+
167
+ [Fri Jan 31 23:51:47.660277 2020] [wsgi:error] [pid 5521] [remote ::1:53028] ModuleNotFoundError: No module named 'flask'
168
+
169
+
170
+
171
+ ```