You can also access community AMIs and buy software components to make your own AMIs, both of which are outside the scope of this guide. The easiest way to start an instance is to select one of the AMIs in the Quick Start tab, which is what we’ll be doing. From here, you will be shown a list of Amazon Machine Images, or AMIs, which are basically snapshots of virtual servers which have access to repositories of programs to install. If you are given the option, choose the Classic Wizard to set up your instance. If you’re not there already, go back to the EC2 tab and click the Launch Instance button on the dashboard and a new window will pop up. Once the signup process is out of the way, we can finally start getting our hands dirty! 2. What’s even cooler is that Amazon places this call to international numbers as well, so don’t worry if you’re not living in the United States! Amazon will then place an automated call to this number and you will need to enter the provided code to verify your identity, which I thought was pretty cool. After you have logged in, click on the EC2 tab and begin the signup process from there.ĭuring the signup, you will be asked to provide a phone number in order to prove your identity, which will also be stored in case Amazon ever needs to contact you via phone. Sign up for an EC2 accountĮven after singing up for an AWS account, you will need to complete another signup process to be able to use the EC2 service, as well as a few of the other services that they provide. ![]() Amazon provides a lot of options when setting up an instance, but for this guide we’ll mainly be sticking to the default options so we don’t overcomplicate things. Create a security group and open any required portsĪll of these tasks are also relatively straightforward.Create a key pair file for use with SSH.There are a few steps that need to be completed before you can start installing things and using an EC2 instance to host your site or blog. Amazon has a free usage tier for EC2, detailed at, which lets you run a free Micro instance for one year after you sign up, so if you stick to the Micro EC2 instance while you are messing around you shouldn’t be charged a cent. For the budget conscious, a pricing guide can be found here. You won’t actually be charged for anything until you start using their web services. If they aren’t already stored, Amazon will need you to enter your credit card details and contact details. You can also use this page to sign up for an AWS account if you don’t already have one. If you are already have an Amazon account, just go to the AWS signup page and log in from there using your Amazon credentials. This is probably the easiest part of the whole process. The first thing we’ll be doing is signing up for Amazon Web Services. In this guide I’ll show you how to sign up for Amazon’s web services, launch and configure an Amazon EC2 instance, open the ports required for SSH, web and FTP access to your instance, and go through the ins and outs of setting up PHP, mySQL, SFTP and phpMyAdmin on the instance via SSH. I put it down to a lack of experience on my part, especially with using SSH to issue commands to the server and setting up PHP and mySQL manually instead of using an excellent tool such as MAMP, WAMP or XAMPP to simplify the process.Īfter a lot of troubleshooting and Googling and stubbornly refusing to let the setup process beat me, I was able to set up everything successfully and have the simple PHP to-do list application that I had developed up and running. To my surprise, it was more difficult than I expected to manually install and configure all of the individual components that comprise a web server. Specifically Amazon’s Elastic Compute Cloud, or EC2, a component of Amazon’s Web Services which you can use to set up and manage a cloud-based web server instance using Amazon’s extensive network and computational power. This also gave me an excuse to mess around with Amazon’s myriad cloud services, something that I’ve wanted to try for a while. In the past couple of months I’ve been diving into developing with PHP, to broaden my skills by learning a new language, initially as part of Fred Boyle’s code challenge. ![]() Since this post it has become insanely easy to spin up EC2 instances with PHP, mySQL and FTP, especially if all you want is a Wordpress install.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |