This is a 4 part series on configuring WordPress in Azure on its own dedicated VM.
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
Click Yes to trusting the SSH host key
Login with the credentials you setup in Part 1
Install any updates on the server
First things install any updates:
Sudo apt-get update
sudo apt-get upgrade
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
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
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: