Azure Ubuntu and WordPress – Part 2

This is part 2 of a 4 part mini series “How To” for configuring WordPress on Ubuntu which is hosted in Microsoft Azure.

The 4 Parts are broken in to the following sections:

Part 1 – Deploying Ubuntu on Microsoft Azure
Part 2 – Configuring LAMP on Ubuntu
Part 3 – Install and Configuring WordPress on Ubuntu
Part 4 – Trouble shooting the common issues

Configuring LAMP on Ubuntu

In order to run WordPress on Ubunto you need to install and configure the LAMP (Linux Apache MySQL PHP)services on your Ubuntu VM.

So, first things first, connect to the server.

I use Putty to connect to SSH sessions. Open up Putty and then put in the public IP Address of the Ubuntu server

clip_image001

Click Yes to trusting the SSH host key

clip_image002

Login with the credentials you setup in Part 1

clip_image003

 

First thing to do is to install any updates:

Run

sudo apt-get update

clip_image004

clip_image005

Once the update has downloaded the available updates run

sudo apt-get upgrade

to upgrade the server:

clip_image006

Next you will be able to Install the services:

Once installed you are then ready to install LAMP on the Ubuntu Server by running the following commands:

Install Apache:

To install Apache run the following command and answer Y to any prompts:

sudo apt-get install apache2

This will take next to no time to install.

Then install MySQL server by running the next command. Again answer any prompts you may be given:

sudo apt-get install mysql-server

clip_image007

Enter in the password you want to set for the MySQL root account and then confirm it after.

Then once MySQL has been installed install the following modules:

sudo apt-get install php libapache2-mod-php php-mcrypt php-mysql

Lastly (I like to put this on for my own benefit) install PHPMyAdmin:

sudo apt-get install phpmyadmin

Select Apache

clip_image008

Select the option to sue a password

clip_image009

Set the password

clip_image010

Confirm the password if you’re required to

That’s it, your server is now setup.

You can test by browsing to the public IP Address in any web browser:

eg http://52.166.254.66

clip_image011

Leave Comment

Your email address will not be published. Required fields are marked *