Created
April 20, 2014 18:09
-
-
Save bbouille/11120859 to your computer and use it in GitHub Desktop.
Ganglia-web-3.5.12 on Debian7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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