Install php mysql apache2 in ubuntu

There are few ways to install php mysql apache in ubuntu.

  1. sudo apt-get install apache2
  2. sudo apt-get install mysql-server
  3. sudo apt-get install php5 libapache2
  4. 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

Leave a Comment