Php Installation With MySQL In Ubuntu

Published On: 17 February 2014.By .
  • Digital Engineering

Php installation on Ubuntu is also as easy as for window. But many people don’t know those steps. We are providing a simple guide from you can install all this utility separately and easily. Follow these steps to install php, phpmyadmin, mysql for Ubuntu system.

 

 

lamp1

 

Open terminal and run those commands

sudo apt-get update 

this command will install the newest versions of all packages on your machine from ubuntu.

sudo apt-get install apache2

It will install apache server on your machine.

sudo apt-get install mysql-server libapache2-mod-auth-mysql php5-mysql

Now we are installing mysql server. It will install newest version of mysql. It will ask you for mysql server password.

This is optional. If you want to access mysql with phpmyadmin when you can use this. Alternatively you can use mysql workbench.

sudo apt-get install phpmyadmin 

Now we have to configure apache server with phpmyadmin.

sudo gedit /etc/apache2/apache2.conf

Then add the following line to the end of the file.

Include  /etc/phpmyadmin/apache.conf

now you restart your apache server

   sudo service apache2 restart

and enjoy coding 🙂 🙂 :).

Related content

That’s all for this blog