<?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>patspam &#187; Sys Admin</title>
	<atom:link href="http://blog.patspam.com/category/comp/sys-admin/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.patspam.com</link>
	<description>patspam patspam patspam</description>
	<lastBuildDate>Fri, 18 Jun 2010 23:44:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=2421</generator>
		<item>
		<title>Serve up Dancer webapps for six bucks</title>
		<link>http://blog.patspam.com/2010/serve-up-dancer-webapps-for-six-bucks</link>
		<comments>http://blog.patspam.com/2010/serve-up-dancer-webapps-for-six-bucks#comments</comments>
		<pubDate>Tue, 01 Jun 2010 18:36:04 +0000</pubDate>
		<dc:creator>Patrick</dc:creator>
				<category><![CDATA[Perl]]></category>
		<category><![CDATA[Sys Admin]]></category>

		<guid isPermaLink="false">http://blog.patspam.com/?p=1368</guid>
		<description><![CDATA[After a few weeks of mulling over the Perl Shared Hosting idea, a few enthusiastic messages from people and getting inspired by chromatic musing about a similar idea for a Perl Cookbook, I decided to JFDI. So, perlsharedhosting.com is now officially up and running. Rather than wasting my time building a web app for the site [...]]]></description>
			<content:encoded><![CDATA[<p>After a few weeks of <a href="http://blog.patspam.com/2010/perlsharedhosting">mulling over the Perl Shared Hosting idea</a>, a few enthusiastic messages from people and getting inspired by chromatic musing about a <a href="http://www.modernperlbooks.com/mt/2010/05/a-modern-perl-fakebook.html">similar idea for a Perl Cookbook</a>, I decided to JFDI.</p>
<p>So, <a href="http://perlsharedhosting.com/">perlsharedhosting.com</a> is now officially up and running.</p>
<p>Rather than wasting my time building a web app for the site before the idea has been proven, I decided to use a simple CMS and focus my energies on the content instead (there&#8217;s a wonderful irony in using a PHP CMS to deliver content about Perl shared hosting..).</p>
<p>I&#8217;ve added quick-start guides on how to install the following core technologies on your shared hosting account:</p>
<ul>
<li><a href="http://perlsharedhosting.com/tech/locallib">local::lib</a></li>
<li><a href="http://perlsharedhosting.com/tech/cpanminus">cpanminus</a></li>
<li><a href="http://perlsharedhosting.com/tech/taskkensho">Task::Kensho</a> (the &#8220;We support modern Perl&#8221; badge of honour for hosting providers)</li>
<li><a href="http://perlsharedhosting.com/tech/plack">Plack</a></li>
<li><a href="http://perlsharedhosting.com/tech/dancer">Dancer</a></li>
</ul>
<p>These pages are not in any way supposed to replace the official documentation sources. Ideally, they just tell you what the tool/lib  is, why you need it, and how to install it with minimum fuss. In reality, we also need to list any issues you may run into when using them in a shared hosting environment, but the idea is that we feed this information back to the upstream projects so that workarounds become unnecessary.</p>
<p>I&#8217;ve tested two different hosting providers, neither of which I&#8217;m going to mention by name here because I&#8217;m not trying to actually promote their brand.</p>
<ul>
<li>The <a href="http://perlsharedhosting.com/hosting-providers/shared/hostingzoom">first one</a> had a major limitation &#8211; no access to <strong>cc</strong> and hence the inability to compile XS modules (their tech support has offered to install CPAN modules on request, but it&#8217;s less than ideal).</li>
<li>The <a href="http://perlsharedhosting.com/hosting-providers/shared/hostmonster">second one</a> has so far passed all tests with flying colours &#8211; &#8220;cpanm Task::Kensho&#8221; works flawlessly, including all the XS modules. This is perhaps not all that surprising given that this is the same hosting provider that I used last year to get <a href="http://blog.patspam.com/2009/plebgui-webgui-meets-plack">WebGUI running under PSGI on a shared account</a>.</li>
</ul>
<p>I started playing with Dancer for the first time, and soon had live demos of Dancer running in both <a href="http://hostmonster.perlsharedhosting.com/">CGI</a> and <a href="http://hostmonster.perlsharedhosting.com/fcgi/">FastCGI</a> modes. Those URLs will change in the future but the idea is that we set up live versions of each web framework running on each hosting provider. Maybe in the future we could use a monitoring service to track the reliability and response time of each combination.</p>
<p>So already, the Perl Shared Hosting site has step-by-step instructions for how to run Dancer web apps on a shared hosting account for less than six bucks per month. That&#8217;s not half bad.</p>
<p>If you have a shared hosting account on a provider that isn&#8217;t listed (or you work for a shared hosting company and want to get yourself listed) then please <a href="http://perlsharedhosting.com/contact">contact me</a> to get involved.</p>
<p>Next up, we need to add more information about resource limits. I also plan on adding more web frameworks such as <a href="http://search.cpan.org/perldoc?Web::Simple">Web::Simple</a>, <a href="http://mojomojo.org/">MojoMojo</a>, <a href="http://www.catalystframework.org/">Catalyst</a>, <a href="http://search.cpan.org/perldoc?Tatsumaki">Tatsumaki</a>, ..</p>
<p>Once we have an idea about what features are most important, I&#8217;d like to then turn it around and start contacting the providers to ask them if they will add support for certain features to match (or beat) their competitors. I think there&#8217;s real potential for communicating back to the shared hosting providers that there&#8217;s a large market for modern Perl hosting, and ideally, what features we need/want. The site may also be useful for feeding back to the Perl toolchain/framework people what rough edges people are running into in shared environments.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.patspam.com/2010/serve-up-dancer-webapps-for-six-bucks/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>cPanel Automated Backups</title>
		<link>http://blog.patspam.com/2008/cpanel-automated-backups</link>
		<comments>http://blog.patspam.com/2008/cpanel-automated-backups#comments</comments>
		<pubDate>Tue, 18 Mar 2008 09:24:02 +0000</pubDate>
		<dc:creator>Patrick</dc:creator>
				<category><![CDATA[Sys Admin]]></category>

		<guid isPermaLink="false">http://blog.patspam.com/2008/03/18/cpanel-automated-backups/</guid>
		<description><![CDATA[I just scratched an itch I&#8217;ve had for a long time &#8211; a proper way to backup cPanel accounts from a reseller account. Up until now I&#8217;ve been scripting w get to grab the daily-generated backup of specific accounts every week (imitating what you can do manually by logging into cPanel and navigating to the [...]]]></description>
			<content:encoded><![CDATA[<p>I just scratched an itch I&#8217;ve had for a long time &#8211; a proper way to backup cPanel accounts from a reseller account. Up until now I&#8217;ve been scripting w get to grab the daily-generated backup of specific accounts every week (imitating what you can do manually by logging into cPanel and navigating to the Backup tab). It was annoying because I had to manually put in the username and password of each account I wanted to backup. What I really wanted was a solution to <strong>backup all accounts </strong>with minimal fuss.</p>
<p>The solution is a cron job that runs from my reseller account (you don&#8217;t need SSH access to do this as cPanel gives you access to your crontab). The solution looks like this:</p>
<pre class="brush: bash;">
nice -n 19 tar czhf - ~/backups | ssh user@server.com &quot;cat &gt; /cPanel_backups/$(date +\%A).tgz&quot;
</pre>
<p>My reseller server puts the daily-generated backups into ~/backups. So, all we have to do is tar this up and copy it over to a backup server.</p>
<p>Notes:</p>
<ul>
<li>We give tar the <strong>h</strong> option so that it stores the contents of symlinked directories in the archive, not real symlinks (the /backups directory in the primary reseller account contains symlinks inside sub-account subdirectories to the real location of eg. mysql snapshots etc..)</li>
<li>We compress the entire directory and pipe it across the wire via ssh</li>
<li>The backup is stored with the current day of the week in the name, effectively giving us 7-day rotation</li>
<li>You should set up password-less SSH access using public/private keys so that the command isn&#8217;t prompted for a password</li>
<li>The above command should be run from cron</li>
<li>The backslash escaping of the percentage sign in the date command is necessary when the command is run from cron</li>
<li>UPDATE: <strong>nice</strong>&#8216;d the command so that it doesn&#8217;t consume too many resources and get killed by my provider <img src='http://blog.patspam.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </li>
</ul>
<p>As usual, I&#8217;ve documented this for future reference in <a href="http://paddypedia.patspam.com/index.php?title=CPanel">Paddypedia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.patspam.com/2008/cpanel-automated-backups/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
