{"id":754,"date":"2012-12-08T08:53:17","date_gmt":"2012-12-07T22:53:17","guid":{"rendered":"http:\/\/www.moneystock.net\/wp_e\/?p=754"},"modified":"2012-12-09T20:46:44","modified_gmt":"2012-12-09T10:46:44","slug":"cloud-based-multi-site-hosting-in-a-single-web-server","status":"publish","type":"post","link":"https:\/\/moneystock.net\/wp_e\/2012\/12\/08\/cloud-based-multi-site-hosting-in-a-single-web-server\/","title":{"rendered":"Cloud based multi-site hosting in a single web server"},"content":{"rendered":"<div>Recently I&#8217;ve set up cloud based shared web site system, which is hosting several customers&#8217; web site in a single server. To do that what I&#8217;ve chosen stack is as follows;<\/div>\n<ul>\n<li>Amazon Web Service EC2 micro instance<\/li>\n<li>Windows Server 2012<\/li>\n<li>Softaculous AMPPS<\/li>\n<li>WordPress \/ Joomla<\/li>\n<\/ul>\n<p>Our company uses <a href=\"http:\/\/aws.amazon.com\/\" target=\"_blank\">Amazon Web Service<\/a> as production server so it&#8217;s sort of given decision. However, AWS(Amazon Web Service) is well-known and reliable service so there might be no argue about choosing this as a cloud service.<\/p>\n<p>After using AWS for a year, what I realized are<\/p>\n<ul>\n<li>It&#8217;s a great solution for SME, because\u00a0basically we don&#8217;t need to worry about hardware management. This is a peace of mind.<\/li>\n<li>As many said, it&#8217;s flexible and eazy to increase server instances or change it&#8217;s computing power.<\/li>\n<li>We can do anything on AWS server. Literally, there is no limit when it comes to what to do on the given server. It&#8217;s almost similar to having dedicated server.<\/li>\n<li>But, because we can do anything on AWS server, there is nothing installed out of the box, meaning that whatever we want, we have to implement it by ourselves. Which is a difference from normal hosting companies that are supporting everything about web site hosting.<\/li>\n<li>AWS API is quite useful to manage cloud service directly and\u00a0pragmatically, for example, scheduled back up management can be used by AWS API SDK for each program language.<\/li>\n<\/ul>\n<div><\/div>\n<h2>Windows Sever 2012<\/h2>\n<div><\/div>\n<div>When it comes to using PHP based CMSes, Windows may not be a best choice as an OS, but when a team is used to Windows server and not for\u00a0Linux, Windows can be more practical choice. Furthermore, windows on AWS can be accessed through Remote Desktop Connection, which is very easy to use. In case of Linux on AWS, developers have to use SSL connection through shell and FTP. This is normally\u00a0inconvenient\u00a0for windows based\u00a0developers.<\/div>\n<p>&nbsp;<\/p>\n<h2><a href=\"http:\/\/www.ampps.com\/\" target=\"_blank\">Softaculous AMPPS<\/a><\/h2>\n<p>The easiest way to run CMS like Joomla or WordPress on Windows server is installing AMP package, which all in one package that includes Apache, MySQL and PHP. In this kinds of packages, there are several options. Read <a href=\"http:\/\/www.infoworld.com\/d\/application-development\/review-wamp-stacks-web-developers-194346\" target=\"_blank\">this<\/a> for reviews on several AMP options.<\/p>\n<p>I&#8217;ve been using XAMPP for local development environment and found no problem. But, AMPPS is just better than XAMPP. AMPPS\u00a0is as easy to install and use as other AMP packages and this support web based management service which is a simple version of cPanel. The function of this includes multi domain set up, ftp account management, and powerful script based web application install function. The script based web app install function let users to install web app like joomla by just one click, which is amazing.<\/p>\n<p>After installation of AMPPS, works left to be done is easy. Just install any CMS you want using script based install through admin page or just install as a normal way of each CMS. And set up virtual host in Apache config file. That&#8217;s it.<\/p>\n<p>All straight forward, but one thing a little bit be careful is AWS does not work with multi-domain setting of AMPPS admin and Script based CMS may not the best choice for multiple installation of the same CMSes. When setting up multi domain, AMPPS automatically write a virtual host configuration, but it is not compatible in AWS environment.<\/p>\n<p>Thing is AWS uses elastic IP for each server instance, which is logically dedicated public IP, but it&#8217;s not a server&#8217;s attached IP that&#8217;s called in AWS as private IP. So, you have to set \u00a0up virtual host manually. Read <a href=\"http:\/\/calebogden.com\/multiple-websites-amazon-ec2-linux-virtual-hosts\/\" target=\"_blank\">this<\/a> for virtual host setting in AWS. For general virtual host configuration manual, see <a href=\"http:\/\/httpd.apache.org\/docs\/2.0\/vhosts\/examples.html\" target=\"_blank\">this<\/a>.<\/p>\n<p>One last addition on this topic, one AWS server instance has one public ip, if you want to use SSL, you have to use install another server instance. Except that, now we can host multiple web server in a single AWS server instance, which is great.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently I&#8217;ve set up cloud based shared web site system, which is hosting several customers&#8217; web site in a single server. To do that what I&#8217;ve chosen stack is as follows; Amazon Web Service EC2 micro instance Windows Server 2012 Softaculous AMPPS WordPress \/ Joomla Our company uses Amazon Web Service as production server so&hellip; <a class=\"more-link\" href=\"https:\/\/moneystock.net\/wp_e\/2012\/12\/08\/cloud-based-multi-site-hosting-in-a-single-web-server\/\">Continue reading <span class=\"screen-reader-text\">Cloud based multi-site hosting in a single web server<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[79],"tags":[171,174,172,173],"class_list":["post-754","post","type-post","status-publish","format-standard","hentry","category-web-development","tag-amazon-web-service","tag-ampps","tag-aws","tag-multiple-web-site","entry"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/posts\/754","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/comments?post=754"}],"version-history":[{"count":15,"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/posts\/754\/revisions"}],"predecessor-version":[{"id":757,"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/posts\/754\/revisions\/757"}],"wp:attachment":[{"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/media?parent=754"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/categories?post=754"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/moneystock.net\/wp_e\/wp-json\/wp\/v2\/tags?post=754"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}