Web Development

Creating a Cloud Server

Create an instance on amazon web services (aws)

Open linux on your machine and connect the instance with your machine via ssh (Secure Shell) by the command

sudo ssh -i key username@ipaddress

Now both the machines are connected and you can access the server through your machine

Install LAMP the same way you installed it on your machine.

Copy the htm text page to the location /var/www on the server and make sure the root directory is set to this path in the configration file of apache2 server located at the location /etc/apache2/ by the command

sudo scp -i key source_directory username@ipaddress:/destination_directory

Congratulations your site has gone live on the world wide web.

You can access it by using the public DNS of the instance.