curl -O -s http://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/phantomjs/phantomjs-1.9.2-linux-x86_64.tar.bz2
bunzip2 phantomjs-1.9.2-linux-x86_64.tar.bz2
tar xf phantomjs-1.9.2-linux-x86_64.tar
mv phantomjs-1.9.2-linux-x86_64/ /opt/
ln -s /opt/phantomjs-1.9.2-linux-x86_64/ /opt/phantomjs
ln -s /opt/phantomjs/bin/phantomjs /usr/local/bin/
#check what you've just done
which phantomjs
phantomjs --version
#start installing casperjs
git clone https://github.com/n1k0/casperjs.git
mv casperjs/ /opt/casperjs
ln -s /opt/casperjs/bin/casperjs /usr/local/bin/
#check what you've just done
which casperjs
casperjs --version
#based on http://n8v.enteuxis.org/2012/09/how-to-install-javascript-tools-for-nagios/
sudo find / -type f -exec du -Sh {} + | sort -h | tail -10
sudo du -a /|sort -n|tail -10
Pour redemarer le systeme cPanel/WHM il suffit de faire la commande suivante :
/scripts/restartsrv_cpsrvd
Pour trouver tous les fichiers "error_log" ou autre nom il suffit d'utiliser cette commande linux dans un terminal :
find /home/website/ -name "error_log" -print
Changez le chemin /home/website par le chemin de votre choix et error_log par le nom de fichier de votre choix.