Skip to content

Instantly share code, notes, and snippets.

@alexei
Last active March 27, 2021 19:38
Show Gist options
  • Select an option

  • Save alexei/7d600c366960af152885 to your computer and use it in GitHub Desktop.

Select an option

Save alexei/7d600c366960af152885 to your computer and use it in GitHub Desktop.
LAMP

Setup LAMP server

sudo apt-get update
sudo apt-get upgrade
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove
sudo apt-get install htop
sudo apt-get install git
sudo apt-get install apache2
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
sudo mysql_install_db
sudo /usr/bin/mysql_secure_installation
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
sudo vim /etc/apache2/mods-enabled/dir.conf # Set DirectoryIndex to index.php
sudo adduser --system --shell /bin/bash USER
sudo groupadd GROUP
sudo useradd -g GROUP USER
sudo passwd USER
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment