Aws amazon ec2


Published on

PHP5, MySQL, phpmyadmin, File access point

Published in: Education, Technology, Business
1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

Aws amazon ec2

  1. 1. AWS Amazon EC2 presented by Abdun Nur Tomal
  2. 2. AWS Amazon EC2 ● Amazon free tier page ● After login on goto the ec2 management console. ● On the left sidebar select instances and click on the Launch Instance button, after continue select the quick start tab. ● Choose desire os and click on the select button ● Now choose launch into and select subnet and continue ● Define a tag with key = Name and value = Webserver ● Create or load the existing keypair file ● Create or Load the existing security group [for defining the protocol name and port address] ● New Instance will be loaded on the table.
  3. 3. Use PuTTy for Login ● Using PuTTy.exe for session and SSH ● Use Host Name - ● Use Port Address – 22 and save the session with name. ● Download location for WinSCP - installer.exe ● On the connection category, expand SSH and select Auth, browse private key file for authentication
  4. 4. Use PuTTygen for key converssion ● From the File menue load private key. ● Save the file as private key. Use Pageant.exe for SSH authentication ● This is an windows agent after clicking on it, silently it is locate on the system tray. ● Right click on the icon and press add key load the [.ppk] file. Close it. ● Press the saved sessions and click on the session name. Now login console will be start.
  5. 5. Using OpenSSH ● Download link for Binary package http://sourceforge. net/projects/sshwindows/files/OpenSSH%20for%20Windows% 20-%20Release/ ● from cmd: ssh -i yourkeyname.pem ubuntu@elasticip (if you have public DNS then just replace elasticip)
  6. 6. Uploading Files to Amazon EC2 Server using WinSCP ● Using file Protocol - SCP ● Host Name [Public DNS on AWS] as like ec2-54-213-113-233. us-west ● Port Number [22] ● Private Key File [.ppk file] ● Save the session and login ● Download location for WinSCP - /winscp516setup.exe
  7. 7. Installation command for Linux ● Update the Ubuntu package manager and the installed packages: sudo apt-get update sudo apt-get dist-upgrade ● Updating your server sudo apt-get install build-essential
  8. 8. ● Install Apache: sudo apt-get install apache2 ● Enable .htaccess files by editing the /etc/apache2/sites- available/default file with vim editor (Look for the /var/www directory and make sure it contains AllowOverride All) ● Restart Apache: sudo /etc/init.d/apache2 restart ● Apache
  9. 9. Apache 2.4 from source testing ….
  10. 10. PHP5 ● Install sudo apt-get install libapache2-mod-php5 ● PHP5 with memcache sudo apt-get install php5-memcache
  11. 11. PHP5 from source testing ….
  12. 12. Work with /var/www/ ● Allow the Ubuntu user to work with the /var/www folder: sudo adduser ubuntu www-data sudo chown -R www-data:www-data /var/www sudo chmod -R g+rw /var/www
  13. 13. MySQL: ● Install MySQL: sudo apt-get install mysql-server sudo apt-get install php5-mysql ● Insert root password for the database and remember it.
  14. 14. PHPMyAdmin: ● Install sudo apt-get install phpmyadmin
  15. 15. Memcache: