Install Apache, PHP & MySQL in Ubuntu

Install Apache, PHP & MySQL in Ubuntu

Step 1: Open Terminal

Press:

CTRL + ALT + T

Step 2: Install Apache

In terminal, type:

sudo apt-get install apache2

To test if Apache installation, Open browser and type:

http://localhost

Step 3: Install PHP

In terminal, type:

sudo apt-get install php5 libapache2-mod-php5

Step 4: Install MySQL

In terminal, type:

sudo apt-get install mysql-server

You will be asked for mysql root password. Keep your desired password and press ENTER (or press TAB to select OK and presee ENTER)

Step 5: Restart Apache

Type either of the following in terminal:

sudo service apache2 restart

or,

sudo /etc/init.d/apache2 restart
No votes yet.
Please wait...