How to Install LAMP on Ubuntu in 4 Simple Steps December 1, 2015Apache, Linux, Tech, Ubuntuyesteryear 1. Install Apache sudo apt-get install apache2 2. Install MySQL sudo apt-get install mysql-server 3. Install PHP sudo apt-get install php5 libapache2-mod-php5 4. Restart Server sudo /etc/init.d/apache2 restart