PoisonAce
Regular Member
- Sep 10, 2015
- 417
- 100
So I here walk through the various steps of setting up hosted sites on a free or more advanced, Amazon Virtual Machine instance. I use Wordpress as an example, there are other options.
1. Setup an amazon we services account cc/dc needed. Prepaid is fine, green dot or vanilla.
2.Go to your Amazon EC2.
3.Launch an instance on a free tier, I use windows 2008 or 2012 base. These aren't too slow. Choose 30gb HD space, which is free. Security Groups settings must keep the port 80 HTTP AND port 443 HTPPS Open. Then launch, it asks you to create a security key. Make one, download it and save the .pem file somewhere. Then when your virtual machine is launched in 3-4 minutes you can go to your EC2 AND decrypt the password. Go to the top and click on actions then select get windows password in the dropdown.
5. Sign in with remote desktop control. You need the public IP for instance. You get this in the instance section of the EC2.
6. Go to your Internet settings in server manager and select IE Enhance Security Configuration or ESC. Then make sure Administrator is off. This will allow the next steps to run smooth.
7.Download and install the latest version of Microsoft Web Platform Installer.
8.Download and install Visual C++ Redistributable for Visual Studio 2012 Update 4 or later.
9.In Microsoft Web Platform Installer click Wordpress and click add. Then install at the bottom.
10. On the Prerequisites page, select MySQL for the database to use. Enter the desired administrator password for your MySQL database in the Password and Re-type Password boxes, and then click Continue.
11.Click I Accept for the list of third-party application software, Microsoft products (including the IIS web server), and components. After the Web Platform Installer finishes installing the software, you are prompted to configure your new site.
12.On the Configure page, clear the default application name in the 'WordPress' application name: box and leave it blank, then leave the default information in the other boxes and click. Now click Yes to accept that the contents of the folder will be overwritten.
13.Configure Security Keys. Basically, adding long, random values here makes your site more secure.
For more information about security keys
http://codex.wordpress.org/Editing_wp-config.php#Security_Keys.
Visit https://api.wordpress.org/secret-key/1.1/salt/ to randomly generate a set of key values that you can copy and paste into the installation wizard. The following steps will show you how to modify these values in Notepad to work with a Windows installation. Copy all of the text in that page to your clipboard. Paste it into a Text editor, ie. here is notepad. Windows WordPress installations do not accept the dollar sign ($) in key and salt values, so they need to be replaced with another character (such as S). In the Notepad window, click Edit, then click Replace. In the Find what box, type $. In the Replace with box, type S. Click Replace All to replace all of the dollar signs with S characters. Paste the modified key and salt values from the Notepad window into their corresponding boxes in the installation wizard. For example, the AUTH_KEY value in the Notepad window should be pasted into the Authentication Key box in the wizard. Do not include the single quotes or other text surrounding the values, just the actual value as in the example shown below.
14.Your on your way to creating your site and forwarding your hosting to your name servers.
In the top left you'll click services. Drop down to Route 53. In route 53 you can create hosted zones. Simply add your instance public IP to the current DNS records by adding a Record Set. After you do this, add another Record Set as an Alias. Select Alias and for Alias target put your domain name. This may give you a problem when you click crate, what you must do is go to the very top of the new record set area. Put some characters in the name box which looks like a subdomain, this differentiated it from the other records for me and worked.
Enjoy! and remember you can always use a fast VMI if needed.
Sources;
http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/EC2Win_CreateWordPressBlog.html
1. Setup an amazon we services account cc/dc needed. Prepaid is fine, green dot or vanilla.
2.Go to your Amazon EC2.
3.Launch an instance on a free tier, I use windows 2008 or 2012 base. These aren't too slow. Choose 30gb HD space, which is free. Security Groups settings must keep the port 80 HTTP AND port 443 HTPPS Open. Then launch, it asks you to create a security key. Make one, download it and save the .pem file somewhere. Then when your virtual machine is launched in 3-4 minutes you can go to your EC2 AND decrypt the password. Go to the top and click on actions then select get windows password in the dropdown.
5. Sign in with remote desktop control. You need the public IP for instance. You get this in the instance section of the EC2.
6. Go to your Internet settings in server manager and select IE Enhance Security Configuration or ESC. Then make sure Administrator is off. This will allow the next steps to run smooth.
7.Download and install the latest version of Microsoft Web Platform Installer.
8.Download and install Visual C++ Redistributable for Visual Studio 2012 Update 4 or later.
9.In Microsoft Web Platform Installer click Wordpress and click add. Then install at the bottom.
10. On the Prerequisites page, select MySQL for the database to use. Enter the desired administrator password for your MySQL database in the Password and Re-type Password boxes, and then click Continue.
11.Click I Accept for the list of third-party application software, Microsoft products (including the IIS web server), and components. After the Web Platform Installer finishes installing the software, you are prompted to configure your new site.
12.On the Configure page, clear the default application name in the 'WordPress' application name: box and leave it blank, then leave the default information in the other boxes and click. Now click Yes to accept that the contents of the folder will be overwritten.
13.Configure Security Keys. Basically, adding long, random values here makes your site more secure.
For more information about security keys
http://codex.wordpress.org/Editing_wp-config.php#Security_Keys.
Visit https://api.wordpress.org/secret-key/1.1/salt/ to randomly generate a set of key values that you can copy and paste into the installation wizard. The following steps will show you how to modify these values in Notepad to work with a Windows installation. Copy all of the text in that page to your clipboard. Paste it into a Text editor, ie. here is notepad. Windows WordPress installations do not accept the dollar sign ($) in key and salt values, so they need to be replaced with another character (such as S). In the Notepad window, click Edit, then click Replace. In the Find what box, type $. In the Replace with box, type S. Click Replace All to replace all of the dollar signs with S characters. Paste the modified key and salt values from the Notepad window into their corresponding boxes in the installation wizard. For example, the AUTH_KEY value in the Notepad window should be pasted into the Authentication Key box in the wizard. Do not include the single quotes or other text surrounding the values, just the actual value as in the example shown below.
14.Your on your way to creating your site and forwarding your hosting to your name servers.
In the top left you'll click services. Drop down to Route 53. In route 53 you can create hosted zones. Simply add your instance public IP to the current DNS records by adding a Record Set. After you do this, add another Record Set as an Alias. Select Alias and for Alias target put your domain name. This may give you a problem when you click crate, what you must do is go to the very top of the new record set area. Put some characters in the name box which looks like a subdomain, this differentiated it from the other records for me and worked.
Enjoy! and remember you can always use a fast VMI if needed.
Sources;
http://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/EC2Win_CreateWordPressBlog.html