Amazon EC2 Free Hosting Setup for PHP and MySQL
This is the beginning of many tutorials for Amazon Web Hosting Services
Getting Started With Amazon Web Hosting Services *
Amazon Hosting Has Limits
You Must Understand Terminal Commands
Read Amazon Policies
Amazon Hosting is Free For One Year
Amazon Cloud Services
You must get familiar and understand terminal commands.
For windows you have to download pUtty here http://www.putty.org/
For Mac you will just use your terminal
For Linux systems you will use your terminal for that.
For assistance please go here: https://a1websitepro.com/product/fix-it-for-me-appointment/
AMAZON WEB HOSTING GETTING STARTED BEGINNER LESSON
SET UP INSTANCE ELASTIC IP AND KEY PAIR IN AMAZON HOSTING
EDITING FILES IN SSH TERMINAL AMAZON EC2 HOSTING
SSH CONNECTION INSTALL SERVER PHP MYSQL AMAZON WEB HOSTING
INSTALL WORDPRESS AND DATABASE ON AMAZON WEB HOSTING SERVICES
POINT NAMESERVERS TO AMAZON WEB HOSTING SERVICES
ENABLE PRETTY PERMALINKS IN AMAZON WEB HOSTING
HOW TO SET UP A FREE AMAZON WEB HOSTING ACCOUNT LATEST VERSION NOV 2016
EDIT WORDPRESS FILES VIA SSH ON AMAZON AWS
How to Setup Amazon Web Services EC2 Instance with Apache, PHP, MySQL
Go to http://aws.amazon.com/ and create a new account if you do not have an account already.
A credit card or debit is required.
Sign into your AWS account under console management.
Select EC2 and create a new instance.
Choose one of the Ubuntu AMIs, and leave everything default. Under Security groups, create a new security group with SSH and HTTP.
Name your key and download.
Under the terminal, maneuver to the key and chmod 400 to make sure that the permissions are correct.
Under windows, you may have to run as administrator the command prompt or cygwin to chmod properly.
Or you can use the command that I did, which was:
chown :Users testTutorial.pem
Then I did:
chmod 400 testTutorial.pem
Allows only me to read
ssh -i testTutorial.pem ubuntu@…(public IP)
Once you are on the Ubuntu AMI, you can start to mess around with the packages to install.
I recommend the following:
Run the command:
sudo apt-get install apache2 libapache2-mod-php5 php5 mysql-server php5-mysql
You can also get phpadmin if you would like.
Remember to restart the apache service:
service apache2 restart
Then, run a secure installation of mysql:
Go put in your browser the public IP. It works! But what if you want to change the index.html
Well, go cd ../../var/www
In this directory www, you can edit the index.html
sudo vim index.html
You can change the index.html to anything you want using the editor of your choice.
The site changes.
In this video I will show you how you can host a static website on Amazon S3.
Want to automate this process? You can use s3_website to automatically setup your bucket and deploy your website. Check out my tutorial on how to use s3_website: https://www.youtube.com/watch?v=sshXVtr29HU
► What is S3?
S3 stands for Simple Storage Service, an online storage service that allows you to store unlimited files in the cloud.
► Why would I use S3 instead of a regular host?
Regular shared hosting providers charge you a fixed amount every month. That’s regardless of the amount of files you store or the amount of visitors you get. Most cheaper webhosting companies also don’t cope well with high traffic websites. Suddenly got featured on Reddit or Hacker News? A regular hosting provider might suspend your account for all the traffic! With S3 you only pay for what you use and it’s highly scalable.
► What does it cost?
To give you an example of cost: when my blog receiver 1000 visitors per month I was paying just 6 cents to host it!
Check out more detailed S3 pricing here:
Or use the calculator to estimate your AWS bill:
► I want to read more!
Check out my detailed blog post on how to host a Jekyll powered blog on S3:
Want a free SSL certificate for your website? Check out my tutorial on Amazon Certificate Manager: https://www.youtube.com/watch?v=JbQbwum196g
► Code snippet
This is the bucket policy that I use for static website hosting:
► About me
Follow me on Twitter: https://twitter.com/xafke
Check out my blog: http://www.savjee.be
Like my Facebook page: https://www.facebook.com/savjee