There are few ways to install php mysql apache in ubuntu.
- sudo apt-get install apache2
- sudo apt-get install mysql-server
- sudo apt-get install php5 libapache2
- sudo /etc/init.d/apache2 restart
You can also restart apache from
sudo service apache2 restart
Install phpmyadmin
sudo apt-get install phpmyadmin
You will need to configure your apache2.conf to make phpMyAdmin works.
sudo gedit /etc/apache2/apache2.conf
Then add the following line to the end of the file.
Include /etc/phpmyadmin/apache.conf
Then restart apache
/etc/init.d/apache2 restart