Skip to content

Instantly share code, notes, and snippets.

@remisarrailh
Last active December 15, 2015 11:19
Show Gist options
  • Save remisarrailh/5251745 to your computer and use it in GitHub Desktop.
Save remisarrailh/5251745 to your computer and use it in GitHub Desktop.
serveurweb
#!/bin/bash
clear
echo "------------------------"
echo "------------------------"
echo "Installation de lighttpd"
echo "------------------------"
echo "------------------------"
apt-get install lighttpd
echo "---------------------"
echo "---------------------"
echo "Installation de MySQL"
echo "---------------------"
echo "---------------------"
apt-get install mysql-server
echo "--------------------"
echo "--------------------"
echo "Installation de PHP5"
echo "--------------------"
echo "--------------------"
apt-get install php5-common php5-cgi php5 php5-mysql php5-gd
echo "-------------------------------"
echo "-------------------------------"
echo "Activation de la gestion de PHP"
echo "-------------------------------"
echo "-------------------------------"
lighty-enable-mod fastcgi-php
echo "--------------------------"
echo "--------------------------"
echo "Relancement du serveur web"
echo "--------------------------"
echo "--------------------------"
service lighttpd force-reload
echo "--------------------"
echo "--------------------"
echo "suppression de index"
echo "--------------------"
echo "--------------------"
rm /var/www/index.lighttpd.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment