石墨不运行

我目前正在尝试使用石墨wiki的这些说明在gentoo盒子上安装石墨0.9.9。 基本上,它使用apache和mod_wsgi前置石墨。

一切似乎都进行得很顺利,除了apache /石墨webapp似乎从来没有回复网页浏览器的响应(浏览器不断地等待加载页面)。 我打开了石墨debugging信息,但是日志文件中唯一的消息就是这个,在info.log中一遍又一遍地重复(pid总是在变化):

Thu Feb 23 01:59:38 2012 :: graphite.wsgi – pid 4810 – 重新加载search索引

这些说明已经在我之前在Ubuntu机器上设置石墨。 我怀疑,mod_wsgi是死亡,但我已经证实,mod_wsgi工作正常时,不提供石墨web应用程序。

这是我的graphite.conf vhost文件的样子:

WSGISocketPrefix /etc/httpd/wsgi/ <VirtualHost *:80> ServerName # Server name DocumentRoot "/opt/graphite/webapp" ErrorLog /opt/graphite/storage/log/webapp/error.log CustomLog /opt/graphite/storage/log/webapp/access.log common # I've found that an equal number of processes & threads tends # to show the best performance for Graphite (ymmv). WSGIDaemonProcess graphite processes=5 threads=5 display-name='%{GROUP}' inactivity-timeout=120 WSGIProcessGroup graphite WSGIApplicationGroup %{GLOBAL} WSGIImportScript /opt/graphite/conf/graphite.wsgi process-group=graphite application-group=%{GLOBAL} WSGIScriptAlias / /opt/graphite/conf/graphite.wsgi Alias /content/ /opt/graphite/webapp/content/ <Location "/content/"> SetHandler None </Location> # XXX In order for the django admin site media to work you # must change @DJANGO_ROOT@ to be the path to your django # installation, which is probably something like: # /usr/lib/python2.6/site-packages/django Alias /media/ "/usr/lib64/python2.6/site-packages/django/contrib/admin/media/" <Location "/media/"> SetHandler None </Location> # The graphite.wsgi file has to be accessible by apache. It won't # be visible to clients because of the DocumentRoot though. <Directory /opt/graphite/conf/> Order deny,allow Allow from all </Directory> </VirtualHost> 

不解决你的问题,但你不需要:

 <Location "/content/"> SetHandler None </Location> <Location "/media/"> SetHandler None </Location> 

像这样使用SetHandler只是在使用mod_python时才需要。 使用mod_wsgi时不需要。

我build议你做的是确保你的代码在Apache下运行,实际上对于应用程序的数据文件所需的任何目录都有适当的写访问权限。