Last active
January 9, 2016 03:09
-
-
Save npotier/bb8e228ad50626580102 to your computer and use it in GitHub Desktop.
Debian Lamp Stack
This file contains hidden or 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 | |
# Fichier "lamp.sh" | |
apt-get update | |
apt-get -y install apache2 php5 mysql-server git vim | |
a2enmod rewrite php5 | |
service apache2 restart | |
apt-get -y install php-apc php5-gd php5-curl php5-mysql php5-xdebug php5-intl | |
apt-get -y install phpmyadmin | |
apt-get -y install curl | |
apt-get -y install iptables | |
cd /tmp && curl -s https://getcomposer.org/installer | php && mv composer.phar /usr/local/bin/composer | |
cd /tmp && wget -O /etc/init.d/firewall --no-check-certificate https://gist.githubusercontent.com/npotier/0c037e42ae655a8564c2/raw/ | |
chmod +x /etc/init.d/firewall | |
/etc/init.d/firewall | |
update-rc.d firewall defaults |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment