Azure Cloud Platform

How to install WordPress on VM instance in Azure


Before you start installing WordPress on VM instance on Azure. You must log in into the machine. You can launch a VM Instance in Azure using this tutorial. After launch of machine log in into the machine using SSH. If you do not know how to SSH in VM instance you can follow this tutorial.


Step 1: Run this command to update all package.

How-to-install-WordPress-on-VM-instance-in-Azure-step-1.PNG

Step 2: Using below command we will install Apache server on the machine.

How-to-install-WordPress-on-VM-instance-in-Azure-step-2.PNG

Step 3: you can test that you have successfully installed apache server by typing public IP of instance in your browser.

How-to-install-WordPress-on-VM-instance-in-Azure-step-3.PNG

Step 4: Using below command we will install PHP server and MySQl server on the machine.

How-to-install-WordPress-on-VM-instance-in-Azure-step-4.PNG

Step 5: Enter the password for MySQL database.

How-to-install-WordPress-on-VM-instance-in-Azure-step-5.PNG

Step 6: Now using below command we will create directory for MySQL database.

How-to-install-WordPress-on-VM-instance-in-Azure-step-6.PNG

Step 7:Now we will begin MySQL secure installation using below command.

How-to-install-WordPress-on-VM-instance-in-Azure-step-7.PNG

Step 8: Just follow the instructions on the screen.

How-to-install-WordPress-on-VM-instance-in-Azure-step-8.PNG

Step 9: execute the below command to install required library.

How-to-install-WordPress-on-VM-instance-in-Azure-step-9.PNG

Step 10: Now we will go to var/www/html directory using below command.

How-to-install-WordPress-on-VM-instance-in-Azure-step-10.PNG

Step 11: Now we will create test.php file under html directory using below command.

How-to-install-WordPress-on-VM-instance-in-Azure-step-11.PNG

Step 12: Write these lines in test.php.

How-to-install-WordPress-on-VM-instance-in-Azure-step-12.PNG

Step 13: Now go to your browser and type your public IP/test.php. You will see the below page if php is successfully installed.

How-to-install-WordPress-on-VM-instance-in-Azure-step-13.PNG

Step 14: now edit the directory index to give priority to .php file using this command sudo vi. /etc/apache2/mods-enabled/dir.conf

How-to-install-WordPress-on-VM-instance-in-Azure-step-14.PNG

Step 15: Now we will login into MySQL server using below command.

How-to-install-WordPress-on-VM-instance-in-Azure-step-15.PNG

Step 16: Using below command we will create a user and grant all privileges on database wordpress.

How-to-install-WordPress-on-VM-instance-in-Azure-step-16.PNG

Step 17: Using below command we will create a user and grant all privileges on database wordpress.

How-to-install-WordPress-on-VM-instance-in-Azure-step-17.PNG How-to-install-WordPress-on-VM-instance-in-Azure-step-17.1.PNG

Step 18: Flush privileges using below command and type exit.

How-to-install-WordPress-on-VM-instance-in-Azure-step-18.PNG

Step 19: Now we will move to home directory and download WordPress using wget command.

How-to-install-WordPress-on-VM-instance-in-Azure-step-19.PNG

Step 20: Now we will unzip the downloaded WordPress folder using tar command.

How-to-install-WordPress-on-VM-instance-in-Azure-step-20.PNG

Step 21: Now we will go to wordpress folder using cd command.

How-to-install-WordPress-on-VM-instance-in-Azure-step-21.PNG

Step 22: Executes the following command to create wp-config.php file.

How-to-install-WordPress-on-VM-instance-in-Azure-step-22.PNG

Step 23: Now we will edit wp-config.php file using command sudo vi wp-config.php and Enter the foll0wing details show in figure.

How-to-install-WordPress-on-VM-instance-in-Azure-step-23.PNG

Step 24: Use below command to copy wordpress folder to html folder.

How-to-install-WordPress-on-VM-instance-in-Azure-step-24.PNG

Step 25: Go to your browser type your ip adress/wp-admin in you browser ,fill the details and click on install wordpress.

How-to-install-WordPress-on-VM-instance-in-Azure-step-25.PNG

Step 26: After successfully installation click on log in.

How-to-install-WordPress-on-VM-instance-in-Azure-step-26.PNG

Step 27: log in using id and password.

How-to-install-WordPress-on-VM-instance-in-Azure-step-27.PNG

Step 28: After successfully log in you will see the following screen.

How-to-install-WordPress-on-VM-instance-in-Azure-step-28.PNG

Step 29: Type your public IP of your machine in the browser.

How-to-install-WordPress-on-VM-instance-in-Azure-step-29.PNG

Must Read Article

How to associate static IP to Network Interface in Azure

How to associate static IP to Network Interface in Azure

In this article we are assign static to a newtwork interface.

How to create a resource group in Azure

How to create a resource group in Azure

In this Tutorial we are going to create a Resource Group in Azure.

How to create a Storage account in Azure

How to create a Storage account in Azure

In this Tutorial we are going to create Storage account in azure..

How to create a VM instance in Azure

How to create a VM instance in Azure

In this Tutorial we are going to launch a Virtual Machine in azure.

How to create a VM instance in Azure

How to delete static IP in Azure

In this Tutorial we are going to delete that static IP we created.

How  TO delete VM Instance in Azure

How TO delete VM Instance in Azure

In this Tutorial we are going to delete Virtual Machine.

How to disassociate static IP to Network Interface in Azure

How to disassociate static IP to Network Interface in Azure

In this Tutorial we are going to disassociate static ip from Network Interface in Azure.

How to install WordPress on VM instance in Azure

How to install WordPress on VM instance in Azure

Before you start installing WordPress on VM instance on Azure. You must log in into the machine. You can launch a VM Instance in Azure using this tutorial. After launch of machine log in into the machine using SSH. If you do not know how to SSH in VM instance you can follow this tutorial.

How  TO restart VM Instance in Azure

How TO restart VM Instance in Azure

In this Tutorial we are going to Restart Virtual Machine in Azure.

How to launch a VM instances in Google Cloud

How to launch a VM instances in Google Cloud

In this tutorial we are going to launch a Compute Egine instance.

How to install wordpress in VM instances in Google Cloud

How to install WordPress on VM instance in Google Cloud

Before you start installing WordPress on VM instance on Google Cloud. You must log in into the machine. You can launch a VM Instance on Google Cloud using this tutorial. After launch of machine log in into the machine using SSH. If you do not know how to SSH in VM instance you can follow this tutorial.

How To Launch EC2 Machine

How To Launch EC2 Machine

In this article we are going to learn how to launch a EC2 instance. For this you need to have AWS account.

How to install WordPress on ec2 machine

How to install WordPress on ec2 machine

Before you start installing WordPress on ec2 machine. You must log in into the machine.