初めまして。畠山と言います。
フレームワークを最初から設定するのは初めてなのですが、宜しくお願いいたします。

現在mod_wsgiの設定を行っているのですが、wsgi.confに設定したLoadModuleの部分が
うまく動かいないようです。

http://modwsgi.readthedocs.io/en/develop/user-guides/quick-installation-guide.html?highlight=LoadModule

環境
Cent OS 7
Apache 2.4.6
Python 
  Default 2.7
  home venv環境 3.6
mod_wsgi version 4.5.20

wsgi.confインストール先
/etc/httpd/conf.d

wsgi.conf設定内容

WSGIScriptAlias /test_wsgi /var/www/html/test_wsgi.py
UnSetEnv PYTHONSTARTUP
SetEnv PYTHONPATH /home/iwao/test_django/lib/python3.6
WSGIDaemonProcess myapp user=iwao group=iwao
WSGIProcessGroup myapp
LoadModule wsgi_module 
/home/iwao/test_django/lib/python3.6/site-packages/mod_wsgi/server/mod_wsgi-py36.cpython-36m-x86_64-linux-gnu.so

Cent OS 7からApacheはSystemctlから呼ばないといけない為、実行ユーザーはrootになってしまい、
home/venvの環境が適用されないようです。 
また、wsgi.confのLoadModuleも適用されないようです。
(直接リンクを張るとうまく動きましたが)

こちらを動かすコツの様なものはあるのでしょうか?
1行目はきちんと動作しているのは間違いないのですが。

どなたかご存知でしたらご教授願えます。

畠山

-- 
-- 
-----------------                       http://djangoproject.jp/                
         -----------------
You received this message because you are subscribed to the Google Groups 
"django-ja" group.
To post to this group, send email to django-ja@googlegroups.com
To unsubscribe from this group, send email to 
django-ja-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/django-ja
--- 
このメールは Google グループのグループ「django-ja」の登録者に送られています。
このグループから退会し、グループからのメールの配信を停止するには django-ja+unsubscr...@googlegroups.com 
にメールを送信してください。
その他のオプションについては、https://groups.google.com/d/optout にアクセスしてください。

メールによる返信