[英]Python/Django - Starting apache with mod_wsgi
Trying to get mod_wsgi started. 尝试启动mod_wsgi。 Getting an fmod related reference error. 获取与fmod相关的参考错误。
[root@host]# mod_wsgi-express start-server wsgi.py --port=80 \
> --user www-data --group www-data
Server URL : http://localhost/
Server Root : /tmp/mod_wsgi-localhost:80:0
Server Conf : /tmp/mod_wsgi-localhost:80:0/httpd.conf
Error Log File : /tmp/mod_wsgi-localhost:80:0/error_log (warn)
Request Capacity : 5 (1 process * 5 threads)
Request Timeout : 60 (seconds)
Queue Backlog : 100 (connections)
Queue Timeout : 45 (seconds)
Server Capacity : 20 (event/worker), 20 (prefork)
Server Backlog : 500 (connections)
Locale Setting : en_US.UTF-8
httpd (mod_wsgi-express):
Syntax error on line 151 of /tmp/mod_wsgi-localhost:80:0/httpd.conf: Cannot load /usr/local/lib/python3.5/site-packages/mod_wsgi/server/mod_wsgi-py35.cpython-35m-i386-linux-gnu.so into server: /usr/local/lib/python3.5/site-packages/mod_wsgi/server/mod_wsgi-py35.cpython-35m-i386-linux-gnu.so: undefined symbol: fmod /tmp/mod_wsgi-localhost:80:0/httpd.conf的第151行的语法错误:无法加载/usr/local/lib/python3.5/site-packages/mod_wsgi/server/mod_wsgi-py35.cpython-35m- i386-linux-gnu.so进入服务器:/usr/local/lib/python3.5/site-packages/mod_wsgi/server/mod_wsgi-py35.cpython-35m-i386-linux-gnu.so:未定义符号:fmod
I don't know if this will work for you but give it a shot since you are using python3 我不知道这是否适合您,但请尝试一下,因为您使用的是python3
sudo apt-get remove libapache2-mod-python libapache2-mod-wsgi
sudo apt-get install libapache2-mod-wsgi-py3
I think Mr Graham Dumpleton is referring to the solution he posted almost a year ago on https://groups.google.com/forum/#!topic/modwsgi/L1iJeUpPTks 我认为Graham Dumpleton先生指的是他大约一年前在https://groups.google.com/forum/#!topic/modwsgi/L1iJeUpPTks上发布的解决方案
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.