Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save AlamShariful/47b7daaa37641a8fd936beab825aff6e to your computer and use it in GitHub Desktop.

Select an option

Save AlamShariful/47b7daaa37641a8fd936beab825aff6e to your computer and use it in GitHub Desktop.
Install Linux, Apache, MySQL, PHP (LAMP) stack on Ubuntu
Step 1: Install Apache
sudo apt-get update
sudo apt-get install apache2
Step 2: Install MySQL
sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql
During the installation, MySQL will ask you to set a root password. If you miss the chance to set the password while the program is installing, it is very easy to set the password later from within the MySQL shell.
Step 3: Install PHP
sudo apt-get install php5 libapache2-mod-php5 php5-mcrypt
Step 4: Restart
sudo service apache2 restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment