Django的部署。错误加载MySQLdb的模块。从/ tmp目录无法读取/写入 [英] Django deployment. Error loading MySQLdb module. Trouble reading/writing from /tmp directory

查看:228
本文介绍了Django的部署。错误加载MySQLdb的模块。从/ tmp目录无法读取/写入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用mod_wsgi的和MySQLdb的部署我的Django应用程序到另一个主机/服务器。现在,我得到一个500错误与以下日志:

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:错误加载MySQLdb的模块:/tmp/MySQL_python-1.2.3c1-py2.4-linux-i686.egg-tmp/_mysql.so:未能映射从共享对象段:不允许操作

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

做了一些研究,它看起来像/ tmp目录是非exacutable。发现这一点: http://bit.ly/ckoIep

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?

推荐答案

点的 WSGIPythonEggs 指令到可写,可执行文件的路径。

Point the WSGIPythonEggs directive to a writable, executable path.

这篇关于Django的部署。错误加载MySQLdb的模块。从/ tmp目录无法读取/写入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆