Skip to content

Instantly share code, notes, and snippets.

@npotier
Last active January 9, 2016 03:09
Show Gist options
  • Save npotier/bb8e228ad50626580102 to your computer and use it in GitHub Desktop.
Save npotier/bb8e228ad50626580102 to your computer and use it in GitHub Desktop.
Debian Lamp Stack
#!/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