Difference between revisions of "HowTo/InstallGraphite"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
== Required packages == | == Required packages == | ||
− | apt-get install bzr python-sqlite python-memcache python-django python-cairo libapache2-mod-python python-zope.interface python-django-tagging python-twisted | + | apt-get install bzr python-sqlite python-memcache python-django python-cairo libapache2-mod-python python-zope.interface python-django-tagging python-twisted libapache2-mod-wsgi |
bzr branch lp:graphite | bzr branch lp:graphite | ||
Line 24: | Line 24: | ||
cd .. | cd .. | ||
python setup.py install | python setup.py install | ||
− | => setup apache | + | => setup apache wsgi |
+ | cp /opt/graphite/conf/graphite.wsgi.example /opt/graphite/conf/graphite.wsgi | ||
+ | cp /root/graphite/examples/example-graphite-vhost.conf /etc/apache2/sites-enabled/graphite.conf | ||
+ | mkdir /etc/apache2/wsgi | ||
+ | chown www-data /etc/apache2/wsgi | ||
+ | vi /etc/apache2/sites-enabled/graphite.conf | ||
+ | => setup servername, wsgi socket path, etc.. | ||
popd | popd | ||
cd /opt/graphite/webapp/graphite | cd /opt/graphite/webapp/graphite |
Revision as of 19:58, 5 February 2012
Required packages
apt-get install bzr python-sqlite python-memcache python-django python-cairo libapache2-mod-python python-zope.interface python-django-tagging python-twisted libapache2-mod-wsgi
bzr branch lp:graphite cd graphite/ pushd whisper python setup.py install popd pushd carbon python setup.py install pushd /opt/graphite/conf cp carbon.conf.example carbon.conf cp storage-schemas.conf.example storage-schemas.conf popd popd python check-dependencies.py bzr branch lp:txamqp cd txamqp/ python setup.py install cd .. python setup.py install => setup apache wsgi cp /opt/graphite/conf/graphite.wsgi.example /opt/graphite/conf/graphite.wsgi cp /root/graphite/examples/example-graphite-vhost.conf /etc/apache2/sites-enabled/graphite.conf mkdir /etc/apache2/wsgi chown www-data /etc/apache2/wsgi vi /etc/apache2/sites-enabled/graphite.conf => setup servername, wsgi socket path, etc.. popd cd /opt/graphite/webapp/graphite python manage.py syncdb => setup admin user chown -R www-data:www-data /opt/graphite/storage/ vi settings.py => setup database, etc.. cp local_settings.py.example local_settings.py