Amazon Web Service

How to install WordPress on ec2 machine

Before you start installing WordPress on ec2 machine. You must log in into the machine. You can launch a ec2 machine using this tutorial.How to launch-ec2-instance After launch of machine log in into the machine using putty. If you do not know how to log in using putty you can follow this tutorial.How to Access ec2 instance using putty


Step 1: Using below command we will install HTTPD server on the machine.

How-to-install-WordPress-on-ec2-machine-step-1.PNG

Step 2: Now we will start HTTPD service using below command.

How-to-install-WordPress-on-ec2-machine-step-2.PNG

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

How-to-install-WordPress-on-ec2-machine-step-3.PNG

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

How-to-install-WordPress-on-ec2-machine-step-4.PNG

Step 5:Now we will restart HTTPD service using below command.

How-to-install-WordPress-on-ec2-machine-step-5.PNG

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

How-to-install-WordPress-on-ec2-machine-step-6.PNG

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

How-to-install-WordPress-on-ec2-machine-step-7.PNG

Step 8: Write these lines in test.php.

How-to-install-WordPress-on-ec2-machine-step-8.PNG

Step 9: 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-ec2-machine-step-9.PNG

Step 10: Using below command we will install MySQL server on the machine.

How-to-install-WordPress-on-ec2-machine-step-10.PNG

Step 11: Now we will start mysqld service using below command.

How-to-install-WordPress-on-ec2-machine-step-11.PNG

Step 12: Now we will begin MySQL secure installation using below command. Just follow the instructions on the screen.

How-to-install-WordPress-on-ec2-machine-step-12.PNG

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

How-to-install-WordPress-on-ec2-machine-step-13.PNG

Step 14: Now we will create a database wordpress using below command.

How-to-install-WordPress-on-ec2-machine-step-14.PNG

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

How-to-install-WordPress-on-ec2-machine-step-15.PNG

Step 16: Flush privileges using below command, and type exit.

How-to-install-WordPress-on-ec2-machine-step-16.PNG

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

How-to-install-WordPress-on-ec2-machine-step-17.PNG

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

How-to-install-WordPress-on-ec2-machine-step-18.PNG

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

How-to-install-WordPress-on-ec2-machine-step-19.PNG

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

How-to-install-WordPress-on-ec2-machine-step-20.PNG

Step 21: Now we will edit wp-config.php file using below command.

How-to-install-WordPress-on-ec2-machine-step-21.PNG

Step 22: Enter the foll0wing details show in figure.

How-to-install-WordPress-on-ec2-machine-step-22.PNG

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

How-to-install-WordPress-on-ec2-machine-step-23.PNG

Step 24: Go to your browser type your ip adress/wp-admin in you browser.

How-to-install-WordPress-on-ec2-machine-step-24.PNG

Step 25: Enter the required information and click on install WordPress.

How-to-install-WordPress-on-ec2-machine-step-25.PNG

Step 26: After successfully installation click on log in.

How-to-install-WordPress-on-ec2-machine-step-26.PNG

Step 27: log in using id and password.

How-to-install-WordPress-on-ec2-machine-step-27.PNG

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

How-to-install-WordPress-on-ec2-machine-step-28.PNG

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

How-to-install-WordPress-on-ec2-machine-step-29.PNG

Must Read Article

How to Copy AMI to another Region

How to Copy AMI to another Region

In this tutorial we are going a AMI to another region.

How to copy snapshot from one region to another

In this tutorial we are going copy snapshot from one region to another.

How to create a volume from Snapshot

In this tutorial we are going to create a volume from existing snapshot.

How to create Image from EC2 instance

How to create Image from EC2 instance

In this tutorial we are going create an Image from a running ec2 instance.

How to Deregister AMI

How to Deregister AMI

In this tutorial we are delete an existing AMI.

How to disassociate Static IP form ec2 instance

How to disassociate Static IP form ec2 instance

In this tutorial we are going to disassociate static IP form ec2 instance.

How to Launch a EC2 machie using your AMI

How to Launch a EC2 machie using your AMI

In this article we are going launch a ec2 machine using you AMI.

How to modify your Image permissione

How to modify your Image permissione

In this tutorial we are going to modify image permissione.

How To Modify your Snapshot Permission

How To Modify your Snapshot Permission

In this tutorial we are going to make snapshot permission public. So that any one can use this snapshot.

How to reboot ec2 instance

How to reboot ec2 instance

In this tutorial we are going to Rebbot ec2 instance.

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 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 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.