在Ubuntu 14上安装apache .4的石墨错误

问题描述:

mod_wsgi Exception occurred processing WSGI script '/usr/share/graphite-web/graphite.wsgi' 

我只拷贝apache-graphite.conf到/ etc/apache/sites-available,为什么它会抱怨graphite.wsgi? Apache的graphite.conf的在Ubuntu 14上安装apache .4的石墨错误

内容:

import os, sys 
os.environ['DJANGO_SETTINGS_MODULE'] = 'graphite.settings' 

import django.core.handlers.wsgi 

application = django.core.handlers.wsgi.WSGIHandler() 


from graphite.logger import log 
log.info("graphite.wsgi - pid %d - reloading search index" % os.getpid()) 
import graphite.metrics.search 
+0

有你混合Apache的graphite.conf和graphite.wsgi? – kamaradclimber 2014-10-04 12:33:43

graphite.wsgi是你的Apache网络服务器callled接听来电请求wsgi application

apache-graphite.conf站点定义了一个运行django的wsgi应用程序,它将使用石墨代码处理请求。我想这看上去更像是这样的:https://github.com/graphite-project/graphite-web/blob/0.9.x/examples/example-graphite-vhost.conf

graphite.wsgi通常是这样的:https://github.com/graphite-project/graphite-web/blob/0.9.x/conf/graphite.wsgi.example