<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>City Cloud</title>
	<atom:link href="http://www.citycloud.eu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.citycloud.eu</link>
	<description>Your data center in a browser</description>
	<lastBuildDate>Wed, 22 Feb 2012 08:10:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>New image on City Cloud: It´s Ruby´s turn!</title>
		<link>http://www.citycloud.eu/city-cloud/new-image-on-city-cloud-it%c2%b4s-ruby%c2%b4s-turn/</link>
		<comments>http://www.citycloud.eu/city-cloud/new-image-on-city-cloud-it%c2%b4s-ruby%c2%b4s-turn/#comments</comments>
		<pubDate>Thu, 09 Feb 2012 21:11:42 +0000</pubDate>
		<dc:creator>niclam</dc:creator>
				<category><![CDATA[City Cloud]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[passenger]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[rvm]]></category>

		<guid isPermaLink="false">http://www.citycloud.eu/?p=3526</guid>
		<description><![CDATA[Let’s see. We have already added two new images to City Cloud, a L.A.M.P. server and a Windows Server 2008 alongside MS SQL. We have decided to go for a suggestion a user gave us on Twitter (@sandelius). So, we have created a Ruby image that comes with all the bells and whistles and packed [...]]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.citycloud.eu%2Fcity-cloud%2Fnew-image-on-city-cloud-it%25c2%25b4s-ruby%25c2%25b4s-turn%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=verdana&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px;height:60px;margin-top:5px;"></iframe><p><a href="http://www.citycloud.eu/wp-content/uploads/2012/02/ruby.jpg"><img style="background-image: none; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; padding-top: 0px; border: 0px;" title="ruby" src="http://www.citycloud.eu/wp-content/uploads/2012/02/ruby_thumb.jpg" alt="ruby" width="99" height="99" align="left" border="0" /></a>Let’s see. We have already added two new images to City Cloud, a L.A.M.P. server and a Windows Server 2008 alongside MS SQL. We have decided to go for a suggestion a user gave us on Twitter <a href="https://twitter.com/#!/sandelius" target="_blank">(@sandelius</a>).</p>
<p>So, we have created a Ruby image that comes with all the bells and whistles and packed with Nginx, a fast performing web-server.</p>
<p>Here are the details.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span id="more-3526"></span></p>
<h2>Ruby is all around</h2>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/02/Ruby_on_Rails.jpg"><img style="background-image: none; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; padding-top: 0px; border: 0px;" title="Ruby_on_Rails" src="http://www.citycloud.eu/wp-content/uploads/2012/02/Ruby_on_Rails_thumb.jpg" alt="Ruby_on_Rails" width="99" height="117" align="left" border="0" /></a>Speaking strictly of the server side of things, most of the languages used for web development are PHP, ASP.NET, Java and Python. Ruby is a relatively newcomer language and although it appeared at around the same time as PHP, it didn’t take off until a few years ago.</p>
<p>Thanks to its simplicity you can get started easily and thanks to its influences, you get a robust language that can be used for a variety of purposes. Last but not least, at around 2005 Ruby on Rails appeared which is a popular framework to create websites or web applications and coupled with its excellent package management (packages are called “gems” in Ruby), you get full extensibility.</p>
<h2></h2>
<h2></h2>
<h2>Performance is key</h2>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/02/Nginx.jpg"><img style="background-image: none; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; padding-top: 0px; border: 0px;" title="Nginx" src="http://www.citycloud.eu/wp-content/uploads/2012/02/Nginx_thumb.jpg" alt="Nginx" width="132" height="32" align="left" border="0" /></a>Nginx is a web server and a proxy server. Thanks to its robustness and speed, Its usage has been steadily growing in recent years. It was created by Igor Sysoev.</p>
<p>This is a great choice since it can serve thousands of connections on modest hardware. It’s a fast and proven piece of software, and best of all, it’s open-source which gives anyone the opportunity to peruse the code and even contribute back to it.</p>
<p>Since we are using Ruby, we tossed in the excellent <a href="http://www.modrails.com/" target="_blank">Phusion Passenger</a> also known as mod_rails. Which is great for deploying Rails applications for the web.</p>
<h2>Image details</h2>
<p>The image is based off Debian GNU/Linux 6.0.2.1 64-bit which is quite stable and up-to-date. We have also installed <a href="http://beginrescueend.com/" target="_blank">RVM</a>, which stands for Ruby Version Manager and is great to handle different ruby versions at once. This is quite handy in a production environment since we wouldn’t want anything to break if we update Ruby and something changed (ideally, this is of course, taken care of in a development/testing environment).</p>
<p>There is also Ruby on Rails, a well-known framework that takes full advantage of the MVC model and gives you a lot of productivity tools. But let’s not get dwindled down in details, here is a TL; DR list with all the versions:</p>
<ul>
<li>RVM, version: 1.10.</li>
<li>Ruby, version: 1.9.3</li>
<li>Nginx (with passenger built-in, installed on /opt/nginx), version: 1.0.10</li>
<li>Rails, version: 3.2.1</li>
<li>Debian GNU/Linux: 6.0.2.1 64-bit</li>
</ul>
<p>We have created a test app that you can quickly use to see if everything is working. Just put the following line on your hosts file (usually /etc/hosts on Linux or \Windows\System32\Drivers\Etc\hosts on Windows), replace it with your corresponding IP address and then line up your browser to rackexample.com. A simple “Hello World!” html should appear.</p>
<p><em>your_ip_address rackexample.com</em></p>
<h2>Final comments</h2>
<p>Last but not least, let us thank <a href="https://twitter.com/#!/sandelius" target="_blank">@sandelius</a> for the suggestion and we hope you can all put this image to good use. It definitely saves a lot of time that can be better spent developing or deploying applications.</p>
<p>As usual, since this is a new image, if you find anything odd or that can be improved, we’d love your comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.citycloud.eu/city-cloud/new-image-on-city-cloud-it%c2%b4s-ruby%c2%b4s-turn/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Basic performance tips for a fresh installation of Apache and MySQL</title>
		<link>http://www.citycloud.eu/city-cloud/basic-performance-tips-for-a-fresh-installation-of-apache-and-mysql/</link>
		<comments>http://www.citycloud.eu/city-cloud/basic-performance-tips-for-a-fresh-installation-of-apache-and-mysql/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 03:17:19 +0000</pubDate>
		<dc:creator>niclam</dc:creator>
				<category><![CDATA[City Cloud]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.citycloud.eu/?p=3461</guid>
		<description><![CDATA[Great, so you just created your Linux server on City Cloud. You have chosen to use our LAMP image or you just went and installed Apache, PHP and MySQL yourself. So far so good, but this is just the beginning. To be able to make your website serve as many requests as possible, it’s important [...]]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.citycloud.eu%2Fcity-cloud%2Fbasic-performance-tips-for-a-fresh-installation-of-apache-and-mysql%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=verdana&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px;height:60px;margin-top:5px;"></iframe><p><a href="http://www.citycloud.eu/wp-content/uploads/2012/02/apache-and-mysql.jpg"><img style="background-image: none; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; padding-top: 0px; border: 0px;" title="apache and mysql" src="http://www.citycloud.eu/wp-content/uploads/2012/02/apache-and-mysql_thumb.jpg" alt="apache and mysql" width="151" height="128" align="left" border="0" /></a>Great, so you just created your Linux server on City Cloud. You have chosen to use our LAMP image or you just went and installed Apache, PHP and MySQL yourself.</p>
<p>So far so good, but this is just the beginning. To be able to make your website serve as many requests as possible, it’s important to make a few basic adjustments to the default installation of Apache and MySQL.</p>
<h2></h2>
<h2></h2>
<p><span id="more-3461"></span></p>
<h2>Elusive target</h2>
<p>When we talk about web performance at a grand scale, we usually mean having a fast response to web requests, making your website load as fast as possible.</p>
<p>Now, that’s easier said than done, but mostly because there are many angles of attack when we talk about the speed in which a page loads. For instance, sometimes, the server is a beast of a machine but the software is not well configured for the occasion.</p>
<p>Sometimes the server and software are just fine but you have a few tables in your database that need indexing. Or your PHP script could use a little more optimization. So we find ourselves having multiple scenarios that call for different solutions.</p>
<p>There are entire books written on this subject but as a rule of thumb, performance improvements are an ongoing process where iteration, testing and measurements are the key to a fast website.</p>
<h2>Let’s get to it</h2>
<p>Here we present you with some practical tweaks to make your basic installation handle a little bit more. And although there are a lot more parameters than those exposed here, this is a great starting point.</p>
<h3>Apache2:</h3>
<p><span style="text-decoration: underline;">- Unused modules: </span></p>
<p>Apache processes are memory hogs, it’s common to see them using over a hundred megabytes of ram. Picture a server of 1 GB of ram, 5 people browsing the site and you can see how things could quickly turn for the worse. Disabling unused modules ensures that every process started uses only what it needs.</p>
<p>To disable a module on Apache 2 you just do the following:</p>
<p>a2dismod module_name</p>
<p>And then make sure you restart Apache</p>
<p>apachectl restart</p>
<p><span style="text-decoration: underline;">- Keepalive (persistent connections):</span></p>
<p>This option tells Apache to keep a connection for a given client so it doesn’t have to spawn a new process all the time, which has a considerable overhead when we are talking about multiple connections from several clients. It’s a good idea to enable this option (set it to On) but only if we get the KeepAliveTimeOut parameter down, since a big number could clog up the server with unnecessary processes.</p>
<p>Since a web page usually does not take more than 3 seconds (unless there is something wrong), this parameter should be in the 3-5 range.</p>
<p>Also, if we know our website has a lot of page loads (for instance, because it’s a web application), it’s also a good idea to have a big number of MaxKeepAliveRequests.</p>
<p><span style="text-decoration: underline;">- Timeout:</span></p>
<p>Lowering the general timeout to something more reasonable always make sure no Apache processes are lying around for too long. Be careful not to lower it too much though. A value of 10-15 is a good starting value.</p>
<p><span style="text-decoration: underline;">- Name server resolution:</span></p>
<p>Apache logs are a powerful feature that can later be used for a variety of purposes, from security auditing to traffic processing. It’s much more readable to humans to have a hostname than a IP address and while one hit to a name server might not be that much, a site with a lot of traffic adds up in requests.</p>
<p>If you don’t need this at all, it’s better to have it Off.</p>
<p><span style="text-decoration: underline;">- .htaccess file lookup</span></p>
<p>If you have a virtual host that’s not using .htaccess files, set AllowOverride parameter to None so Apache doesn’t look check each directory for .htaccess.</p>
<p><span style="text-decoration: underline;">- Amount of processes:</span></p>
<p>This is mostly dependent on the memory available and cores. The basic settings won’t give you much simultaneous connections but it’s a good idea to play with them until you find the right balance.</p>
<p>One thing is for certain, do not let that memory ran out since it will swap to disk and that’s going to slow down the server considerably. And if you have disabled the swap memory, the kernel will start to kill the processes (if we are lucky) or grind the server to a halt.</p>
<p>Also, it’s key to understand how many visits our site will have, at least a ball park figure. With that in mind, we can anticipate and set the numbers accordingly. Fortunately, thanks to City Cloud, it’s easy to scale up when needed.</p>
<p>To give you a point of reference, for a server with 2 cores and 1 GB of RAM, this could be useful (assuming the multi-process version of Apache2):</p>
<p>StartServers         10<br />
MinSpareServers      10<br />
MaxSpareServers      15<br />
ServerLimit     50<br />
MaxClients         50<br />
MaxRequestsPerChild   500</p>
<p>These parameters are optimistic. They assume you won’t have more than 50 clients connected at the same time. Of course, this is usually tailored to one’s needs. To give you an idea, 50 simultaneous user at a peak may represent a site with 2000-3000 daily visits. Which is a small site but nothing to scoff at.</p>
<h3>MySQL:</h3>
<p><span style="text-decoration: underline;">- Caching:</span></p>
<p>This is one of the greatest optimizations for sites that have a lot of traffic and generally read from the database. Caching means that common queries are retrieved from the cache, which is orders of magnitude faster than doing the full query.</p>
<p>Caching takes a toll on memory, so care must be taken that enough memory is available to our MySQL server process. Of particular interest we have the following parameters, given a server with 1 GB of RAM as reference:</p>
<p>query_cache_type = 1</p>
<p>query_cache_size = 32M</p>
<p>key_buffer_size = 64M</p>
<p>thread_cache_size =  4</p>
<p>max_connections =  150</p>
<p><span style="text-decoration: underline;">- Separate the database:</span></p>
<p>This is not a setting but a common practice. If you start with a small server, chances are you have the web and database server in the same machine. Once traffic starts to get higher, things tends to get messy since Apache and MySQL are fighting for resources.</p>
<p>Fortunately, the process of moving a database out of the main server is not a complicated one (and a great idea for an upcoming blog post!). Of course, if you happen to have a site that grows constantly, you will possibly enter the realm of replication, automatic failover and other techniques that are used when you have a database spanning multiple servers.</p>
<p><span style="text-decoration: underline;">- No substitute for a well designed database</span></p>
<p>Last but not least, if your database has a non-optimal structure, it doesn’t matter how much you scale, you will always have bottlenecks that have nothing to do with your server settings. Making sure your database has a good structure is just as important as having the right infrastructure.</p>
<h2>Conclusion</h2>
<p>Remember that this is just one way to optimize (and a subset of tweaks). You also have other options, such as choosing another webserver (nginx for instance), scaling vertically or horizontally, optimizing your database and code.</p>
<p>Also, what we’ve exposed here lies around basic optimization and it’s definitely not the ideal case (where, as we’ve mentioned, the database has its own hardware, etc) but it will get you by while you concentrate on your site.</p>
<p>For now, this is a great way to start pumping more requests per second. Soon enough we’ll publish articles on other ways to get more juice out of virtual servers. This is just the beginning on an exciting journey towards greater efficiency.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.citycloud.eu/city-cloud/basic-performance-tips-for-a-fresh-installation-of-apache-and-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New image on City Cloud: Windows Server 2008R2 and MS-SQL on steroids!</title>
		<link>http://www.citycloud.eu/city-cloud/new-image-on-city-cloud-windows-server-2008r2-and-ms-sql-on-steroids/</link>
		<comments>http://www.citycloud.eu/city-cloud/new-image-on-city-cloud-windows-server-2008r2-and-ms-sql-on-steroids/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 03:56:19 +0000</pubDate>
		<dc:creator>niclam</dc:creator>
				<category><![CDATA[City Cloud]]></category>
		<category><![CDATA[mssql]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[VirtIO]]></category>
		<category><![CDATA[windows 2008R2]]></category>

		<guid isPermaLink="false">http://www.citycloud.eu/?p=3445</guid>
		<description><![CDATA[We have had Windows 2008 Server images on City Cloud for a while now. We also have Windows 2008 and MS-SQL Server integrated but recently we implemented VirtIO drivers for Windows 2008R2 and according to our tests, the speed improvement is considerable. So now, in order to save you quite a bit of time and [...]]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.citycloud.eu%2Fcity-cloud%2Fnew-image-on-city-cloud-windows-server-2008r2-and-ms-sql-on-steroids%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=verdana&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px;height:60px;margin-top:5px;"></iframe><p><a href="http://www.citycloud.eu/wp-content/uploads/2012/02/download.jpg"><img style="background-image: none; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; padding-top: 0px; border: 0px;" title="download" src="http://www.citycloud.eu/wp-content/uploads/2012/02/download_thumb.jpg" alt="download" width="165" height="125" align="left" border="0" /></a>We have had Windows 2008 Server images on City Cloud for a while now. We also have Windows 2008 and MS-SQL Server integrated but recently we implemented VirtIO drivers for Windows 2008R2 and according to our tests, the speed improvement is considerable.</p>
<p>So now, in order to save you quite a bit of time and offer you something with good performance, we´ve packaged Windows alongside MS-SQL and VirtIO drivers all-in-one.</p>
<p>Read on to find out the details about it.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span id="more-3445"></span></p>
<h2>Windows Server 2008 and MS-SQL Std ready to go</h2>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/02/mssql_server_logo.jpg"><img style="background-image: none; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; padding-top: 0px; border: 0px;" title="mssql_server_logo" src="http://www.citycloud.eu/wp-content/uploads/2012/02/mssql_server_logo_thumb.jpg" alt="mssql_server_logo" width="164" height="104" align="left" border="0" /></a>You can already find this new image on the App Center. Click on “New VM” or the plus sign on the App Center listing, name your new server and after a few minutes, it will be ready.</p>
<p>Installing Windows Server 2008 and MS-SQL can be a time consuming task, you need to check for pre-requisites, go through the installation process and then restart and wait for several updates to be applied.</p>
<p>So, this VM makes a lot of sense since it will save you precious time. And since the installation is a base one, with the default options, you can go in and change the configuration at your heart´s content.</p>
<h2></h2>
<h2>Blazing drivers</h2>
<p>As we have exposed recently, our tests showed great promise when using a Windows 2008 instance with VirtIO drivers installed. Since MS-SQL is a robust but power hungry application, you need all the efficiency you can get from the virtualization platform.</p>
<p>Thanks to this image, you don´t have to worry at all to install them. We have done that for you already.</p>
<h2>Useful tips</h2>
<p>The first time you start the virtual machine, it might take a while to get the public IP address on the details box. In that case, we recommend that you use the built-in VNC client, login, change your password and obtain the IP address.</p>
<p>From them on, you can use Remote Desktop which is a much better option to operate a remote Windows Server setup. You have important details about the credentials on the Virtual Machine description, be sure to check that out.</p>
<p>Last but not least, bear in mind that on this setup, your cost will include the Windows Server 2008R2 license and the MS-SQL 2008 Standard Edition license as well. But not to worry, our prices are <a href="http://www.citycloud.eu/prices/" target="_blank">really competitive</a> and just as important, paid per hour.</p>
<p>We hope you enjoy this new image and as usual, leave as a comment or two if you have some feedback or preferences for future ones.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.citycloud.eu/city-cloud/new-image-on-city-cloud-windows-server-2008r2-and-ms-sql-on-steroids/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New images on City Cloud. This time with something extra.</title>
		<link>http://www.citycloud.eu/city-cloud/new-images-on-city-cloud-this-time-with-something-extra/</link>
		<comments>http://www.citycloud.eu/city-cloud/new-images-on-city-cloud-this-time-with-something-extra/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 21:01:43 +0000</pubDate>
		<dc:creator>niclam</dc:creator>
				<category><![CDATA[City Cloud]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[VM]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://www.citycloud.eu/?p=3371</guid>
		<description><![CDATA[Since City Cloud got out of beta, a couple of years ago, we have been steadily adding images and upgrading when necessary. We have added quite a few options in terms of operating systems, we currently have Ubuntu, Debian, CentOS, Gentoo, Fedora Core, Red Hat Enterprise, FreeBSD and Windows 2008 server. Images allow you to [...]]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.citycloud.eu%2Fcity-cloud%2Fnew-images-on-city-cloud-this-time-with-something-extra%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=verdana&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px;height:60px;margin-top:5px;"></iframe><p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/lamp.jpg"><img style="background-image: none; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; padding-top: 0px; border: 0px;" title="lamp" src="http://www.citycloud.eu/wp-content/uploads/2012/01/lamp_thumb.jpg" alt="lamp" width="204" height="144" align="left" border="0" /></a>Since City Cloud got out of beta, a couple of years ago, we have been steadily adding images and upgrading when necessary. We have added quite a few options in terms of operating systems, we currently have Ubuntu, Debian, CentOS, Gentoo, Fedora Core, Red Hat Enterprise, FreeBSD and Windows 2008 server.</p>
<p>Images allow you to setup a new VM and have an operating system up and running in a matter of minutes. This saves you a lot of hassle. Now, we are going to go a step further and add something extra.</p>
<p>Read on to find out more.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span id="more-3371"></span></p>
<h2>Again and again</h2>
<p>When installing a web server, a database server or an application, the process usually ends up being the same. Install the operating system, setup configuration options, change the defaults to make the server more secure and finally install the applications. For instance, installing something like Apache on different servers is a fairly similar process, which varies only when setting up a specific site (that might require a different module than the default, or a different configuration on the virtual host file, etc).</p>
<p>With the advent of mainstream Cloud Computing, there are a few companies that offer servers that come pre-packaged with standard software. We do that here with the 1-click installers on our shared web hosting environment but now we are going a step further and offer you something like that, only this time, for City Cloud.</p>
<h2>Our first image: L.AM.P.</h2>
<p>Our idea is to constantly give you new images. On this occasion we are starting with a pretty popular one: L.A.M.P.</p>
<p>For those of you who still are not aware, L.A.M.P. is an acronym for a popular platform comprised of a variant of Linux, Apache web server, MySQL database server and the PHP scripting language.</p>
<p>This setup basically allows you to upload a site (via SCP which is already enabled), create a virtual host, setup the database and off you go.</p>
<h2>Instructions and details</h2>
<p>Let’s get down to the specifics. The software installed, is the following:</p>
<ul>
<li>Ubuntu GNU/Linux 11.10 64-bit Server (Oneiric Ocelot)</li>
<li>Apache 2 (MPM prefork) version: 2.2.20</li>
<li>PHP version 5.3.6-13</li>
<li>MySQL server version 5.1</li>
</ul>
<p>We have also taken the liberty to create a dummy user and a virtual host, along with a small php script that you can use to check that everything is working fine. And of course, you could base your first site off of that or delete it altogether.</p>
<p>The user is called “webuser” and the virtual host is called “dummy-site”. Please refer to the Apache documentation on how to manage virtual hosts.</p>
<p>You can easily test that everything is working by pointing your IP address (check the server details on the City Cloud control panel) to the host “dummy-site”. Which basically means adding the following line to your Windows or Linux hosts file:</p>
<pre lang="php" line="1">
public_ip_address dummy-site
</pre>
<p>&nbsp;</p>
<p>After that, just point your browser to <a href="http://dummy-site">http://dummy-site</a> and if everything went well, you should see the output of the <em>phpinfo()</em> function which displays a comprehensive list of options available to PHP.</p>
<p>For your information, the credentials for the users are on the description of the VM, this includes the administrator user, the regular user and the MySQL root password. Bear in mind that the system has been setup so you have to change them at your first login (the same process implemented for the other images).</p>
<p>From here on, it´s up to you to continue setting up your website.</p>
<h2>Just the beginning</h2>
<p>Our idea is to upload one new image per week, for a least several weeks. We are aiming for those applications that are the most used ones but if you have a suggestion for a pre-packaged one, feel free to leave a comment and we´ll take it into consideration.</p>
<p>Last but not least, we have labeled this image as Beta so feel free to test it and report back to us if you find anything odd. Be advised that you will be still charged for the usage of the VM so use it with care, although thanks to our flexible hourly rate platform, you can easily test this in less than an hour and then delete it or continue using it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.citycloud.eu/city-cloud/new-images-on-city-cloud-this-time-with-something-extra/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Post mortem</title>
		<link>http://www.citycloud.eu/cloud-computing/post-mortem-3/</link>
		<comments>http://www.citycloud.eu/cloud-computing/post-mortem-3/#comments</comments>
		<pubDate>Fri, 27 Jan 2012 13:43:24 +0000</pubDate>
		<dc:creator>johan</dc:creator>
				<category><![CDATA[City Cloud]]></category>
		<category><![CDATA[Cloud Computing]]></category>

		<guid isPermaLink="false">http://www.citycloud.eu/?p=3365</guid>
		<description><![CDATA[Background This week about 1000 servers were affected by an issue in one of our storage nodes. This issue is not related to our issue last year in our Gluster environment. Some of the servers were simply affected by limited performance and some were down for as much as a few hours. The storage node [...]]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.citycloud.eu%2Fcloud-computing%2Fpost-mortem-3%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=verdana&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px;height:60px;margin-top:5px;"></iframe><p><strong>Background</strong></p>
<p>This week about 1000 servers were affected by an issue in one of our storage nodes. This issue is not related to our issue last year in our Gluster environment. Some of the servers were simply affected by limited performance and some were down for as much as a few hours.</p>
<p>The storage node in question is a straight up a redundant NFS/ZFS solution where we in some cases have used a form of deduplication for better efficiency in actual storage usage. We noticed a performance degradation already on Tuesday which then yesterday (Thursday) culminated in an even greater performance degradation where ultimately many VMs did not get enough I/O performance to stay alive. The deduplication system uses a lot of memory and if there is not enough it will start using disk which simply is not speedy enough to supply the need for City Cloud. This occurance slowed the general disk performance and in turn either slowed machines or took them down.</p>
<p><strong>What will happen going forward</strong></p>
<p>We have had extreme stability in these types of storage nodes in the last 5 years. They offer good value in performance as well and allows us to offer good price/quality to all our customers. we will make sure we remove any type of deduplication that we have used as we do not risk this scenario going forward. To do so we will move a lot of servers off of the storage node in question to a new node which is similar in setup but newer and configured with no deduplication.</p>
<p>We expect this work to happen during February and when a VM is moved it could mean 10-15 minutes of down time. Any such maintenance will of course be scheduled during night time and will be kept to a minimum.</p>
<p>We apologize for any inconvenience this may have caused you. We will work very hard for it not to happen again.</p>
<p>Thank you for being a customers of our City Cloud service.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.citycloud.eu/cloud-computing/post-mortem-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Ubuntu GNU/Linux from scratch on City Cloud</title>
		<link>http://www.citycloud.eu/city-cloud/installing-ubuntu-gnulinux-from-scratch-on-city-cloud/</link>
		<comments>http://www.citycloud.eu/city-cloud/installing-ubuntu-gnulinux-from-scratch-on-city-cloud/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 00:22:02 +0000</pubDate>
		<dc:creator>niclam</dc:creator>
				<category><![CDATA[City Cloud]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://www.citycloud.eu/?p=3350</guid>
		<description><![CDATA[Recently we just released a guide to install Debian GNU/Linux from scratch. You can check that guide out, right here. Since Ubuntu is based off Debian, this guide might have some similarities but it’s useful for those of you who have never used Debian before and want to try Ubuntu directly. Without further ado, here [...]]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.citycloud.eu%2Fcity-cloud%2Finstalling-ubuntu-gnulinux-from-scratch-on-city-cloud%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=verdana&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px;height:60px;margin-top:5px;"></iframe><p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/blackeubuntulogo.png"><img style="background-image: none; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; padding-top: 0px; border: 0px;" title="blackeubuntulogo" src="http://www.citycloud.eu/wp-content/uploads/2012/01/blackeubuntulogo_thumb.png" alt="blackeubuntulogo" width="244" height="67" align="left" border="0" /></a></p>
<p>Recently we just released a guide to install Debian GNU/Linux from scratch. You can check that guide out, <a href="http://www.citycloud.eu/city-cloud/installing-debian-gnulinux-from-scratch-on-city-cloud/" target="_blank">right here</a>.</p>
<p>Since Ubuntu is based off Debian, this guide might have some similarities but it’s useful for those of you who have never used Debian before and want to try Ubuntu directly.</p>
<p>Without further ado, here you have a step-by-step guide on how to install Ubuntu 11.10 Server 64-bit, otherwise known as “Oneiric Ocelot”.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span id="more-3350"></span></p>
<h2>Getting Started</h2>
<p>First thing you need to do is login into the <a href="http://admin.citycloud.eu" target="_blank">control panel</a>. We are assuming you already have an account with us, if you don’t, <a href="http://www.citycloud.eu/getting-started-create-account/" target="_blank">it&#8217;s very easy to do</a>.</p>
<p>Once inside, pick the <strong>VM</strong> tab and select <strong>New VM</strong>. The following window will appear (click on any image in this tutorial to see an enlarged version). Skip to the next section if you already have a working knowledge of how to setup new servers on City Cloud.</p>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-new-vm1.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border-width: 0px;" title="debian from scratch - new vm" src="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-new-vm_thumb1.jpg" alt="debian from scratch - new vm" width="116" height="244" border="0" /></a></p>
<p>As you can see, this popup is similar to the one you get when choosing one template from the App Center. The main differences are that you have to select an ISO image, which basically points to the installer you want to install (Ubuntu, Debian, Fedora Core, Gentoo, Windows Server 2008, FreeBSD, etc), and that you can select a disk other than the default (usually 20GB or 50GB). You also may select which advanced options you want to run on this virtual machine. Do not worry about the Hardware Template since that option is easily modified later on.  So, go ahead and name your server and complete the options and click on <strong>Create</strong>.</p>
<p>What follows is the usual provisioning process. You have to wait until the platform has located your resources, which varies from a couple to several minutes depending mostly on the size of your disk. Once the server is ready, it appears on the <strong>VM </strong>tab so just click on the details icon (last one on the right of the corresponding server row). This is what you get.</p>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-vm-details-general.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border-width: 0px;" title="debian from scratch - vm details general" src="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-vm-details-general_thumb.jpg" alt="debian from scratch - vm details general" width="244" height="179" border="0" /></a></p>
<p>As you can see, there is no IP address detected since we don´t have an operating system yet. The only option available to do this is through VNC. Fortunately, our platform has an integrated VNC client, although you can use an external one of your choosing (i.e.: TightVNC viewer). To get in you need the corresponding credentials, which are located on the Remote Console tab, as follows.</p>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-remote-console-details.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border-width: 0px;" title="debian from scratch - remote console details" src="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-remote-console-details_thumb.jpg" alt="debian from scratch - remote console details" width="244" height="122" border="0" /></a></p>
<p>Click on the icon on the bottom right (just about the Save button). This is a quick shortcut to the integrated VNC applet, which only asks you for the password. Use the one provided and we are off to a good start. Please note that you need the latest Java version installed on your computer, for this to work. In case you are using your own VNC client, you will need to specify the IP address, the port and the password.</p>
<h2>Setting up</h2>
<p>Here we are, the server just started with the Ubuntu GNU/Linux first screen.</p>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/ubuntu-from-scratch-step-1.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="ubuntu from scratch - step 1" src="http://www.citycloud.eu/wp-content/uploads/2012/01/ubuntu-from-scratch-step-1_thumb.jpg" alt="ubuntu from scratch - step 1" width="244" height="199" border="0" /></a></p>
<p>Immediately you can select your language and region. For your information, our datacenter is located on Sweden but you can select the one  you prefer. Also, don´t worry about this too much since it can always be changed later.</p>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/ubuntu-from-scratch-step-3.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="ubuntu from scratch - step 3" src="http://www.citycloud.eu/wp-content/uploads/2012/01/ubuntu-from-scratch-step-3_thumb.jpg" alt="ubuntu from scratch - step 3" width="244" height="199" border="0" /></a></p>
<p>Next, you will be prompted to setup the domain name. If unsure, just delete what´s there and leave it blank. Later on, when you have setup a proper domain name using our DNS servers (or yours), you will be able to configure it properly. For now, it doesn&#8217;t´t really matter since all Virtual Machines will automatically get a public IP address that can be used to access the server.</p>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/ubuntu-from-scratch-step-4.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="ubuntu from scratch - step 4" src="http://www.citycloud.eu/wp-content/uploads/2012/01/ubuntu-from-scratch-step-4_thumb.jpg" alt="ubuntu from scratch - step 4" width="244" height="199" border="0" /></a></p>
<p>Here we select the time zone which is also detected automatically for you.<a href="http://www.citycloud.eu/wp-content/uploads/2012/01/ubuntu-from-scratch-step-5.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="ubuntu from scratch - step 5" src="http://www.citycloud.eu/wp-content/uploads/2012/01/ubuntu-from-scratch-step-5_thumb.jpg" alt="ubuntu from scratch - step 5" width="244" height="199" border="0" /></a></p>
<p>Here comes the disk setup.</p>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/ubuntu-from-scratch-step-6.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="ubuntu from scratch - step 6" src="http://www.citycloud.eu/wp-content/uploads/2012/01/ubuntu-from-scratch-step-6_thumb.jpg" alt="ubuntu from scratch - step 6" width="244" height="199" border="0" /></a></p>
<p>Now, this is one of those things that´s great about Cloud Computing, since the platform is already setup to handle the storage layer, we don´t have to worry about drivers or locating the disks. We just selected the size and how many disks at the beginning, and that´s about it. Here you have four options, three guided one and a Manual one for advanced users. We usually go for the first one.</p>
<p>After that, you are presented with a disk selection. If you have one, the answer is obvious (also, did we mention that you can add many disks afterwards? Well, you can!). Just pick the disk you would like to install the operating system. After that you get a confirmation to write the changes to disk, say “Yes”.</p>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/ubuntu-from-scratch-step-9.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="ubuntu from scratch - step 9" src="http://www.citycloud.eu/wp-content/uploads/2012/01/ubuntu-from-scratch-step-9_thumb.jpg" alt="ubuntu from scratch - step 9" width="244" height="199" border="0" /></a></p>
<p>You are now prompted to setup a regular user. Just fill in the username and pick a password, make sure it´s a strong one and has a combination of letters, numbers, uppercase letters and special characters.</p>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/ubuntu-from-scratch-step-10.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="ubuntu from scratch - step 10" src="http://www.citycloud.eu/wp-content/uploads/2012/01/ubuntu-from-scratch-step-10_thumb.jpg" alt="ubuntu from scratch - step 10" width="244" height="199" border="0" /></a></p>
<p>A nice option from the Ubuntu installation is that you can setup home directory encryption from the get go. This is useful to keep your files unreadable by other users, even if your hardware has been stolen. On the other hand, it might come with a small performance penalty. If unsure, answer “No”.</p>
<h2>Installing the base system</h2>
<p>Great, we already have made all the basic adjustments. Now we get to the part where we actually install the system.</p>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/ubuntu-from-scratch-step-11.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="ubuntu from scratch - step 11" src="http://www.citycloud.eu/wp-content/uploads/2012/01/ubuntu-from-scratch-step-11_thumb.jpg" alt="ubuntu from scratch - step 11" width="244" height="199" border="0" /></a></p>
<p>Automatic updates configuration. The choice is up to you, you can manually install updates, automatically install or use Landscape. In a production environment, you’ll probably want to use the manual option since updating a live system it’s better done under supervision.</p>
<p align="center"><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/ubuntu-from-scratch-step-12.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="ubuntu from scratch - step 12" src="http://www.citycloud.eu/wp-content/uploads/2012/01/ubuntu-from-scratch-step-12_thumb.jpg" alt="ubuntu from scratch - step 12" width="244" height="199" border="0" /></a></p>
<p>In this subsequent screen, you get to pick the default packages that will be installed. Make sure you have OpenSSH server checked so we can continue using SSH immediately after the installation finishes, which is much faster than using VNC (and inherently more secure). Tip: You can use the spacebar on your keyboard to select/deselect packages. Since the network is setup automatically with DHCP, which in turns gets you a public IP address, your packages will be downloaded and installed right away. This process should not take more than a few minutes, remember, we are on a fast network over here!.</p>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/ubuntu-from-scratch-step-13.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="ubuntu from scratch - step 13" src="http://www.citycloud.eu/wp-content/uploads/2012/01/ubuntu-from-scratch-step-13_thumb.jpg" alt="ubuntu from scratch - step 13" width="244" height="199" border="0" /></a></p>
<p>Next, we need to tell the installer where the boot loader (a small program that loads up at boot time and select which operating system to boot) is going to be located. You could select a partition but it´s generally safe to install it on the master boot record so just say Yes to the question (unless you specifically need to put it somewhere else).</p>
<p>At this point, if everything went as expected, we should arrive at this final screen that tells you the installation is complete and that you should make sure to remove the CD-ROM. Don´t worry about that, the system will automatically boot from the hard disk. Just select continue and we are done.</p>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/ubuntu-from-scratch-step-14.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="ubuntu from scratch - step 14" src="http://www.citycloud.eu/wp-content/uploads/2012/01/ubuntu-from-scratch-step-14_thumb.jpg" alt="ubuntu from scratch - step 14" width="244" height="199" border="0" /></a></p>
<h2>Post installation and conclusion</h2>
<p>That basically sums it up, the boot up process should take no more than a few seconds and will lead you to the following screen. Bear in mind that we didn’t setup the root password since the regular user is already on the initial sudoers list, which means that you get administrator access by issuing commands with ‘sudo command’.<a href="http://www.citycloud.eu/wp-content/uploads/2012/01/ubuntu-from-scratch-finished-installation.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="ubuntu from scratch - finished installation" src="http://www.citycloud.eu/wp-content/uploads/2012/01/ubuntu-from-scratch-finished-installation_thumb.jpg" alt="ubuntu from scratch - finished installation" width="244" height="198" border="0" /></a></p>
<p>We are now ready to start using our new server with Ubuntu GNU/Linux installed. On this case we used Ubuntu 11.10 64-bit but the process is pretty similar to other versions.</p>
<p>From now on, you can check the VM tab, select your server details and write down the public IP address we´ve assigned for you. You can also start using a SSH client (i.e.: Putty) and the credentials you just typed during the installation process.</p>
<p>Remember that VNC is always available (unless manually disabled by you) if you need to check the server in the future and you cannot, for some reason, enter via SSH.</p>
<p>What you do from this point onwards is start setting up any packages or configuration your project, website or application requires. We recommend you to fiddle with the system as much as possible, given the flexibility our Cloud Computing platform provides.</p>
<p>Last but not least, this process is usually done on certain occasions but you don’t need to do it every time, you can always clone another VM and start from there.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.citycloud.eu/city-cloud/installing-ubuntu-gnulinux-from-scratch-on-city-cloud/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Debian GNU/Linux from Scratch on City Cloud</title>
		<link>http://www.citycloud.eu/city-cloud/installing-debian-gnulinux-from-scratch-on-city-cloud/</link>
		<comments>http://www.citycloud.eu/city-cloud/installing-debian-gnulinux-from-scratch-on-city-cloud/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 03:51:42 +0000</pubDate>
		<dc:creator>niclam</dc:creator>
				<category><![CDATA[City Cloud]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[installation]]></category>

		<guid isPermaLink="false">http://www.citycloud.eu/?p=3231</guid>
		<description><![CDATA[Setting up a new virtual machine on City Cloud is fairly easy. Once you have your account, you just go to the App Center on our control panel and select the operating system you’d like to install. We have many flavors of Windows, Linux and even FreeBSD. These server templates give you the base install [...]]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.citycloud.eu%2Fcity-cloud%2Finstalling-debian-gnulinux-from-scratch-on-city-cloud%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=verdana&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px;height:60px;margin-top:5px;"></iframe><p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/openlogo-nd-100.jpg"><img style="background-image: none; margin: 0px 5px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; padding-top: 0px; border: 0px;" title="openlogo-nd-100" src="http://www.citycloud.eu/wp-content/uploads/2012/01/openlogo-nd-100_thumb.jpg" alt="openlogo-nd-100" width="105" height="128" align="left" border="0" /></a></p>
<p>Setting up a new virtual machine on City Cloud is fairly easy. Once you have your account, you just go to the App Center on our control panel and select the operating system you’d like to install. We have many flavors of Windows, Linux and even FreeBSD.</p>
<p>These server templates give you the base install with everything ready to go in a matter of minutes. This is very snappy and convenient, but sometimes you want to install the operating system from scratch. Usually because you want more flexibility, you need to setup an advanced option or you would like to use an ISO image that’s not yet available on the App Center.</p>
<p>On this tutorial, we give you a step by step guide of how to do just that.</p>
<p>&nbsp;</p>
<p><span id="more-3231"></span></p>
<h2>Getting Started</h2>
<p>First thing you need to do is login into the <a href="http://admin.citycloud.eu" target="_blank">control panel</a>. We are assuming you already have an account with us, if you don’t, <a href="http://www.citycloud.eu/getting-started-create-account/" target="_blank">it&#8217;s very easy to do</a>.</p>
<p>Once inside, pick the <strong>VM</strong> tab and select <strong>New VM</strong>. The following window will appear (click on any image in this tutorial to see an enlarged version). Skip to the next section if you already have a working knowledge of how to setup new servers on City Cloud.</p>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-new-vm1.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="debian from scratch - new vm" src="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-new-vm_thumb1.jpg" alt="debian from scratch - new vm" width="116" height="244" border="0" /></a></p>
<p>As you can see, this popup is similar to the one you get when choosing one template from the App Center. The main differences are that you have to select an ISO image, which basically points to the installer you want to install (Ubuntu, Debian, Fedora Core, Gentoo, Windows Server 2008, FreeBSD, etc), and that you can select a disk other than the default (usually 20GB or 50GB). You also may select which advanced options you want to run on this virtual machine. Do not worry about the Hardware Template since that option is easily modified later on.  So, go ahead and name your server and complete the options and click on <strong>Create</strong>.</p>
<p>What follows is the usual provisioning process. You have to wait until the platform has located your resources, which varies from a couple to several minutes depending mostly on the size of your disk. Once the server is ready, it appears on the <strong>VM </strong>tab so just click on the details icon (last one on the right of the corresponding server row). This is what you get.</p>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-vm-details-general.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="debian from scratch - vm details general" src="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-vm-details-general_thumb.jpg" alt="debian from scratch - vm details general" width="244" height="179" border="0" /></a></p>
<p>As you can see, there is no IP address detected since we don´t have an operating system yet. The only option available to do this is through VNC. Fortunately, our platform has an integrated VNC client, although you can use an external one of your choosing (i.e.: TightVNC viewer). To get in you need the corresponding credentials, which are located on the Remote Console tab, as follows.</p>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-remote-console-details.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="debian from scratch - remote console details" src="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-remote-console-details_thumb.jpg" alt="debian from scratch - remote console details" width="244" height="122" border="0" /></a></p>
<p>Click on the icon on the bottom right (just about the Save button). This is a quick shortcut to the integrated VNC applet, which only asks you for the password. Use the one provided and we are off to a good start. Please note that you need the latest Java version installed on your computer, for this to work. In case you are using your own VNC client, you will need to specify the IP address, the port and the password.</p>
<h2>Setting up</h2>
<p>Here we are, the server just started with the Debian GNU/Linux installer welcome.</p>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-step-1.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="debian from scratch - step 1" src="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-step-1_thumb.jpg" alt="debian from scratch - step 1" width="244" height="202" border="0" /></a></p>
<p>We recommend the basic install, since it´s the fastest one. On the next screens we need to pick our country or region. This is usually used for deciding the time zone and the locale. For your information, our datacenter is located on Sweden but you can select anyone you prefer, since the language and keyboard are selected separately. Also, don´t worry about this too much since it can always be changed later.</p>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-step-2.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="debian from scratch - step 2" src="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-step-2_thumb.jpg" alt="debian from scratch - step 2" width="244" height="199" border="0" /></a></p>
<p>After the region and language selection, we get to setup the hostname. Choose any single word of your choosing.</p>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-step-3.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="debian from scratch - step 3" src="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-step-3_thumb.jpg" alt="debian from scratch - step 3" width="244" height="199" border="0" /></a></p>
<p>Next, you will be prompted to setup the domain name. If unsure, just delete what´s there and leave it blank. Later on, when you have setup a proper domain name using our DNS servers (or yours), you will be able to configure it properly. For now, it doesn&#8217;t´t really matter since all Virtual Machines will automatically get a public IP address that can be used to access the server.</p>
<p>Next screen is the root password selection.</p>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-step-4.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="debian from scratch - step 4" src="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-step-4_thumb.jpg" alt="debian from scratch - step 4" width="244" height="199" border="0" /></a></p>
<p>Make sure to type a strong password since this is the one account that can really mess up your system if used by the wrong hands. A strong password usually contains a combination of letters and numbers, uppercase letters and special characters.</p>
<p>After that, you need to setup a regular user. Just fill in the username and pick a password, make sure it´s different from the root one. Here comes the disk setup.</p>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-step-5.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="debian from scratch - step 5" src="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-step-5_thumb.jpg" alt="debian from scratch - step 5" width="244" height="199" border="0" /></a></p>
<p>Now, this is one of those things that´s great about Cloud Computing, since the platform is already setup to handle the storage layer, we don´t have to worry about drivers or locating the disks. We just selected the size and how many at the beginning, and that´s about it. Here you have four options, three guided one and a Manual one for advanced users. We usually go for the first one.</p>
<p>After that, you are presented with a disk selection. If you have one, the answer is obvious (also, did we mention that you can add many disks afterwards? Well, you can!). Just pick the disk you would like to install the operating system. The following option has to do on how to partition the disk. You can select All files in one partition but we usually recommend using the “Separate /home partition” option since it´s a lot more easier to move the user homes partition to another disk if they grow in size.</p>
<h2>Installing the base system</h2>
<p>Great, we already have made all the basic adjustments. Now we get to the part where we actually install the system.</p>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-step-6.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="debian from scratch - step 6" src="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-step-6_thumb.jpg" alt="debian from scratch - step 6" width="244" height="199" border="0" /></a></p>
<p>Just say no to CD/DVD selection and say Yes to the “Use a network mirror?” question, since we are going to install through the network, this option is much nicer since it gives us the latest packages.</p>
<p align="center"><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-step-7.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="debian from scratch - step 7" src="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-step-7_thumb.jpg" alt="debian from scratch - step 7" width="244" height="199" border="0" /></a></p>
<p>As we mentioned, the datacenter and the servers are located on Sweden, so it only makes sense to choose a Swedish mirror. This will guarantee, alongside our redundant ISPs connected to the datacenter, great speed when downloading the packages.</p>
<p>In the subsequent screen, you get to pick the default packages that will be installed. Unless you are absolutely sure you need a Graphical environment, just deselect it. Also, make sure you have SSH server checked so we can continue using SSH immediately after the installation finishes, which is much faster than using VNC (and inherently more secure). Tip: You can use the spacebar on your keyboard to select/deselect packages.</p>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-step-8.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="debian from scratch - step 8" src="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-step-8_thumb.jpg" alt="debian from scratch - step 8" width="244" height="199" border="0" /></a></p>
<p>Since the network is setup automatically with DHCP, which in turns gets you a public IP address, your packages will be downloaded and installed right away. This process should not take more than a few minutes, remember, we are on a fast network over here!.</p>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-step-9.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="debian from scratch - step 9" src="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-step-9_thumb.jpg" alt="debian from scratch - step 9" width="244" height="199" border="0" /></a></p>
<p>Next, we need to tell the installer where the boot loader (a small program that loads up at boot time and select which operating system to boot) is going to be located. You could select a partition but it´s generally safe to install it on the master boot record so just say Yes to the question (unless you specifically need to put it somewhere else).</p>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-step-10.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="debian from scratch - step 10" src="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-step-10_thumb.jpg" alt="debian from scratch - step 10" width="244" height="199" border="0" /></a></p>
<p>At this point, if everything went as expected, we should arrive at this final screen that tells you the installation is complete and that you should make sure to remove the CD-ROM. Don´t worry about that, the system will automatically boot from the hard disk. Just select continue and we are done.</p>
<h2>Post installation and conclusion</h2>
<p>That basically sums it up, the boot up process should take no more than a few seconds and will lead you to the following screen.</p>
<p><a href="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-initial-screen.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: block; float: none; margin-left: auto; margin-right: auto; padding-top: 0px; border: 0px;" title="debian from scratch - initial screen" src="http://www.citycloud.eu/wp-content/uploads/2012/01/debian-from-scratch-initial-screen_thumb.jpg" alt="debian from scratch - initial screen" width="244" height="155" border="0" /></a></p>
<p>We are now ready to start using our new server with Debian GNU/Linux installed. On this case we used Debian 6.0 64-bit but the process is pretty similar to other versions.</p>
<p>From now on, you can check the VM tab, select your server details and write down the public IP address we´ve assigned for you. You can also start using a SSH client (i.e.: Putty) and the credentials you just typed during the installation process.</p>
<p>Remember that VNC is always available (unless manually disabled by you) if you need to check the server in the future and you cannot, for some reason, enter via SSH.</p>
<p>What you do from this point onwards is start setting up any packages or configuration your project, website or application requires. We recommend you to fiddle with the system as much as possible, given the flexibility our Cloud Computing platform provides.</p>
<p>Last but not least, this process is usually done on certain ocassions but you don’t need to do it every time, you can always clone another VM and start from there.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.citycloud.eu/city-cloud/installing-debian-gnulinux-from-scratch-on-city-cloud/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Windows performing better in City Cloud</title>
		<link>http://www.citycloud.eu/city-cloud/windows-performing-better-in-city-cloud/</link>
		<comments>http://www.citycloud.eu/city-cloud/windows-performing-better-in-city-cloud/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 13:51:39 +0000</pubDate>
		<dc:creator>ozgur</dc:creator>
				<category><![CDATA[City Cloud]]></category>
		<category><![CDATA[App Center]]></category>
		<category><![CDATA[BLK]]></category>
		<category><![CDATA[IO]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[Virt]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.citycloud.eu/?p=3167</guid>
		<description><![CDATA[So far, our Linux based operating systems in City Cloud have had a slight advantage when it comes to performance. These operating systems have access to a special driver which makes them more integrated in the virtualisation platform which in turn gives them an edge performance vise. We recently insalled the same drivers for Windows [...]]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.citycloud.eu%2Fcity-cloud%2Fwindows-performing-better-in-city-cloud%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=verdana&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px;height:60px;margin-top:5px;"></iframe><p><a href="http://www.citycloud.eu/wp-content/uploads/2011/12/windows.png"><img style="background-image: none; margin: 0px 10px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; padding-top: 0px; border-width: 0px;" title="windows" src="http://www.citycloud.eu/wp-content/uploads/2011/12/windows_thumb.png" alt="windows" width="98" height="98" align="left" border="0" /></a>So far, our Linux based operating systems in City Cloud have had a slight advantage when it comes to performance. These operating systems have access to a special driver which makes them more integrated in the virtualisation platform which in turn gives them an edge performance vise. We recently insalled the same drivers for Windows so that our customers can get great performance regardless of which OS they choose.</p>
<p>&nbsp;</p>
<p><span id="more-3167"></span></p>
<h2>What is VirtIO/BLK?</h2>
<p>VirtIO and VirtBLK is in short, the closest you get to doing full virtualization. Usually an operating system is running ON the virtualisation platform, this is the case with all our Windows based operating systems today. The OS doesn´t know wether it´s running on physical hardware or on a virtualised platform and the communication between the actual computing power (CPU, RAM) and the software is emulated in the virtualisation platform to resemble a physical environment.</p>
<p>&nbsp;</p>
<p><span class="Apple-style-span" style="font-size: 20px; font-weight: bold;">Why use VirtIO/BLK?</span></p>
<p>With VirtIO/VirtBLK you could say that the OS is aware of the fact that it´s running on a virtual environment and co-operates with the hypervisor. The hypervisor is the same as a management system (KVM) that keeps track and allocates resources for all the virtual instances. This way. the OS becomes more integrated with the platform and you no longer need to emulate the communication between the platform and the OS. Naturally, this increases communication speed and in turn performance.</p>
<p>&nbsp;</p>
<h2>Our tests</h2>
<h2><span class="Apple-style-span" style="font-size: 13px; font-weight: normal;">We have done some performance testing and compared two Windows servers, one with VirtIO/BLK and one without. The server using VirtIO/BLK gave us a 50% increase in speed within Europe with approximately the same ping. The same goes for read/write speed, 50% faster.</span></h2>
<h2><span style="font-size: x-small;"><span class="Apple-style-span" style="font-weight: normal;"><br />
</span></span></h2>
<h2>Available for Windows</h2>
<p>VirtIO/BLK is now awailable for Windows. We have uploaded a new Windows 2008 Datacenter image with VirtIO/BLK in our app center. Pleasae feel free to try it out. We would like to inform all our users that this image is still in Beta. We might need to do some adjustments and maintenance to make sure that everything works as intended.</p>
<p>Try it out for your self, the increase in speed is apparent and we are so glad to launch this advantage for Windows users. We will post more articles about VirtIO/BLK and Windows in the near future.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.citycloud.eu/city-cloud/windows-performing-better-in-city-cloud/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Euro Cloud award ceremony in Paris</title>
		<link>http://www.citycloud.eu/contests/euro-cloud-award-ceremony-in-paris/</link>
		<comments>http://www.citycloud.eu/contests/euro-cloud-award-ceremony-in-paris/#comments</comments>
		<pubDate>Wed, 07 Dec 2011 08:20:13 +0000</pubDate>
		<dc:creator>michal</dc:creator>
				<category><![CDATA[Contests]]></category>
		<category><![CDATA[Awards]]></category>
		<category><![CDATA[EuroCloud]]></category>
		<category><![CDATA[paris]]></category>

		<guid isPermaLink="false">http://www.citycloud.eu/?p=3133</guid>
		<description><![CDATA[Earlier this year, City Cloud was awarded best cloud service at EuroCloud Sweden awards. Now it´s time for the European awards. On the 12th of December we will go to Paris and meet up with other members of EuroCloud. We will mingle, dine and learn more about the other companies and the people behind them. [...]]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.citycloud.eu%2Fcontests%2Feuro-cloud-award-ceremony-in-paris%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=verdana&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px;height:60px;margin-top:5px;"></iframe><p><a href="http://www.citynetworkhosting.com/wp-content/uploads/2011/12/EuroCloud110524_71.jpg"><img style="background-image: none; margin: 0px 10px 0px 0px; padding-left: 0px; padding-right: 0px; display: inline; float: left; padding-top: 0px; border: 0px;" title="EuroCloud110524_71" src="http://www.citynetworkhosting.com/wp-content/uploads/2011/12/EuroCloud110524_71_thumb.jpg" alt="EuroCloud110524_71" width="178" height="118" align="left" border="0" /></a>Earlier this year, City Cloud was awarded best cloud service at <a title="EuroCloud Sweden" href="http://www.eurocloud.se" target="_blank">EuroCloud Sweden</a> awards. Now it´s time for the European awards.</p>
<p>On the 12th of December we will go to Paris and meet up with other members of EuroCloud. We will mingle, dine and learn more about the other companies and the people behind them. Last but not least, the European winners will be presented.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h2>Background</h2>
<p>During the first half of this year, every Euro Cloud country had an award program. The main purpose of these programs were to promote innovation, promote the best services and show how and why cloud services are good and effective in so many ways. City Cloud was awarded <em>Best Swedis Cloud Service </em>and our partner <a href="http://www.severalnines.com" target="_blank">Severalnines</a> was awarded <em>Best Swedish Startup.</em></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<h2>The nominees</h2>
<p>The local award programs were conducted in 12 EuroCloud countries where winners in the the 4 categories; Best cloud service, best startup, best business case private sector and best business case public sector were awarded. A number of the winners, including ourselves, also chose to compete in the European award program. Here are the nominees.</p>
<p>&nbsp;</p>
<table style="width: 485px;" border="0" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td valign="top" width="103">Sweden</td>
<td valign="top" width="380">eBuilder, <strong>City Network Hosting (City Cloud)</strong>, Severalnines</td>
</tr>
<tr>
<td valign="top" width="103">France</td>
<td valign="top" width="380">WeAreCloud, RunMyProcess, PageOnDemand, OODrive</td>
</tr>
<tr>
<td valign="top" width="103">UK</td>
<td valign="top" width="380">FinancialForce, ReallySimpleSystems</td>
</tr>
<tr>
<td valign="top" width="103">Germany</td>
<td valign="top" width="380">VCloud, Cloudsafe, Eyeonhealth, PlexOnline</td>
</tr>
<tr>
<td valign="top" width="103">Netherlands</td>
<td valign="top" width="380">Previder, Reflex-Online</td>
</tr>
<tr>
<td valign="top" width="103">Portugal</td>
<td valign="top" width="380">MuchBeta, Outsystems, Link, UTAD</td>
</tr>
<tr>
<td valign="top" width="103">Slovenia</td>
<td valign="top" width="380">Diventic d.o.o., XLab d.o.o., EuroPlus d.o.o.</td>
</tr>
<tr>
<td valign="top" width="103">Luxembourg</td>
<td valign="top" width="380">Wealth@work, LuxCloud, Telindus, ebrc</td>
</tr>
<tr>
<td valign="top" width="103">Austria</td>
<td valign="top" width="380">Ikarus, EPU Net</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<h2>The award ceremony in Paris</h2>
<p>The ceremony takes place on Monday 12 of December 12 at 19:00 in Paris. We will be onboard a boat on the river Seine during the whole evening.</p>
<p><a href="http://www.citynetworkhosting.com/wp-content/uploads/2011/12/parisensceneboat.jpg"><img style="background-image: none; padding-left: 0px; padding-right: 0px; display: inline; padding-top: 0px; border: 0px;" title="parisensceneboat" src="http://www.citynetworkhosting.com/wp-content/uploads/2011/12/parisensceneboat_thumb.jpg" alt="parisensceneboat" width="240" height="110" border="0" /></a></p>
<p>&nbsp;</p>
<p><strong>Keep your fingers crossed and wish us good luck!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.citycloud.eu/contests/euro-cloud-award-ceremony-in-paris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A dedicated virtual server and WordPress ready to go in under 60 minutes? As you wish.</title>
		<link>http://www.citycloud.eu/wordpress-2/a-dedicated-virtual-server-and-wordpress-ready-to-go-in-under-60-minutes-as-you-wish/</link>
		<comments>http://www.citycloud.eu/wordpress-2/a-dedicated-virtual-server-and-wordpress-ready-to-go-in-under-60-minutes-as-you-wish/#comments</comments>
		<pubDate>Fri, 25 Nov 2011 23:04:03 +0000</pubDate>
		<dc:creator>niclam</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[Blog]]></category>
		<category><![CDATA[City Cloud]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[dedicated server]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.citycloud.eu/?p=3064</guid>
		<description><![CDATA[A lot of people have asked us how easy or fast it’s to have a basic blog, like WordPress, running on City Network. The answer was simple enough, go ahead and register on our Order page and then do a 1-click install on our control panel. But then, some people asked us how fast would [...]]]></description>
			<content:encoded><![CDATA[<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.citycloud.eu%2Fwordpress-2%2Fa-dedicated-virtual-server-and-wordpress-ready-to-go-in-under-60-minutes-as-you-wish%2F&amp;layout=standard&amp;show_faces=true&amp;width=450&amp;action=like&amp;font=verdana&amp;colorscheme=light" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:450px;height:60px;margin-top:5px;"></iframe><p><a href="http://www.citycloud.eu/wp-content/uploads/2011/11/wordpress-logo.png"><img class="alignleft size-thumbnail wp-image-3105" title="WordPress" src="http://www.citycloud.eu/wp-content/uploads/2011/11/wordpress-logo-150x150.png" alt="" width="150" height="150" /></a>A lot of people have asked us how easy or fast it’s to have a basic blog, like WordPress, running on City Network. The answer was simple enough, go ahead and register on our <a title="City Network" href="http://www.citynetworkhosting.com" target="_blank">Order page</a> and then do a 1-click install on our control panel.</p>
<p>But then, some people asked us how fast would that be from scratch, using a City Cloud dedicated virtual server. My answer was quick and painless, “well, minutes of course!” but then I started thinking, how many minutes exactly?</p>
<p>So we took a chronometer and got our hands dirty. Here are the results.</p>
<p><span id="more-3064"></span></p>
<h2>Requisites</h2>
<p>If you are going through the dedicated servers route, even virtual ones, you probably know how to do this already. If not, we recommend using the shared <a title="City Network" href="http://www.citynetworkhosting.com/shared-hosting/" target="_blank">hosting plan</a> which is more direct and pretty much solves a lot of the hassle for you.</p>
<p>But if you need absolute control, these are the minimum requisites:</p>
<ul>
<li>Basic understanding of Linux: installation and operation (generally through a remote connection). Understanding of apt package management system.</li>
<li>A basic understanding of WordPress and blogs in general.</li>
<li>Basic knowledge of Cloud Computing and City Cloud, although our admin panel makes it really easy to operate dedicated servers, and even so, we also have <a title="City Cloud" href="http://www.citycloud.eu/getting-started/" target="_blank">guides</a>!</li>
</ul>
<p>Equipped with that knowledge, we are ready to begin.</p>
<h2>Minute 1-10</h2>
<p>If you already have an account with us, you can skip this step (you just saved 10 minutes of your time). If not, well, it’s really easy.</p>
<p>Just go to <a title="City Cloud" href="http://www.citycloud.eu" target="_blank">City Cloud home page</a> and click on Create Account.</p>
<p>Afterwards, check your email and follow the link there. Next step is simply verifying your identity, which involves calling us or using your credit card. Don’t worry, we don’t apply any charges to it.</p>
<h2>Minute 11-20</h2>
<p>By now you should have the corresponding credentials to enter the City Cloud admin panel.</p>
<p>Go ahead and create a basic server. Let’s just use a <em>Small template</em> with defaults parameters since we don’t need any more than that for the basic installation.</p>
<p>This could take a couple of minutes, while the system provisions your server. Once it’s ready, it will appear on the “Running VMs” section.</p>
<h2>Minute 21-60</h2>
<p>Click on details of the running VM (the &#8220;i&#8221; icon) and copy the IP address and default credentials located on the <em>Notes </em>box. Using your favorite SSH client (we use putty) just enter the server and, only for the first time, the operating system will ask you for a password. Pick a secure one, with upper case letters and numbers mixed in.</p>
<p>We have decided to use Debian GNU/Linux (at the time of writing, &#8220;Squeeze&#8221; version), so our instructions are focused on that. The process is slightly different if you choose another distribution, but conceptually the steps are the same.</p>
<p>Once inside we are ready to install the web server, in this case we chose Apache 2 but you can use the one you prefer (although additional configuration might be required for WordPress).</p>
<p>Before we continue, let&#8217;s switch to root and make sure you have a debian mirror setup on your <em>sources.list</em> file. On our case, we use a Swedish mirror since the datacenter is located in Sweden and it helps downloading the packages real fast.</p>

<div class="wp-terminal">user@computer:$ # Switch to root<br/>su -<br/># Add Swedish debian mirror<br/>echo "deb http://ftp.debian.org/debian/ squeeze main contrib" &gt;&gt; /etc/apt/sources.list<br/></div>

<p>Then, we make sure we have the latest apt package list. We also install some handy utilities.</p>

<div class="wp-terminal">user@computer:$ apt-get update<br/>apt-get install vim<br/></div>

<p>Great, now let&#8217;s install the web server. We are going to use Apache 2 (prefork module) and PHP 5.</p>

<div class="wp-terminal">user@computer:$ apt-get install apache2-mpm-prefork php5<br/>...<br/></div>

<p>We have now the web server installed with the default configuration. This also installs PHP as an Apache module. Now, let&#8217;s go for the database server: we are using MySQL on this occasion since it&#8217;s a widely proven one and because WordPress uses it, of course.</p>

<div class="wp-terminal">user@computer:$ apt-get install mysql-server<br/>...<br/></div>

<p>This should install the latest stable version of MySQL (at the moment, 5.1). Once the installation finishes, the system will ask us for a MySQL root user password. Enter a secure one, repeat and proceed. With the database server installed, let&#8217;s create a database for our blog and assign a user to it, with the following:</p>

<div class="wp-terminal">user@computer:$ mysql -u root -p<br/>mysql&gt; CREATE DATABASE wordpress;<br/>mysql&gt; GRANT ALL PRIVILEGES ON wordpress.* TO wordpress_user IDENTIFIED BY "put_your_password_here";<br/>mysql&gt; FLUSH PRIVILEGES;<br/>...<br/></div>

<p>Now, we must install the WordPress blog.</p>

<div class="wp-terminal">user@computer:$ apt-get install wordpress<br/>...<br/></div>

<p>This step also takes care of installing some dependencies such as <em>php5-mysql</em>, <em>php5-gd</em> and others. Now, let&#8217;s continue with the configuration. We already have the web server, database server and blog installed. We need to create a virtual host for our blog.</p>

<div class="wp-terminal">user@computer:$ vim /etc/apache2/sites-available/blog<br/></div>

<p>Which should have the following text (you can use vim or nano text editors).</p>

<div class="wp-terminal">user@computer:$ &lt;VirtualHost your_ip_address:80&gt;<br/>ServerName www.yourdomain.com<br/>ServerAdmin me@yourdomain.com<br/>DocumentRoot /var/www/blog<br/>DirectoryIndex index.php<br/>&lt;Directory /var/www/blog/&gt;<br/>AllowOverride All<br/>Order Deny,Allow<br/>Allow from all<br/>&lt;/Directory&gt;<br/>&lt;/VirtualHost&gt;<br/></div>

<p>Once saved, we need to create a symbolic link for the WordPress files (they are located on /usr/share/wordpress on debian). And then enable our new virtual site on Apache. Usually your ip address could be replaced by an asterisk (*), please refer to the Apache 2 documentation on named hosts for further information.</p>

<div class="wp-terminal">user@computer:$ ln -s /usr/share/wordpress /var/www/blog<br/>a2ensite blog<br/>apachectl restart<br/></div>

<p>We are almost there, on Debian the default WordPress config file is stored on <em>/etc/wordpress</em>, so one convenient way to setting it up is to copy the default file to a new one using our domain name. And then, we open the new config file with a text editor.</p>

<div class="wp-terminal">user@computer:$ cp /etc/wordpress/wp-config.php /etc/wordpress/config-YOUR_DOMAIN.COM.php<br/>vim /etc/wordpress/config-YOUR_DOMAIN.COM.php<br/></div>

<p>Inside, we must setup the following variables with the corresponding information (according to the database name you just created, user and pass).</p>
<ul>
<li>define(&#8216;DB_NAME&#8217;, &#8216;wordpress&#8217;);</li>
<li>define(&#8216;DB_USER&#8217;, &#8216;wordpress_user&#8217;);</li>
<li>define(&#8216;DB_PASSWORD&#8217;, &#8216;put_your_password_here&#8217;);</li>
<li>define(&#8216;DB_HOST&#8217;, &#8216;localhost&#8217;);</li>
</ul>

<div class="wp-terminal">user@computer:$ cp /etc/wordpress/wp-config.php /etc/wordpress/config-YOUR_DOMAIN.COM.php<br/></div>

<p>At this point, we should be ready to point our browser to the domain or IP address in question. If everything went well, we should see the WordPress Installation page. There are just a few fields to complete, such as the administrator password and email. Once we have filled the form, we are presented with the opportunity to enter the admin page.</p>
<h2>Ready to go!</h2>
<p>To verify everything, just point your browser to the IP address or domain of the blog. It should give you the default WordPress page. Congratulations!, you have your very own running server with WordPress installed.</p>
<p>Later, what you  usually do is start fiddling with the servers parameters and WordPress configuration. You can also turn off the virtual server, increase the capacity and turn it back on in a minute. This was just a small demonstration of how simple the process is. And it’s generally the same process for various software solutions, not just blogs.</p>
<p>With all the available options and flexibility, the choice from here on, is up to you.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.citycloud.eu/wordpress-2/a-dedicated-virtual-server-and-wordpress-ready-to-go-in-under-60-minutes-as-you-wish/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

