Skip to content

Instantly share code, notes, and snippets.

@johanek
Created April 27, 2012 12:18
Show Gist options
  • Save johanek/2508733 to your computer and use it in GitHub Desktop.
Save johanek/2508733 to your computer and use it in GitHub Desktop.
CentOS 6 graphite
yum install -y pycairo mod_python Django python-ldap python-memcached python-sqlite2 \
bitmap bitmap-fonts python-devel python-crypto pyOpenSSL zope gcc django-taggin
yum install python-Twisted <- fpm build
yum install pythin-pip <- fpm
test:
yum install python-carbon python-whisper python-graphite-conf
cd /opt/graphite/conf
rename .conf.example .conf *
cd /opt/graphite/webapp/graphite
python manage.py syncdb
chown -R apache:apache /opt/graphite/storage/
NameVirtualHost *:80
<VirtualHost *:80>
ServerName graphite01.dhcp.dneg.com
DocumentRoot "/opt/graphite/webapp"
CustomLog /var/log/httpd/graphite.access_log combined
<Location "/">
SetHandler python-program
PythonPath "['/opt/graphite/webapp'] + ['/usr/lib/python/site-packages/'] + sys.path"
PythonHandler django.core.handlers.modpython
SetEnv DJANGO_SETTINGS_MODULE graphite.settings
PythonDebug Off
PythonAutoReload Off
</Location>
<Location "/content/">
SetHandler None
</Location>
<Location "/media/">
SetHandler None
</Location>
alias /media/ /usr/lib/python/site-packages/django/contrib/admin/media/
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment