问题描述
我正在使用mod_wsgi和MySQLdb将Django应用程序部署到另一个主机/服务器。现在,我收到一个500错误与以下日志:不正确配置:加载MySQLdb模块时出错:/tmp/MySQL_python-1.2.3c1-py2.4- linux-i686.egg-tmp / _mysql.so:从共享对象映射段失败:操作不允许
有些研究看起来像/ tmp目录非exacutable。发现这个:
任何人都可以这样做,可能会推荐一个解决方案?
指向指令到可写,可执行路径。
I'm deploying my Django app to another host/server using mod_wsgi and MySQLdb. Right now, I'm getting a 500 error with the following log:
ImproperlyConfigured: Error loading MySQLdb module: /tmp/MySQL_python-1.2.3c1-py2.4-linux-i686.egg-tmp/_mysql.so: failed to map segment from shared object: Operation not permitted
Did some research and it looks like the /tmp directory is non-exacutable. Found this: http://bit.ly/ckoIep
Can anyone shed some light on this, and possibly recommend a solution?
Point the WSGIPythonEggs
directive to a writable, executable path.
这篇关于Django部署。加载MySQLdb模块时出错。 / tmp目录中的读/写错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!