Installing WordPress on an Azure Ubuntu VM – Part 2

This is a 4 part series on configuring WordPress in Azure on its own dedicated VM.

 

Part 1 – Deploy an Azure Ubuntu VM
Part 2 – Install LAMP on the VM
Part 3 – Install and configure WordPress
Part 4 – Fixing the “quirks”

Part 2 – Install LAMP on the VM

In Part 2 we will be looking at deploying your newly installed Ubuntu server as a LAMP (Linux Apache MySQL PHP) server

This will then enable you to install WordPress on to the server after.

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

Install any updates on the server

First things install any updates:

Sudo apt-get update

clip_image004

clip_image005

sudo apt-get upgrade

clip_image006

Install the services:

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

Install Apache 2:

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

sudo apt-get install apache2

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

clip_image008

clip_image009

clip_image010

Confirm the password

That’s in, your server is now setup.

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

http://52.166.254.66

clip_image011

Leave Comment

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