<?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>UNIXy &#187; DirectAdmin</title>
	<atom:link href="http://blog.unixy.net/tag/directadmin/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.unixy.net</link>
	<description>Fully Managed Dedicated Servers</description>
	<lastBuildDate>Sun, 18 Dec 2011 07:23:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>cPanel Varnish Plugin artwork contest!</title>
		<link>http://blog.unixy.net/2011/11/cpanel-varnish-plugin-artwork-contest/</link>
		<comments>http://blog.unixy.net/2011/11/cpanel-varnish-plugin-artwork-contest/#comments</comments>
		<pubDate>Sun, 06 Nov 2011 18:58:04 +0000</pubDate>
		<dc:creator>Joe</dc:creator>
				<category><![CDATA[Challenge]]></category>
		<category><![CDATA[Interesting]]></category>
		<category><![CDATA[artwork]]></category>
		<category><![CDATA[contest]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[logo]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[varnish]]></category>

		<guid isPermaLink="false">http://blog.unixy.net/?p=1446</guid>
		<description><![CDATA[ Don't pass on the opportunity to get awarded two owned licenses ($278 value) and a feature on our blog! Submit your artwork for either the cPanel Varnish Plugin or the DirectAdmin Varnish Plugin to isaig@unixy.net.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.unixy.net%2F2011%2F11%2Fcpanel-varnish-plugin-artwork-contest%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.unixy.net%2F2011%2F11%2Fcpanel-varnish-plugin-artwork-contest%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Don&#8217;t pass on the opportunity to get awarded two owned licenses ($278 value) and a feature on our blog! Submit your artwork for either the cPanel Varnish Plugin or the DirectAdmin Varnish Plugin to isaig@unixy.net.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unixy.net/2011/11/cpanel-varnish-plugin-artwork-contest/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Varnish Plugin + DirectAdmin = OMG!</title>
		<link>http://blog.unixy.net/2011/04/varnish-plugin-directadmin-omg/</link>
		<comments>http://blog.unixy.net/2011/04/varnish-plugin-directadmin-omg/#comments</comments>
		<pubDate>Tue, 12 Apr 2011 23:31:41 +0000</pubDate>
		<dc:creator>UNIXy</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[varnish]]></category>

		<guid isPermaLink="false">http://blog.unixy.net/?p=1259</guid>
		<description><![CDATA[It's been over three months since our first successful [URL="http://www.unixy.net/varnish"]Varnish[/URL] plugin release. We're riding this good vibe and are offering the Varnish plugin for DirectAdmin. Yes! URL: http://www.unixy.net/varnish]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.unixy.net%2F2011%2F04%2Fvarnish-plugin-directadmin-omg%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.unixy.net%2F2011%2F04%2Fvarnish-plugin-directadmin-omg%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>It&#8217;s been over three months since our first successful <a title="DirectAdmin Varnish Plugin" href="http://www.unixy.net/varnish">Varnish</a> plugin release. We&#8217;re riding this good vibe and are offering the Varnish plugin for <a title="DirectAdmin Varnish" href="http://www.unixy.net/varnish">DirectAdmin</a>. Yes!  <a title="DirectAdmin Varnish" href="http://www.unixy.net/varnish">http://www.unixy.net/varnish</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unixy.net/2011/04/varnish-plugin-directadmin-omg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Varnish Cache and XenForo</title>
		<link>http://blog.unixy.net/2011/04/varnish-and-xenforo/</link>
		<comments>http://blog.unixy.net/2011/04/varnish-and-xenforo/#comments</comments>
		<pubDate>Fri, 01 Apr 2011 06:50:34 +0000</pubDate>
		<dc:creator>UNIXy</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[accelerator]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[cookie caching]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[varnish]]></category>
		<category><![CDATA[varnish cache]]></category>
		<category><![CDATA[xenforo]]></category>
		<category><![CDATA[XF]]></category>

		<guid isPermaLink="false">http://blog.unixy.net/?p=1248</guid>
		<description><![CDATA[We've had very positive results accelerating XenForo with Varnish (in a cluster configuration). In terms of VCL, we're taking a slightly different approach. We're allocating a small per-user cache (logged in), which makes XenForo pages load even faster than normal conditions. ]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.unixy.net%2F2011%2F04%2Fvarnish-and-xenforo%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.unixy.net%2F2011%2F04%2Fvarnish-and-xenforo%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>We&#8217;ve had very positive results accelerating XenForo with <a title="Varnish" href="http://www.unixy.net/varnish">Varnish</a> (in a <a title="managed cluster" href="http://www.unixy.net/advanced-hosting">cluster</a> configuration). In terms of VCL, we&#8217;ve taken a slightly different approach but it results in better caching / acceleration. We&#8217;ve allocated a small per-user cache (logged in users), which makes XenForo pages load even faster than normal conditions. This reserved cache is rather transparent to the end user so no code changes are required. In fact, the acceleration we provide requires no modification to any XF files at all.</p>
<p>Static files, however, are stripped out of cookies in the Varnish VCL and served from the same cache area. The performance gains are tremendous. We&#8217;ve already published a Varnish plugin for cPanel and DirectAdmin that incorporates these tweaks. Feel free to read more about it here: <a title="Varnish" href="http://www.unixy.net/varnish">http://www.unixy.net/varnish</a></p>
<p>Cheers</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unixy.net/2011/04/varnish-and-xenforo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Running DirectAdmin On Amazon EC2 Linux- Solved!</title>
		<link>http://blog.unixy.net/2009/06/running-directadmin-on-amazon-ec2-linux-solved/</link>
		<comments>http://blog.unixy.net/2009/06/running-directadmin-on-amazon-ec2-linux-solved/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 18:21:09 +0000</pubDate>
		<dc:creator>UNIXy</dc:creator>
				<category><![CDATA[Challenge]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[Amazon]]></category>
		<category><![CDATA[DA]]></category>
		<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[EC2]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://blog.unixy.net/?p=15</guid>
		<description><![CDATA[We were able to install DirectAdmin (a Web hosting control panel) on Amazon's Elastic Compute Cloud, branded as EC2. We would like to share the steps required to build a working instance of DirectAdmin on an Amazon server.]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fblog.unixy.net%2F2009%2F06%2Frunning-directadmin-on-amazon-ec2-linux-solved%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fblog.unixy.net%2F2009%2F06%2Frunning-directadmin-on-amazon-ec2-linux-solved%2F&amp;style=normal&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>We were able to install DirectAdmin (a Web hosting control panel) on Amazon&#8217;s Elastic Compute Cloud, branded as EC2. We would like to share the steps required to build a working instance of DirectAdmin on an Amazon server. First, I would like to personally thank Mark from <a title="Web Control Panel" href="http://www.directadmin.com" target="_blank">DirectAdmin</a> for being so accommodating and granting us a trial license. His help is very much appreciated! Keep in mind that <a href="http://www.unixy.net" target="_self">UNIXY</a>&#8216;s truly fully <a title="Managed server" href="http://www.unixy.net" target="_self">managed server</a> service goes above and beyond. We take business dreams and make them a reality.</p>
<p>Before we list the requirements, it is important to note that EC2 instances are Xen Virtual Machines. We encountered some issues running DA on the &#8220;Small&#8221; Amazon instances. The issues are related to 64-bit mode library mismatches. The only instances to be able to run DirectAdmin out of the box are of type &#8220;Large&#8221; and better. They are more expensive but ideal for this configuration.</p>
<p>Here are the requirements:</p>
<ul>
<li>Instance of type Large</li>
<li>Linux CentOS 5 image</li>
<li>One elastic (which is another word for static) IP address</li>
</ul>
<p>Go ahead and bring up the node as you would normally do. Be sure to remove all extra software that comes pre-installed with the CentOS 5 image. Otherwise, it will break DirectAdmin. If in doubt, follow the instructions on the DirectAdmin Install page:</p>
<blockquote><p>http://www.directadmin.com/install.html</p></blockquote>
<p>Once logged in as root, go ahead and download the DirectAdmin install tarball:</p>
<blockquote><p># wget http://www.directadmin.com/setup.sh</p></blockquote>
<p>By default, the licensing scheme of DirectAdmin makes it that setup.sh binds to the licensed IP address. Here&#8217;s how the license verification command looks like:</p>
<blockquote><p>$BIN_DIR/wget $WGET_OPTION -O $DA_PATH/update.tar.gz &#8211;bind-address=$IP https://www.directadmin.com/cgi-bin/daupdate?uid=$CID\&amp;lid=$LID</p></blockquote>
<p>But as you know, EC2 instances are 1:1 private:public NAT. Which means that the license check step will fail and the DA install won&#8217;t start. To avoid this chicken-and-egg problem, we are going to tell setup.sh to not bind to any IP address but to simply connect to the DA licensing server using the elastic external IP address, which it will do by default. Go ahead and run this command against the setup.sh file:</p>
<blockquote><p><code># sed -i 's/--bind-address=\$IP//;' setup.sh</code></p></blockquote>
<p>Before we run setup.sh, we need to trick the setup script to think that the external IP address is &#8220;attached&#8221; to the server. Here&#8217;s how:</p>
<blockquote><p># ifconfig eth0:0 inet 1.1.1.1 netmask 255.255.255.255 up</p></blockquote>
<p>Be sure to replace the IP address 1.1.1.1 with your elastic IP. Then simply run setup.sh:</p>
<blockquote><p># cd /usr/local/directadmin/scripts; while [ true ]; do <code>sed -i 's/--bind-address=\$IP//; s/--bind-address=\${3}//;' *.sh </code>&gt; /dev/null &gt; 2&amp;&gt;1; sleep 10; done &amp; sh setup.sh 11111 22222 vpslux.com eth0:0 1.1.1.1</p></blockquote>
<p>Woaah! Wait a minute! What is that!? OK, let&#8217;s break it down. The DA scripts directory gets unpacked into the server after you run setup.sh. It dumps a list of scripts that are used by DA to setup accounts, domains, etc. Some scripts use the same &#8211;bind-address flag. Having that flag in those scripts breaks DA. the one-line script &#8220;while [ true ]; do sed -i &#8216;s/&#8211;bind-address=\$IP//; s/&#8211;bind-address=\${3}//;&#8217; *.sh; sleep 10; done&#8221; simply goes to that directory and removes the flag.</p>
<p>The trick being DA attempts to run some of those scripts <em>while</em> setup.sh is running. So it&#8217;s important to have the sed script run in parallel during the installation. Once the setup.sh is done running, we&#8217;ll kill the job (or reboot per the final step). The arguments supplied to setup.sh are in this format</p>
<blockquote><p># setup.sh &lt;ClientID&gt; &lt;LicenseID&gt; &lt;Hostname&gt; &lt;Interface&gt; &lt;ExternalIP&gt;</p></blockquote>
<p>Be sure to replace those values accordingly. Once the install finishes, simply reboot the VM:</p>
<blockquote><p># reboot</p></blockquote>
<p>That&#8217;s all folks. Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.unixy.net/2009/06/running-directadmin-on-amazon-ec2-linux-solved/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.126 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-01-19 22:59:05 -->

