WSGI错误:包ID(null)的应用程序正在运行setugid(),这是不允许的

时间:2016-02-03 09:53:21

标签: macos apache mod-wsgi

我正在尝试在我自己的计算机(Mac OS X Yosemite)中使用ete2包中的webplugin示例(http://etetoolkit.org/docs/2.3/tutorial/tutorial_webplugin.html#module-ete2.webplugin

我已经达到了这一点,在apache2错误日志中我得到以下错误:

[wsgi:error] [pid 1152] ['name'] The application with bundle ID (null) is running setugid(), which is not allowed.
[wsgi:error] [pid 1154] [client 127.0.0.1:51175] Truncated or oversized response headers received from daemon process 'webplugin_example': /Users/Liis/Sites/webplugin/wsgi/webplugin_example.py, referer: http://webplugin.com/

我所做的是: 1)我在http://jason.pureconcepts.net/2014/11/configure-apache-virtualhost-mac-os-x/做了所有的事情 2)我的/站点文件夹包含文件夹/ webplugin 因此,webplugin.com显示主页面,但是如果我单击“绘制树”按钮,则会显示带有问号的小方框,并且会在日志文件中显示上述错误消息。

3)我的/Hosts/.conf文件如下所示:

LoadModule wsgi_module /usr/local/Cellar/mod_wsgi/4.4.11/libexec/mod_wsgi.so WSGIPythonHome "/Users/Liis/anaconda" WSGIPythonPath "/Users/Liis/anaconda/lib/python2.7/site-packages" <VirtualHost *:80> DocumentRoot "/Users/Liis/Sites" WSGIDaemonProcess webplugin_example user=_www group=_www processes=1 threads=25 header-buffer-size=32768 python-path="/Users/Liis/anaconda/lib/python2.7/site-packages" WSGIProcessGroup webplugin_example WSGIApplicationGroup %{GLOBAL} ServerName "webplugin.com" <Directory /> Require all granted
Options +FollowSymLinks
AllowOverride All </Directory> <Directory "/Users/Liis/Sites/webplugin/wsgi"> Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch SetHandler wsgi-script Order allow,deny Allow from all AddHandler wsgi-script .py </Directory> </VirtualHost>

任何帮助都会很好:)

我有一种感觉,错误可能与X服务器有关,但我不知道如何在Mac中修复它。

一切顺利, 升。

0 个答案:

没有答案