On Ubuntu 14.04 you can install graphite from package.
Install graphite-web
sudo apt-get install -y graphite-web
sudo apt-get install -y python-whisper
Install carbon
sudo apt-get install -y graphite-carbon
You could also use script: but except using
rm /etc/apache2/000-default.conf
you should use command
sudo a2dissite 000-default