<?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>Chris Schuld&#039;s Blog &#187; lamp</title>
	<atom:link href="http://chrisschuld.com/tag/lamp/feed/" rel="self" type="application/rss+xml" />
	<link>http://chrisschuld.com</link>
	<description>personal musings on the composition of software</description>
	<lastBuildDate>Mon, 30 Aug 2010 03:48:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Setting up a simple Web/Mail Server in OpenVZ</title>
		<link>http://chrisschuld.com/2009/06/setting-up-a-simple-webmail-server-in-openvz/</link>
		<comments>http://chrisschuld.com/2009/06/setting-up-a-simple-webmail-server-in-openvz/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 21:22:14 +0000</pubDate>
		<dc:creator>Chris Schuld</dc:creator>
				<category><![CDATA[OpenVZ]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[remi]]></category>

		<guid isPermaLink="false">http://chrisschuld.com/?p=238</guid>
		<description><![CDATA[Here are the steps I continue to use over and over to build utilities/project servers in OpenVZ. Utilities servers host web apps, mailing applications, etc for my company. We usually build them as self-contained little appliance-like servers. My vision and goal is simple == better every day! First, we create the virtual machine: cid=1164 cd [...]]]></description>
			<content:encoded><![CDATA[<p>Here are the steps I continue to use over and over to build utilities/project servers in OpenVZ.  Utilities servers host web apps, mailing applications, etc for my company.  We usually build them as self-contained little appliance-like servers.  My vision and goal is <strong>simple == better</strong> every day!</p>
<p>First, we create the virtual machine:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">cid</span>=<span style="color: #000000;">1164</span>
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>vz<span style="color: #000000; font-weight: bold;">/</span>template<span style="color: #000000; font-weight: bold;">/</span>cache<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>download.openvz.org<span style="color: #000000; font-weight: bold;">/</span>template<span style="color: #000000; font-weight: bold;">/</span>precreated<span style="color: #000000; font-weight: bold;">/</span>centos-<span style="color: #000000;">5</span>-x86_64.tar.gz
vzctl create <span style="color: #800000;">${cid}</span> <span style="color: #660033;">--ostemplate</span> centos-<span style="color: #000000;">5</span>-x86_64 <span style="color: #660033;">--config</span> vps.basic
vzctl <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #800000;">${cid}</span> <span style="color: #660033;">--hostname</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>HOSTNAMEHERE<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #660033;">--save</span>
vzctl <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #800000;">${cid}</span> <span style="color: #660033;">--ipadd</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>IP<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #660033;">--save</span>
vzctl <span style="color: #000000; font-weight: bold;">set</span> <span style="color: #800000;">${cid}</span> <span style="color: #660033;">--nameserver</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>IP<span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #660033;">--save</span>
vzctl start <span style="color: #800000;">${cid}</span>
vzctl <span style="color: #7a0874; font-weight: bold;">exec</span> <span style="color: #800000;">${cid}</span> <span style="color: #c20cb9; font-weight: bold;">passwd</span>
vzctl enter <span style="color: #800000;">${cid}</span></pre></div></div>

<p>Now that we are in the virtual machine and away from the HN we add the REMI repo and apply the updates directly on the box.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>download.fedora.redhat.com<span style="color: #000000; font-weight: bold;">/</span>pub<span style="color: #000000; font-weight: bold;">/</span>epel<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">5</span><span style="color: #000000; font-weight: bold;">/</span>i386<span style="color: #000000; font-weight: bold;">/</span>epel-release-<span style="color: #000000;">5</span>-3.noarch.rpm
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>rpms.famillecollet.com<span style="color: #000000; font-weight: bold;">/</span>enterprise<span style="color: #000000; font-weight: bold;">/</span>remi-release-5.rpm
rpm <span style="color: #660033;">-Uvh</span> remi-release-<span style="color: #000000;">5</span><span style="color: #000000; font-weight: bold;">*</span>.rpm epel-release-<span style="color: #000000;">5</span><span style="color: #000000; font-weight: bold;">*</span>.rpm
<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">rm</span> epel-release-<span style="color: #000000;">5</span>-3.noarch.rpm remi-release-5.rpm
&nbsp;
yum <span style="color: #660033;">--enablerepo</span> remi <span style="color: #660033;">-y</span> update
yum <span style="color: #660033;">--enablerepo</span> remi <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> httpd php php-devel php-pear php-gd php-xsl php-mbstring php-mcrypt php-mysql mysql</pre></div></div>

<p>Add Postfix and switch it on via <strong>system-switch-mail</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #660033;">--enablerepo</span> remi <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> postfix system-switch-mail
system-switch-mail</pre></div></div>

<p>Now&#8230; customer configurations and setups&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://chrisschuld.com/2009/06/setting-up-a-simple-webmail-server-in-openvz/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
