Skip to content

Instantly share code, notes, and snippets.

@landsman
Last active October 27, 2016 20:41
Show Gist options
  • Save landsman/d549a635e029f849a9a5b4133dc0e5b0 to your computer and use it in GitHub Desktop.
Save landsman/d549a635e029f849a9a5b4133dc0e5b0 to your computer and use it in GitHub Desktop.
full lamp stack in one script + git + nodejs, currently in WIP
# readme: run on sudo (sudo /path-to-file/localhostInstall.sh)
# git
apt-get install git-all
# composer
apt install composer
# install apache
apt-get install apache2
# add sources for Debian 8
echo "deb http://packages.dotdeb.org jessie all" >> /etc/apt/sources.list
echo "deb-src http://packages.dotdeb.org jessie all" >> /etc/apt/sources.list
wget https://www.dotdeb.org/dotdeb.gpg
sudo apt-key add dotdeb.gpg
# install php
sudo apt-get update
sudo apt-get install php7.0
# install php extensions
apt-get install php7.0-mbstring
a2enmod rewrite
# install mysql
apt-get install mysql-server
# install phpmyadmin
apt-get install phpmyadmin -y
# only for localhost!
sudo adduser $USER www-data
sudo chown $USER:www-data -R /var/www
sudo chmod -R 755 /var/www
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment