How To Deploy A Cloud Based Webserver in 5 minutes - LAMP

17,955 views

Published on

Simple tutorial showing how easy it is to deploy a cloud based webserver with apache, mysql and php in about 5 minutes. You can also watch the video for this slideshow at http://www.youtube.com/watch?v=3eqUZ6fzpOM

Published in: Self Improvement, Technology
3 Comments
8 Likes
Statistics
Notes
No Downloads
Views
Total views
17,955
On SlideShare
0
From Embeds
0
Number of Embeds
70
Actions
Shares
0
Downloads
175
Comments
3
Likes
8
Embeds 0
No embeds

No notes for slide

How To Deploy A Cloud Based Webserver in 5 minutes - LAMP

  1. 1. How to Deploy a Cloud Based Webserver in 5 minutes
  2. 2. Cloud based hosting allows your company to deploy servers On Demand For Pennies With No Up-Front Fees or Contracts
  3. 3. Steps to Get a Cloud Based Webserver Up and Running <ul><li>Deploy the Cloud Server </li></ul><ul><li>Install Mysql, Apache2, PHP5 </li></ul><ul><li>Edit the Server Firewall </li></ul>
  4. 4. Deploying the Cloud Server First You need to find a provider <ul><li>Rackspace.com </li></ul><ul><li>GoGrid.com </li></ul><ul><li>Slicehost.com (Owned by Rackspace) </li></ul><ul><li>servepath.com </li></ul>There are many more to choose from. I use Rackspace.com. I previously used Slicehost.
  5. 5. Deploying the Cloud Server <ul><li>Create an account at Rackspace.com </li></ul><ul><li>Once you have an account, you can deploy cloud servers. </li></ul><ul><li>To deploy a new server, you select the size based on memory and disk space. Then you choose the OS. </li></ul>
  6. 6. Deploying the Cloud Server
  7. 7. Deploying the Cloud Server <ul><li>New servers take about a minute to build. </li></ul><ul><li>You will get an email with IP number and root password. </li></ul><ul><li>You can now log into the server using SSH and set up the webserver </li></ul>
  8. 8. Installing Mysql Below are the linux commands Yum -fedora package manager does most the work # yum install mysql mysql-server # /etc/init.d/mysql start # chkconfig --levels 235 mysqld on Install Mysql Packages Start the Mysql Server Set the Mysql Server to start automatically on boot # mysqladmin -u root password <NEWPASS> Set the Mysql root password
  9. 9. Installing Apache Below are the linux commands Yum -fedora package manager does most the work # yum install httpd # /etc/init.d/httpd start # chkconfig --levels 235 httpd on Install httpd Packages Start the httpd Server Set the httpd Server to start automatically on boot
  10. 10. Installing Apache Below are the linux commands Yum -fedora package manager does most the work # iptables -F Remove firewall You can now enter the IP number of the server into your browser and you should see the “Apache Test Page” If it just hangs, you will probably need to remove your firewall to allow port 80 to talk
  11. 11. Installing PHP Below are the linux commands Yum -fedora package manager does most the work # yum install php # /etc/init.d/httpd restart Install php Packages Restart the httpd Server # yum install php-mysql Install php-mysql Package There are many more php modules you will want to install. This is the bare minimum to get php and mysql to work together
  12. 12. Restart Firewall Below are the linux commands # iptables-restore /etc/sysconfig/iptables.old # iptables -A INPUT -p tcp --dport 80 -j ACCEPT # service iptables save Restore iptables from old config Add the httpd port 80 Save new config # /etc/init.d/iptables restart Restart firewall
  13. 13. That’s it – Has it been 5 minutes yet? Now that you have a full webserver running we can start building our websites. In the next few videos/slides: <ul><li>How to deploy many websites automatically </li></ul><ul><li>How to template websites to use the same layout but different content </li></ul><ul><li>The new way to drive website traffic to your website </li></ul><ul><li>much much more… </li></ul>
  14. 14. Watch the sister video for these slides at: youtube.com/watch?v =3eqUZ6fzpOM <ul><li>mattdunlap.org – My Blog </li></ul><ul><li>twitter.com/mattdunlap – Send me a tweet </li></ul><ul><li>youtube.com/unomateo – Please subscribe to my tech vlog </li></ul><ul><li>linkedin.com/mattdunlap - Let’s Connect </li></ul>Thanks for watching this slideshow. If you need any help or want to ask a questions, please connect with me at the following networks

×