The document provides step-by-step instructions for establishing a cloud service on Amazon Web Services (AWS). It details how to create an AWS account, launch an EC2 instance, and configure the instance as a Linux server with PHP and MySQL. It also covers how to make the server web accessible by configuring security groups and associating an elastic IP address.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
57 views3 pages
Make Your Website Pointing Amazon EC2 Instance
The document provides step-by-step instructions for establishing a cloud service on Amazon Web Services (AWS). It details how to create an AWS account, launch an EC2 instance, and configure the instance as a Linux server with PHP and MySQL. It also covers how to make the server web accessible by configuring security groups and associating an elastic IP address.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3
STEP BY STEP PROCEDURE TO ESTABLISH
CLOUD SERVICE 1.
Creating an amazon account and launch an instance
Step1: 1. Create an amazon ec2 user account https://aws.amazon.com/ 2. Go to Amazon management console 3. Select EC2 under Compute section Step 2:
2.
1. Now hit the Launch Instance button
2. Choose Amazon Linux 64 bit(Free Tier Eligible) 3. Create a key pair-these will be credentials youll use to SSH into the box. 4. Security Group: which will be used to specify the firewall used for your instance. Feel free to use the default Group for now. Continue to the Review phase and launch it! For windows users:
Download Putty to connect to your instance using SSH
http://www.chiark.greenend.org.uk/~sgtatham/putty/download .html A Windows installer for everything except PuTTYtel Installe putty-0.63r: installer.exe
(or by FTP)
(RSA sig)
(DSA sig)
Follow 3.
For Linux users:
On terminal run: ssh -i [FILE NAME].pem ec2-user@ec2-[IP ADDRESS].compute-1.amazonaws.com
4.
Configure your Linux instance as server
Login as: ec2-user (for linux users) PHP: Run sudo yum update First, the basics for PHP: sudo yum install php-mysql php php-xml phpmcrypt php-mbstring php-cli mysql httpd Press y for each of the prompts that shows up. Note that youre logged in as ec2-user, so you need to sudo all of these commands You should now be able to create and run a PHP test file. Next, lets get MySQL up and running MYSQL SERVER: First, install and begin running the server sudo yum install mysql-server sudo /etc/init.d/mysqld start
Next, set the root password. Ive found this password
generator to be just handy. Make it WEB Accessible: Run following command on terminal sudo chown ec2-user /var/www/html
Now go to EC2 console
Network & Security Security Groups -> <select your Group name> -> Inbound -> AddRule->Type->HTTP, PORT 80 Go to Security Groups-> Elastic IP->Allocate New Address->Associate Address->chose your instance and click Associate button