<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Looking for tips and resources for learning how to run a webhost on a linux virtual machine</title>
	<link>http://ask.metafilter.com/55654/Looking-for-tips-and-resources-for-learning-how-to-run-a-webhost-on-a-linux-virtual-machine/</link>
	<description>Comments on Ask MetaFilter post Looking for tips and resources for learning how to run a webhost on a linux virtual machine</description>
	<pubDate>Wed, 24 Jan 2007 10:48:45 -0800</pubDate>
	<lastBuildDate>Wed, 24 Jan 2007 10:48:45 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Looking for tips and resources for learning how to run a webhost on a linux virtual machine</title>
		<link>http://ask.metafilter.com/55654/Looking-for-tips-and-resources-for-learning-how-to-run-a-webhost-on-a-linux-virtual-machine</link>	
		<description>I&apos;m planning on getting a linux virtual machine (something like &lt;a href=&quot;http://linode.com/&quot;&gt;linode&lt;/a&gt;) for webhosting, but I could use some tips and resources for getting started.  &lt;br /&gt;&lt;br /&gt; My only experience of administrating a linux server is through a control panel program (like cPanel) on a typical shared-host setup. My question therefore, is what do I need to know to:&lt;br&gt;
&lt;br&gt;
1. Get my virtual machine set up with all the stuff needed for web hosting (installing/configuring apache, php, mysql, mail server, ftp, dns, security etc.), basically so its kitted out in a manner similar to the shared hosting service I&apos;m familiar with.&lt;br&gt;
&lt;br&gt;
2. Handle ongoing administration.&lt;br&gt;
&lt;br&gt;
I&apos;m looking for any good information; tips, links, tutorials, books, anything useful really. &lt;br&gt;
&lt;br&gt;
Thanks!&lt;br&gt;
&lt;br&gt;
(Distro-wise, I&apos;m leaning toward Debian because I&apos;m informed its fairly light and simple. Also, I&apos;ve seen &lt;a href=&quot;http://ask.metafilter.com/mefi/53688&quot;&gt;these&lt;/a&gt; &lt;a href=&quot;http://ask.metafilter.com/mefi/32400&quot;&gt;questions&lt;/a&gt;, but they&apos;re not entirely useful. )</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2007:site.55654</guid>
		<pubDate>Wed, 24 Jan 2007 10:20:44 -0800</pubDate>
		<dc:creator>MetaMonkey</dc:creator>
		
			<category>linux</category>
		
			<category>user-mode</category>
		
			<category>virtualmachine</category>
		
			<category>noob</category>
		
			<category>learn</category>
		
	</item> <item>
		<title>By: jellicle</title>
		<link>http://ask.metafilter.com/55654/Looking-for-tips-and-resources-for-learning-how-to-run-a-webhost-on-a-linux-virtual-machine#837666</link>	
		<description>Debian is simple because many different software packages have been created for you and are easily available.  It&apos;s easy not because it&apos;s easy, but because it changes only slowly and there are lots of other people using it, so help is easy to find.&lt;br&gt;
&lt;br&gt;
So, Google.&lt;br&gt;
&lt;br&gt;
&quot;debian how to install packages&quot;&lt;br&gt;
&lt;br&gt;
&quot;debian install apache2&quot;&lt;br&gt;
&lt;br&gt;
&quot;debian install php5&quot;&lt;br&gt;
&lt;br&gt;
&quot;debian install mysql&quot;&lt;br&gt;
&lt;br&gt;
SSH will almost certainly be installed already.  Then you can try:&lt;br&gt;
&lt;br&gt;
&quot;debian configure apache2&quot;&lt;br&gt;
&lt;br&gt;
&quot;debian configure mysql&quot;</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.55654-837666</guid>
		<pubDate>Wed, 24 Jan 2007 10:48:45 -0800</pubDate>
		<dc:creator>jellicle</dc:creator>
	</item><item>
		<title>By: pharm</title>
		<link>http://ask.metafilter.com/55654/Looking-for-tips-and-resources-for-learning-how-to-run-a-webhost-on-a-linux-virtual-machine#837676</link>	
		<description>You can of course install a control panel type program on your Debian system &amp;mdash; &lt;a href=&quot;http://www.gplhost.com/software-dtc.html&quot;&gt;dtc&lt;/a&gt; is only an &quot;apt-get install dtc&quot; away for instance (not that I&apos;ve ever used it...)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.55654-837676</guid>
		<pubDate>Wed, 24 Jan 2007 10:56:45 -0800</pubDate>
		<dc:creator>pharm</dc:creator>
	</item><item>
		<title>By: SpecialK</title>
		<link>http://ask.metafilter.com/55654/Looking-for-tips-and-resources-for-learning-how-to-run-a-webhost-on-a-linux-virtual-machine#837846</link>	
		<description>Most of the good vhost web hosts will sell a &apos;Cpanel&apos; service along with the vhosts. It&apos;s either included, optional, or costs extra depending on the host. Between CPanel and WHM, the &apos;superuser&apos; side of CPanel, you should be able to do everything you do with your current webhost... without ever once having to shell in. &lt;br&gt;
&lt;br&gt;
I personally manage *my* CentOS 4 server with the shell, but I&apos;ve also got about seven years experience with redhat.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.55654-837846</guid>
		<pubDate>Wed, 24 Jan 2007 13:09:06 -0800</pubDate>
		<dc:creator>SpecialK</dc:creator>
	</item><item>
		<title>By: Skorgu</title>
		<link>http://ask.metafilter.com/55654/Looking-for-tips-and-resources-for-learning-how-to-run-a-webhost-on-a-linux-virtual-machine#837875</link>	
		<description>I have to tell you if you&apos;re not actively reselling domains or completely unwilling to learn the first thing about server administration, cpanel is entirely more trouble than it&apos;s worth. I&apos;m of the opinion that most of the one-size-fits-all web frontends are useless, but that&apos;s definitely only my opinion.&lt;br&gt;
&lt;br&gt;
I can also happily ramble on about this stuff for &lt;strike&gt;hours&lt;/strike&gt; days so I&apos;ll try to keep it brief-ish. &lt;br&gt;
&lt;br&gt;
Debian is a very good choice. Redhat/centos is more well supported if you&apos;re a company, but for an individual I&apos;d definitely recommend debian. On my personal linode I run ubuntu, which is debian wearing a different hat. &lt;br&gt;
&lt;br&gt;
One of the verynicethings about going with Debian/ubuntu is that most if not all of the nitty gritty setup stuff is done for you. So, in your order:&lt;br&gt;
&lt;br&gt;
&lt;i&gt;installing/configuring apache&lt;/i&gt;: apt-get install apache2&lt;br&gt;
&lt;br&gt;
&lt;i&gt;php&lt;/i&gt;: apt-get install php &lt;br&gt;
&lt;br&gt;
&lt;i&gt;mysql&lt;/i&gt;: apt-get install mysql phpmyadmin (if you want)&lt;br&gt;
&lt;br&gt;
&lt;i&gt;mail server&lt;/i&gt;: somewhat of a different beast, it depends on how you want to handle it. As books have been written about this step, I&apos;ll just throw my $.02 in and say Postfix is probably your best bet and there are plenty of &lt;a href=&apos;http://www.unixreview.com/documents/s=9772/ur0505k/ur0505k.html&apos;&gt;tutorials&lt;/a&gt; out there for more specifics. Email is hard.&lt;br&gt;
&lt;br&gt;
&lt;i&gt;ftp&lt;/i&gt;: Don&apos;t. Get &lt;a href=&apos;http://filezilla.sourceforge.net/&apos;&gt;filezilla&lt;/a&gt; and use SSH as your transport. &lt;br&gt;
&lt;br&gt;
&lt;i&gt;dns&lt;/i&gt;: Similar to email, this is a big topic. I&apos;ll mostly just cheat and foist you off to another &lt;a href=&apos;http://www.howtoforge.com/debian_bind9_master_slave_system&apos;&gt;howto&lt;/a&gt; but I will say that hosting both primary and secondary DNS servers on one machine is a Bad Idea. I use &lt;a href=&apos;http://www.everydns.net/&apos;&gt;EveryDNS&lt;/a&gt; as a backup nameserver (4 actually) for my personal domains and the companies I admin for mostly outsource their DNS. It&apos;s not really something you want to do in-house unless you have a compelling need.&lt;br&gt;
&lt;br&gt;
&lt;i&gt;security etc. &lt;/i&gt;: Really this should have been #1 but I&apos;ll let you slide :) Broken record time, this is a big subject. Basically, if you login every week or so and apt-get update; apt-get upgrade you should be safe from some huge percentage of bugs. You can setup a cron job for this but it&apos;s always good to login and poke around every so often. I&apos;d &lt;b&gt;strongly&lt;/b&gt; recommend a firewall, &lt;a href=&apos;http://www.shorewall.net/shorewall_quickstart_guide.htm#id2461960&apos;&gt;Shorewall&lt;/a&gt; is well documented. Other security bits and bobs: don&apos;t ever, EVER login as root. Disable it in /etc/ssh/sshd_config. Do everything through sudo. &lt;br&gt;
&lt;br&gt;
Gmail in profile if you&apos;d like to chat off-site about any of this, or I&apos;m happy to elaborate here.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.55654-837875</guid>
		<pubDate>Wed, 24 Jan 2007 13:36:48 -0800</pubDate>
		<dc:creator>Skorgu</dc:creator>
	</item><item>
		<title>By: MetaMonkey</title>
		<link>http://ask.metafilter.com/55654/Looking-for-tips-and-resources-for-learning-how-to-run-a-webhost-on-a-linux-virtual-machine#838724</link>	
		<description>Much thanks for the help everybody. I&apos;m starting to think that I may have been overthinking the matter a little, since y&apos;all make it sound fairly straightforward. I  should probably just take the plunge and work the rest out as I go.&lt;br&gt;
&lt;br&gt;
Many thanks Skorgu for your offer of further assistence and detailed answer, I think you&apos;ve told me pretty much what I need to know to get going. If I have any other little questions, I&apos;ll try to resist the temptation to email you ;)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.55654-838724</guid>
		<pubDate>Thu, 25 Jan 2007 08:54:50 -0800</pubDate>
		<dc:creator>MetaMonkey</dc:creator>
	</item>
	</channel>
</rss>
