Creating an amazon ec2 user account and launch an instance. Install and begin running the server sudo yum install mysql-server sudo /etc / init.d / mysqlyd start. Make it WEB Accessible by running sudo chown ec2-user / var / www / html.
Creating an amazon ec2 user account and launch an instance. Install and begin running the server sudo yum install mysql-server sudo /etc / init.d / mysqlyd start. Make it WEB Accessible by running sudo chown ec2-user / var / www / html.
Creating an amazon ec2 user account and launch an instance. Install and begin running the server sudo yum install mysql-server sudo /etc / init.d / mysqlyd start. Make it WEB Accessible by running sudo chown ec2-user / var / www / html.
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