EC2のapache上でdjangoで作成したWEBアプリを動作させようとしてるのですが、
Apache起動時にmod_wsgiが"undefined symbol"エラーを起こし起動できません。
原因について一日中調べたのですがわからず、ご教授いただけないでしょうか
shell
1sudo service httpd restart 2Stopping httpd: [FAILED] 3Starting httpd: httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf: Syntax error on line 1 of /etc/httpd/conf.d/django.conf: 4Cannot load /home/batch-user/.local/share/virtualenvs/adid_publisher-S_CRG_1g/lib/python3.7/site-packages/mod_wsgi/server/mod_wsgi-py37.cpython-37m-x86_64-linux-gnu.so into server: 5/home/batch-user/.local/share/virtualenvs/adid_publisher-S_CRG_1g/lib/python3.7/site-packages/mod_wsgi/server/mod_wsgi-py37.cpython-37m-x86_64-linux-gnu.so: 6undefined symbol: ap_accept_lock_mech 7 [FAILED]
以下のconfファイルをapacheに読ませています。
/etc/httpd/conf.d/django.conf
LoadModule wsgi_module "/home/batch-user/.local/share/virtualenvs/adid_publisher-S_CRG_1g/lib/python3.7/site-packages/mod_wsgi/server/mod_wsgi-py37.cpython-37m-x86_64-linux-gnu.so" WSGIPythonHome "/home/batch-user/.local/share/virtualenvs/adid_publisher-S_CRG_1g" WSGIScriptAlias /publish /opt/scripts/adid_publisher/config/wsgi.py WSGIPythonPath /opt/scripts/adid_publisher <Directory /opt/scripts/adid_publisher/config/> <Files wsgi.py> Require all granted </Files> </Directory> Alias /static/ /opt/scripts/adid_publisher/static/ <Directory /opt/scripts/adid_publisher/static> Require all granted </Directory> Alias /upload/ /opt/scripts/adid_publisher/upload/ <Directory /opt/scripts/adid_publisher/upload> Require all granted </Directory>
環境は以下のとおりです。
os:Amazon Linux AMI release 2018.03
apache:2.4.39
python:3.7.3
mod-wsgi:4.6.6
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/03/23 02:44