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:
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
Click Yes to trusting the SSH host key
Login with the credentials you setup in Part 1
First thing to do is to install any updates:
sudo apt-get update
Once the update has downloaded the available updates run
sudo apt-get upgrade
to upgrade the server:
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:
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
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 the option to sue a password
Set the password
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: