Uploaded October 2014 | Updated September 2026, 2 weeks ago
How to Setup Amazon Web Service EC2 Instance Red Hat Website
Instructions:
Go to 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 Red Hat AMIs, and leave everything default. Under Security groups, create a new security group with SSH, HTTP, HTTPS, and TCP Rule 8080.
Name your key and download.
Under the terminal, maneuver to the key and chmod 600 to make sure that the permissions are correct.
In the command prompt:
cd - change directory
ls - list
ls -l - show list with permissions, user, group information
Under windows, you may have to run as administrator the command prompt or cygwin to chmod properly.
You can use the command that I did, which was:
chown :Users testTutorial.pem (to add the file to group Users)
Then I did:
chmod 600 testTutorial.pem
Allows only me to read and write the file
Then:
ssh -i tutorialtwebsite.pem ec2-user@...(public DNS)
Once you are on the Red Hat AMI, you can start to mess around with the packages to install.
I recommend the following:
Run the command:
sudo yum install httpd
sudo yum install sql-server sql php php-common
Remember to restart the apache service:
sudo service httpd restart
Go put in your browser the public DNS. It works! But what if you want to change the index.html?
Well, go cd /var/www/html
In this directory html, you can edit the index.html
sudo yum install nano
nano is a text editor that you can install
sudo nano index.html
Control O to save, Control X to exit
You can change the index.html to anything you want using the editor of your choice.
The site changes.
Twitter: twitter.com/microwavesam
How to Setup Amazon Web Service EC2 Instance Red Hat Website
Instructions:
Go to 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 Red Hat AMIs, and leave everything default. Under Security groups, create a new security group with SSH, HTTP, HTTPS, and TCP Rule 8080.
Name your key and download.
Under the terminal, maneuver to the key and chmod 600 to make sure that the permissions are correct.
In the command prompt:
cd - change directory
ls - list
ls -l - show list with permissions, user, group information
Under windows, you may have to run as administrator the command prompt or cygwin to chmod properly.
You can use the command that I did, which was:
chown :Users testTutorial.pem (to add the file to group Users)
Then I did:
chmod 600 testTutorial.pem
Allows only me to read and write the file
Then:
ssh -i tutorialtwebsite.pem ec2-user@...(public DNS)
Once you are on the Red Hat AMI, you can start to mess around with the packages to install.
I recommend the following:
Run the command:
sudo yum install httpd
sudo yum install sql-server sql php php-common
Remember to restart the apache service:
sudo service httpd restart
Go put in your browser the public DNS. It works! But what if you want to change the index.html?
Well, go cd /var/www/html
In this directory html, you can edit the index.html
sudo yum install nano
nano is a text editor that you can install
sudo nano index.html
Control O to save, Control X to exit
You can change the index.html to anything you want using the editor of your choice.
The site changes.
Twitter: twitter.com/microwavesam










