Skip to content

Instantly share code, notes, and snippets.

@bbouille
Created April 20, 2014 18:09
Show Gist options
  • Save bbouille/11120859 to your computer and use it in GitHub Desktop.
Save bbouille/11120859 to your computer and use it in GitHub Desktop.
Ganglia-web-3.5.12 on Debian7
#!/bin/sh -Eux
apt-get -y update
## Install RRDTool and a web server
apt-get -y install rrdtool libapache2-mod-php5 php5 php5-gd php5-rrd
## Setup ganglia-web configuration
cd /tmp/
wget http://sourceforge.net/projects/ganglia/files/ganglia-web/3.5.12/ganglia-web-3.5.12.tar.gz
tar xf ganglia-web-3.5.12.tar.gz
mv ganglia-web-3.5.12 /var/www/ganglia
## Create working folders
mkdir -p /var/lib/ganglia-web/dwoo/cache
mkdir -p /var/lib/ganglia-web/dwoo/compiled
mkdir -p /var/lib/ganglia-web/conf
## Set priviledges
chown -R www-data:www-data /var/www/ganglia
chown -R www-data:www-data /var/lib/ganglia-web
/etc/init.d/apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment