<?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>RimuHosting Blog</title>
	<atom:link href="http://blog.rimuhosting.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.rimuhosting.com</link>
	<description>Mighty Linux servers, support worth raving about</description>
	<lastBuildDate>Wed, 01 Feb 2012 01:07:34 +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>Centos brcm-iscsi.log</title>
		<link>http://blog.rimuhosting.com/2012/02/01/centos-brcm-iscsi-log/</link>
		<comments>http://blog.rimuhosting.com/2012/02/01/centos-brcm-iscsi-log/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 00:57:53 +0000</pubDate>
		<dc:creator>john</dc:creator>
				<category><![CDATA[Rimuhosting]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[disk space]]></category>
		<category><![CDATA[logs]]></category>

		<guid isPermaLink="false">http://blog.rimuhosting.com/?p=1810</guid>
		<description><![CDATA[We have noticed a log related to iscsi daemons filling up disk space on a few of our Centos 5 VPSs lately. There have been a few reports of this in other places: http://www.webhostingtalk.com/archive/index.php/t-1046154.html It seems after you do a &#8230; <a href="http://blog.rimuhosting.com/2012/02/01/centos-brcm-iscsi-log/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><span style="color:#000000">We have noticed a log related to iscsi daemons filling up disk space on a few of our Centos 5 VPSs lately. There have been a few reports of this in other places:</p>
<p><a href="http://www.webhostingtalk.com/archive/index.php/t-1046154.html">http://www.webhostingtalk.com/archive/index.php/t-1046154.html</a></p>
<p>It seems after you do a yum or apt-get update past Centos 5.6, this unneeded service will sometimes get enabled:</p>
<p><code># chkconfig --list | grep iscsi<br />
iscsi 0:off 1:off 2:off 3:off 4:off 5:off 6:off<br />
iscsid 0:off 1:off 2:off 3:off 4:off 5:off 6:off</code></p>
<p>If that happens you will need to turn them off:</p>
<p><code># chkconfig iscsi off<br />
# chkconfig iscsid off</code></p>
<p>Or else you will get some meaningless logs filling up your disk space like this:</p>
<p><code># tail brcm-iscsi.log<br />
ERR [Tue Jan 31 19:44:24 2012]NIC_NL waiting binding to NETLINK_ISCSI socket<br />
ERR [Tue Jan 31 19:44:25 2012]NIC_NL waiting binding to NETLINK_ISCSI socket<br />
ERR [Tue Jan 31 19:44:26 2012]NIC_NL waiting binding to NETLINK_ISCSI socket<br />
ERR [Tue Jan 31 19:44:27 2012]NIC_NL waiting binding to NETLINK_ISCSI socket<br />
ERR [Tue Jan 31 19:44:28 2012]NIC_NL waiting binding to NETLINK_ISCSI socket</code></p>
<p>Also be sure to stop those daemons:</p>
<p><code># /etc/init.d/iscsid stop<br />
# /etc/init.d/iscsi stop</code></p>
<p>And be sure to remove the log at:</p>
<p>/var/log/brcm-iscsi.log</p>
<p>To free up some space.</p>
<p>For some more tips on checking what is using up all your disk space <a href="http://rimuhosting.com/knowledgebase/linux/misc/where-has-all-my-disk-space-gone" title="Where has all my disk space gone?">check our page here</a>.<br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rimuhosting.com/2012/02/01/centos-brcm-iscsi-log/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress mass update script 3.3.1</title>
		<link>http://blog.rimuhosting.com/2012/01/05/wordpress-mass-update-script-3-3-1/</link>
		<comments>http://blog.rimuhosting.com/2012/01/05/wordpress-mass-update-script-3-3-1/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 21:38:02 +0000</pubDate>
		<dc:creator>Liz Quilty</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://blog.rimuhosting.com/?p=1802</guid>
		<description><![CDATA[This script will search /var/www (changeable in a variable) for any wordpress installs and make sure its upgraded to the latest version. It will run a backup to /root/wp_upgrade/ of all files and database before doing anything with the site &#8230; <a href="http://blog.rimuhosting.com/2012/01/05/wordpress-mass-update-script-3-3-1/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This script will search /var/www (changeable in a variable) for any wordpress installs and make sure its upgraded to the latest version.<br />
It will run a backup to /root/wp_upgrade/ of all files and database before doing anything with the site in case of major catastrophe (make sure you have spare disk space if your sites have a lot of uploaded files).</p>
<p>I have now added putting the site into maintenance mode whilst upgrading. This just involves adding a .maintenance in the document root.</p>
<p>It pays to check each site after the upgrade to make sure plugins all worked (and upgrade plugins before the upgrade works also!)</p>
<p>Let me know if you have any bugs at all, or any problems.</p>
<p>Here’s your script to upgrade them all.</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>b.ri.mu<span style="color: #000000; font-weight: bold;">/</span>files<span style="color: #000000; font-weight: bold;">/</span>wordpress-upgrade-3.3.1.sh
<span style="color: #c20cb9; font-weight: bold;">bash</span> wordpress-upgrade-3.3.1.sh</pre></div></div>

<p>MD5<br />
e365a7fa4b69b3ad52e75b4175c1539a  wordpress-upgrade-3.3.1.sh</p>
<p>SHA1<br />
653d1a95a89cfc4be3253af96ef915ba3615ad18  wordpress-upgrade-3.3.1.sh</p>
<p>If you find any bugs or problems, just let me know at liz at rimuhosting dot com</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rimuhosting.com/2012/01/05/wordpress-mass-update-script-3-3-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducing 2 Parts Magic</title>
		<link>http://blog.rimuhosting.com/2011/12/16/introducing-2-parts-magic/</link>
		<comments>http://blog.rimuhosting.com/2011/12/16/introducing-2-parts-magic/#comments</comments>
		<pubDate>Fri, 16 Dec 2011 02:17:58 +0000</pubDate>
		<dc:creator>Peter Bryant</dc:creator>
				<category><![CDATA[Rimuhosting]]></category>

		<guid isPermaLink="false">http://blog.rimuhosting.com/?p=1788</guid>
		<description><![CDATA[I am happy to announce the launch of a new RimuHosting service: 2 Parts Magic web app development services 2 Parts Magic is team of web programmers.  Based here in the Cambridge RimuHosting offices.  They write browser based web applications &#8230; <a href="http://blog.rimuhosting.com/2011/12/16/introducing-2-parts-magic/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.rimuhosting.com/2011/12/16/introducing-2-parts-magic/2-parts-magic-recipe-300/" rel="attachment wp-att-1790"><img class="alignleft size-full wp-image-1790" title="2-parts-magic-recipe-300" src="http://blog.rimuhosting.com/wp-content/uploads/2011/12/2-parts-magic-recipe-300.png" alt="" width="300" height="153" /></a>I am happy to announce the launch of a new RimuHosting service: <a href="http://2partsmagic.com">2 Parts Magic web app development services<br />
</a></p>
<p><a href="http://2partsmagic.com">2 Parts Magic</a> is team of web programmers.  Based here in the Cambridge RimuHosting offices.  They write browser based web applications for start-ups and successful Internet-based businesses.  So you can use their services to implement your rich internet applications.  Typically forms or pages using things like Ajax, Javascript, HTML5 on the client side.  Applications that require a 'server side' that makes use of databases and knows about users and billing and things like complex ordering systems.  Applications that need things like REST-ful APIs.</p>
<p>Why do this?  First we think there is a need.  Our customers ask whether we provide programming services, or if we can refer them to someone who does.</p>
<p>Also, our development team here is getting pretty darn good at quickly building really useful and usable web applications.</p>
<p>So far the 2 Parts Magic team has worked on our own internal ventures:  <a href="http://pingability.com" target="_blank">Pingability</a> website monitoring, <a href="http://zonomi.com" target="_blank">Zonomi managed DNS</a>, <a href="http://bakop.com" target="_blank">Bakop's backup service</a>, the <a href="http://25mail.st" target="_blank">25Mail.st email hosting</a>, <a href="http://ri.mu" target="_blank">et al</a>.  Plus our unique <a href="http://inboxharmony.com">InboxHarmony collaborative email client</a>.</p>
<p>We are continuing to develop our own new ventures (we've just started work on a cool new project, stay tuned) and we're constantly improving our current applications.</p>
<p>But now the 2 Parts Magic developers are also available to turn your idea for a new software-as-a-service application into a production ready, highly usable, efficient web app.</p>
<p>Visit <a href="http://2partsmagic.com">http://2partsmagic.com</a> to find out how we work and how easy it is to get your idea off the ground.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rimuhosting.com/2011/12/16/introducing-2-parts-magic/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress mass update script 3.3</title>
		<link>http://blog.rimuhosting.com/2011/12/14/wordpress-mass-update-script-3-3/</link>
		<comments>http://blog.rimuhosting.com/2011/12/14/wordpress-mass-update-script-3-3/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 20:15:02 +0000</pubDate>
		<dc:creator>Liz Quilty</dc:creator>
				<category><![CDATA[Rimuhosting]]></category>

		<guid isPermaLink="false">http://blog.rimuhosting.com/?p=1781</guid>
		<description><![CDATA[This script will search /var/www (changeable in a variable) for any wordpress installs and make sure its upgraded to the latest version. It will run a backup to /root/wp_upgrade/ of all files and database before doing anything with the site &#8230; <a href="http://blog.rimuhosting.com/2011/12/14/wordpress-mass-update-script-3-3/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This script will search /var/www (changeable in a variable) for any wordpress installs and make sure its upgraded to the latest version.<br />
It will run a backup to /root/wp_upgrade/ of all files and database before doing anything with the site in case of major catastrophe (make sure you have spare disk space if your sites have a lot of uploaded files).</p>
<p>I have now added putting the site into maintenance mode whilst upgrading. This just involves adding a .maintenance in the document root.</p>
<p>It pays to check each site after the upgrade to make sure plugins all worked (and upgrade plugins before the upgrade works also!)</p>
<p>Let me know if you have any bugs at all, or any problems.</p>
<p>Here’s your script to upgrade them all.</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>b.ri.mu<span style="color: #000000; font-weight: bold;">/</span>files<span style="color: #000000; font-weight: bold;">/</span>wordpress-upgrade-<span style="color: #000000;">3.3</span>.sh
<span style="color: #c20cb9; font-weight: bold;">bash</span> wordpress-upgrade-<span style="color: #000000;">3.3</span>.sh</pre></div></div>

<p>MD5<br />
a976aca14faf744f6271f8b8de9f59cb  wordpress-upgrade-3.3.sh</p>
<p>SHA1<br />
cdcda9912cd9e0063cd3d0930cd55b07ae2bda96  wordpress-upgrade-3.3.sh</p>
<p>If you find any bugs or problems, just let me know at liz at rimuhosting dot com</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rimuhosting.com/2011/12/14/wordpress-mass-update-script-3-3/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>December 2011 Newsletter</title>
		<link>http://blog.rimuhosting.com/2011/12/13/december-2011-newsletter/</link>
		<comments>http://blog.rimuhosting.com/2011/12/13/december-2011-newsletter/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 00:14:37 +0000</pubDate>
		<dc:creator>Peter Bryant</dc:creator>
				<category><![CDATA[Rimuhosting]]></category>

		<guid isPermaLink="false">http://blog.rimuhosting.com/?p=1768</guid>
		<description><![CDATA[Welcome to the latest RimuHosting newsletter. We will try to keep you posted on some of the our key news since the last newsletter back in April (http://blog.rimuhosting.com/2011/04/19/newsletter-2011-04/) Launching 2 Parts Magic software development services RimuHosting's latest venture is a &#8230; <a href="http://blog.rimuhosting.com/2011/12/13/december-2011-newsletter/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Welcome to the latest RimuHosting newsletter.</p>
<p>We will try to keep you posted on some of the our key news since the last newsletter back in April (<a href="http://blog.rimuhosting.com/2011/04/19/newsletter-2011-04/">http://blog.rimuhosting.com/2011/04/19/newsletter-2011-04/</a>)</p>
<h2>Launching 2 Parts Magic software development services</h2>
<p>RimuHosting's latest venture is a team of web application developers-for-hire. 2 Parts Magic (<a href="http://2partsmagic.com">http://2partsmagic.com</a>) builds made-to-order web application software.  So if you are launching a new web service, or need a billing or user registration, or want a dynamic, easy-to-use ordering system consider working with the 2 Parts Magic team.</p>
<p><span id="more-1768"></span></p>
<p>The 2 Parts Magic team are the same developers that have worked on RimuHosting ventures like <a href="http://pingability.com">http://pingability.com</a>; <a href="http://zonomi.com">http://zonomi.com</a> and <a href="http://inboxharmony.com">http://inboxharmony.com</a></p>
<p>The 2 Parts Magic team's software development toolbox includes server-side technologies like Java, JSP, MySQL, REST-ful APIs and on the client-side we use Javascript, Ajax, HTML5 and CSS3.  Their specialty is building easy-to-use, dynamic web pages.</p>
<p>If you are a web developer specializing more in design and static content, then the 2 Parts Magic team can help by building the more complex and dynamic parts of your client's website.</p>
<p>If you are about to be building a new web application or know someone who will be, then have them contact the 2 Parts Magic team at <a href="http://2partsmagic.com">http://2partsmagic.com</a></p>
<h2>One click webapp deployments with Standing Cloud</h2>
<p>RimuHosting recently teamed up with StandingCloud to enable website owners to perform browser-based, one click-click webapp deployments to cloud servers (running on RimuHosting hardware).</p>
<p>This lets you easily deploy content management systems (like Silverstripe and WordPress). Or to run a wide range of other software like bug, issue and project management webapps. Or eCommerce sites; discussion forums or even phone systems (like OpenVBX).</p>
<p>For details see <a href="../2011/11/07/standing-cloud/">http://blog.rimuhosting.com/2011/11/07/standing-cloud/ </a></p>
<h2>Discounted dedicated servers; Instant setups</h2>
<p>RimuHosting has launched a range of cut-price dedicated servers. Servers are individually speced and priced. The stock will vary from day to day. Current examples include host366 a USD 120/m Core 2 server with 4GB of memory; and host781 a USD 170/m E5506 Xeon with 6GB of memory and 250GB of RAID1 storage.</p>
<p>The servers are all available for instant setup. They all come with features such as regular snapshot backups; browser-based re-installs, restores, reboots and console access.</p>
<p>As always, the RimuHosting sysadmin team are more than happy to help install and configure the applications and services you need on the server.</p>
<p>For more information about the servers see <a href="http://blog.rimuhosting.com/2011/09/30/vps-on-dedicated-server-hosting/">http://blog.rimuhosting.com/2011/09/30/vps-on-dedicated-server-hosting/</a> and to order a server go to <a href="http://launchtimevps.com/order/vps-on-dedicated.jsp">http://launchtimevps.com/order/vps-on-dedicated.jsp</a></p>
<h2>Ever-improving VPS resources</h2>
<p>As our VPS host servers get more and more powerful we are able to offer better and better resources on our VPS plans.</p>
<p>If you have not checked out our VPS pricing recently see <a href="http://launchtimevps.com">http://launchtimevps.com</a> or <a href="http://launchtimevps.com/order/vpspricing.jsp">http://launchtimevps.com/order/vpspricing.jsp</a> .  It has never been a better time to ditch your shared web hosting and get setup with your very own server.</p>
<p>If you already have a server with us then check every few months for a free upgrade at <a href="http://rimuhosting.com/cp/vps/upgrade.jsp ">http://rimuhosting.com/cp/vps/upgrade.jsp </a></p>
<h2>Quick news</h2>
<p>Our DNS API has been extended see: <a href="http://blog.rimuhosting.com/2011/08/16/wildcard-dns-queries/">http://blog.rimuhosting.com/2011/08/16/wildcard-dns-queries/</a></p>
<p>Our new <a href="http://25mail.st">http://25mail.st</a> managed email service is now providing email services for over 200 users.  Make the most of your own domain name and come join them using <a href="http://25mail.st">http://25mail.st</a> as your new email provider.</p>
<p>Our <a href="http://launchtimevps.com">http://launchtimevps.com</a> servers now have new Linux 3.0 kernels available, as well as recent distros like Centos 6 and Ubuntu 11.10</p>
<p>We have pushed out some great new features to our <a href="http://inboxharmony.com">http://inboxharmony.com</a> collaborative email client. Managing multiple emails and attachments has just gotten easier. If your business provides support via email then you need to check out <a href="http://inboxharmony.com">http://inboxharmony.com</a></p>
<p>And that is our news for this newsletter.</p>
<h2>Tell your friends how we can remove the hassle from their hosting</h2>
<p>If you enjoy your RimuHosting hosting service then please think of a friend or colleague that could do with their having their own Linux server then let them know about us!  We appreciate the referrals.</p>
<p>And if you happen to blog about us then remember you can always use our affiliate referral scheme to earn yourself hosting credits, see <a href="http://rimuhosting.com/affiliate/about">http://rimuhosting.com/affiliate/about </a></p>
<p>2011 has been a busy year for us.  We know many of our customers are struggling in the current economy.  So we are constantly trying to make it easier and more hassle free to host and run their website.  As well as always striving to provide great value to our customers.  If you can think of any way we can help provide you a better service, please let us know.</p>
<p>Our best wishes to you for a prosperous 2012 from the team at RimuHosting!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rimuhosting.com/2011/12/13/december-2011-newsletter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Silverstripe CMS on Standing Cloud webinar Tue Dec 13 1300 PST</title>
		<link>http://blog.rimuhosting.com/2011/12/13/silverstripe-cms-on-standing-cloud-webinar-tue-dec-13-1300-pst/</link>
		<comments>http://blog.rimuhosting.com/2011/12/13/silverstripe-cms-on-standing-cloud-webinar-tue-dec-13-1300-pst/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 21:57:19 +0000</pubDate>
		<dc:creator>Peter Bryant</dc:creator>
				<category><![CDATA[Rimuhosting]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[standingcloud]]></category>

		<guid isPermaLink="false">http://blog.rimuhosting.com/?p=1762</guid>
		<description><![CDATA[Join Standing Cloud and Peter from RimuHosting at Tue, Dec 13, 2011 1:00 PM - 2:00 PM PST for a webinar that demonstrates Standing Clouds one-click app deployment and management (to RimuHosting servers). We will be giving a demo using &#8230; <a href="http://blog.rimuhosting.com/2011/12/13/silverstripe-cms-on-standing-cloud-webinar-tue-dec-13-1300-pst/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Join Standing Cloud and Peter from RimuHosting at Tue, Dec 13, 2011 1:00 PM - 2:00 PM PST for a webinar that demonstrates Standing Clouds one-click app deployment and management (to RimuHosting servers).</p>
<p>We will be giving a demo using Silverstripe as our target app.  And the webinar will be followed by a Q&amp;A session.</p>
<p>You can reserve your spot in the webinar now at:</p>
<p><a href="https://www3.gotomeeting.com/register/787963142">https://www3.gotomeeting.com/register/787963142</a></p>
<p>See you at the webinar!</p>
<p>For more information about the Standing Cloud/RimuHosting integration see <a href="http://blog.rimuhosting.com/2011/11/07/standing-cloud/">http://blog.rimuhosting.com/2011/11/07/standing-cloud/ </a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rimuhosting.com/2011/12/13/silverstripe-cms-on-standing-cloud-webinar-tue-dec-13-1300-pst/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing broken permissions or ownership</title>
		<link>http://blog.rimuhosting.com/2011/11/15/fixing-broken-permissions-or-ownership/</link>
		<comments>http://blog.rimuhosting.com/2011/11/15/fixing-broken-permissions-or-ownership/#comments</comments>
		<pubDate>Mon, 14 Nov 2011 23:15:30 +0000</pubDate>
		<dc:creator>Liz Quilty</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[Rimuhosting]]></category>

		<guid isPermaLink="false">http://blog.rimuhosting.com/?p=1751</guid>
		<description><![CDATA[People are not perfect, not even the staff here. Perfection is not required to be a sysadmin we found, just some good shell scripts to fix things when you break them accidentally. One of the more common accidents are chown &#8230; <a href="http://blog.rimuhosting.com/2011/11/15/fixing-broken-permissions-or-ownership/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>People are not perfect, not even the staff here. Perfection is not required to be a sysadmin we found, just some good shell scripts to fix things when you break them accidentally.</p>
<p>One of the more common accidents are chown or chmod ones, especially the ones done as root from / . Its easy to accidentally chown someuser:someuser * and forget you are not /home/someuser but in /, and equally easy to find / -type f -exec xargs chmod 600 or similar (instead of find ./  ... ) . Here's how we fix it.</p>
<p><span id="more-1751"></span></p>
<p>Since most of our customers run backups (its automated ever week unless you requested disabled them ), you can fix it fairly easily. In fact this will also work if you mounted using sshfs on another server also.</p>
<p>So, first mount the old backup image with (see <a href="http://youtu.be/TycDqUQw-mE" target="_blank">http://youtu.be/TycDqUQw-mE</a> ) the right permissions, somewhere like /mnt is good . If you do not have backups, but another server same distro and similar files, then use sshfs and mount it.</p>
<p>Now put this in a file on the server; sh fix_perms.sh , or copy paste everything other than the first line into your terminal (but make sure you change the first couple config lines to match your mounts)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #007800;">ORIGIN</span>=<span style="color: #ff0000;">&quot;/mnt&quot;</span>
<span style="color: #007800;">ROOTFS</span>=<span style="color: #ff0000;">&quot;/&quot;</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #800000;">${ORIGIN}</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> s<span style="color: #000000; font-weight: bold;">@</span><span style="color: #ff0000;">&quot;<span style="color: #007800;">${ORIGIN}</span>&quot;</span><span style="color: #000000; font-weight: bold;">@@</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">read</span> FFILE 
<span style="color: #000000; font-weight: bold;">do</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> working with <span style="color: #ff0000;">&quot;<span style="color: #007800;">${ORIGIN}</span><span style="color: #007800;">${FFILE}</span>&quot;</span>
<span style="color: #007800;">UIDGID</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">stat</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;%u:%g&quot;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${ORIGIN}</span><span style="color: #007800;">${FFILE}</span>&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">CHMOD</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">stat</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;%a&quot;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${ORIGIN}</span><span style="color: #007800;">${FFILE}</span>&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #800000;">${UIDGID}</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${ROOTFS}</span><span style="color: #007800;">${FFILE}</span>&quot;</span>
<span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #800000;">${CHMOD}</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${ROOTFS}</span><span style="color: #007800;">${FFILE}</span>&quot;</span>
<span style="color: #000000; font-weight: bold;">done</span></pre></div></div>

<p>If you want to list the permissions on one server, then copy them to the other without sshfs you can modify it to something similar to this. This should be run on the GOOD server that does NOT need fixing . It outputs the commands to a file that gets copied to the broken one to have run on it.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #007800;">ORIGIN</span>=<span style="color: #ff0000;">&quot;/mnt&quot;</span>
<span style="color: #007800;">ROOTFS</span>=<span style="color: #ff0000;">&quot;/&quot;</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> filepermfix.sh
<span style="color: #c20cb9; font-weight: bold;">touch</span> filepermfix.sh
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">find</span> <span style="color: #800000;">${ORIGIN}</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> s<span style="color: #000000; font-weight: bold;">@</span><span style="color: #ff0000;">&quot;<span style="color: #007800;">${ORIGIN}</span>&quot;</span><span style="color: #000000; font-weight: bold;">@@</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">read</span> FFILE 
<span style="color: #000000; font-weight: bold;">do</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> working with <span style="color: #ff0000;">&quot;<span style="color: #007800;">${ORIGIN}</span><span style="color: #007800;">${FFILE}</span>&quot;</span>
<span style="color: #007800;">UIDGID</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">stat</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;%u:%g&quot;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${ORIGIN}</span><span style="color: #007800;">${FFILE}</span>&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">CHMOD</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">stat</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;%a&quot;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${ORIGIN}</span><span style="color: #007800;">${FFILE}</span>&quot;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #c20cb9; font-weight: bold;">chown</span> <span style="color: #800000;">${UIDGID}</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${ROOTFS}</span><span style="color: #007800;">${FFILE}</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span>filepermfix.sh
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #800000;">${CHMOD}</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${ROOTFS}</span><span style="color: #007800;">${FFILE}</span>&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span>filepermfix.sh
<span style="color: #000000; font-weight: bold;">done</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> copy off the filepermfix.sh and run it on the remote machine <span style="color: #ff0000;">'sh filepermfix.sh'</span></pre></div></div>

<p>This should also work if you just wanted to clone permissions on branches of code or other similar things for any reason.</p>
<p>If you run Debian and broke packages you can use the following to reinstall them<br />
apt-get install --reinstall --force -y $(dpkg --get-selections | grep install | grep -v deinstall )</p>
<p>Centos has a fix permissions options you can run on all installed software like this<br />
for i in `rpm -qa`;do rpm --setperms $i;done</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rimuhosting.com/2011/11/15/fixing-broken-permissions-or-ownership/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using swap within a VPS</title>
		<link>http://blog.rimuhosting.com/2011/11/11/using-swap-within-a-vps/</link>
		<comments>http://blog.rimuhosting.com/2011/11/11/using-swap-within-a-vps/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 01:19:23 +0000</pubDate>
		<dc:creator>Liz Quilty</dc:creator>
				<category><![CDATA[Rimuhosting]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[lvm]]></category>
		<category><![CDATA[partition]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[swap]]></category>
		<category><![CDATA[swapfile]]></category>
		<category><![CDATA[vps]]></category>

		<guid isPermaLink="false">http://blog.rimuhosting.com/?p=1740</guid>
		<description><![CDATA[In a virtual environment, disk io can be about the most expensive operation there is. And swap (virtual memory) depends on that heavily. By default we configure a small swap partition for each VPS server so conditions where memory is &#8230; <a href="http://blog.rimuhosting.com/2011/11/11/using-swap-within-a-vps/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>In a virtual environment, disk io can be about the most expensive operation there is. And swap (virtual memory) depends on that heavily. By default we configure a small swap partition for each VPS server so conditions where memory is exhausted can be detected more consistently, <span id="more-1740"></span>but that should not be used as a RAM substitute.</p>
<p>Swapfiles (manually created file based swap) are not recommended on our VPS servers since they often degrade the performance of your service when actively used.</p>
<p>Our hosts are all monitored in case load on different subsystems are causing issues. And we might send you an alert if your swap space is being used a lot since that often indicates problems with the VPS. In some cases we might limit that usage to prevent other customers on the same host from being affected.</p>
<p>If your server is consistently using swap space, and you have tuned resource usage by your services as much as possible, we highly recommend adding more RAM. You can do that at any time via our handy <a title="VPS resouce change tool" href="https://rimuhosting.com/cp/vps/resourcechange.jsp" target="_blank">resource change tool</a></p>
<p>To check if your server is swapping you can use the <a title="nixCraft: Check Memory Usage" href="http://www.cyberciti.biz/faq/linux-check-memory-usage/"><em>free</em></a> command. In the following example you can see that a small amount of swap space has been used on the third line, which is ok in this case.</p>
<pre>~$ free -m
             total       used       free     shared    buffers     cached
Mem:          3962       3694        267          0        297       1442
-/+ buffers/cache:       1953       2008
Swap:          128          4        124</pre>
<p>One way to help the VPS be less likely to prefer swap space is to tweak the <em>swappiness</em> kernel parameter. As the root user you can temporarily set that to a value between 0 and 100 with the following command (lower values means less likely to swap, default is 60):</p>
<pre>echo 30 &gt; /proc/sys/vm/swappiness</pre>
<p>You can make that permanent by adding the parameter to the end of the /etc/sysctl.conf like the following:</p>
<pre>vm.swappiness = 30</pre>
<p>Any changes to the sysctl.conf file can be loaded by rebooting your VPS, or more nicely with:</p>
<pre>sysctl -f /etc/sysctl.conf</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.rimuhosting.com/2011/11/11/using-swap-within-a-vps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easy application hosting using StandingCloud and RimuHosting</title>
		<link>http://blog.rimuhosting.com/2011/11/07/standing-cloud/</link>
		<comments>http://blog.rimuhosting.com/2011/11/07/standing-cloud/#comments</comments>
		<pubDate>Sun, 06 Nov 2011 21:53:40 +0000</pubDate>
		<dc:creator>Peter Bryant</dc:creator>
				<category><![CDATA[Rimuhosting]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[standingcloud]]></category>
		<category><![CDATA[webapp]]></category>

		<guid isPermaLink="false">http://blog.rimuhosting.com/?p=1725</guid>
		<description><![CDATA[Imagine being able to configure a server, pre-setup and ready to run your favorite webapp, with a push of a button.  Need a bug tracking system?  Just hit a button, and wait a minute, then log into your own Bugzilla &#8230; <a href="http://blog.rimuhosting.com/2011/11/07/standing-cloud/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.rimuhosting.com/2011/11/07/standing-cloud/sc-logo/" rel="attachment wp-att-1729"><img class="alignleft size-full wp-image-1729" title="sc-logo" src="http://blog.rimuhosting.com/wp-content/uploads/2011/11/sc-logo.png" alt="" width="309" height="69" /></a>Imagine being able to configure a server, pre-setup and ready to run your favorite webapp, with a push of a button.  Need a bug tracking system?  Just hit a button, and wait a minute, then log into your own Bugzilla app.  No sysadmin skills required.  No wondering about best practices or security upgrades.</p>
<p>StandingCloud are making this possible.  They currently have 101 web applications that can be deployed and managed on a cloud server with a push of a button.  They automate the sysadmin tasks required to install and manage these applications, and use 3rd party cloud hosts to provide the hosting platform.</p>
<p><span id="more-1725"></span>StandingCloud lists the available webapps at <a href="http://www.standingcloud.com/network">http://www.standingcloud.com/network</a> and they include Bugzilla, Coppermine, DokuWiki, Drupal, GeoServer, Joomla, Mambo, Moodle, OpenVBX, osCommerce, osTicket, Redmine, Silverstripe, WordPress and Alfresco among others.</p>
<p><a href="http://blog.rimuhosting.com/2011/11/07/standing-cloud/rh-sc-applist/" rel="attachment wp-att-1726"><img class="alignleft size-full wp-image-1726" title="rh-sc-applist" src="http://blog.rimuhosting.com/wp-content/uploads/2011/11/rh-sc-applist.png" alt="" width="983" height="362" /></a></p>
<p>As of 1 November RimuHosting is now one of the supported cloud hosting providers.</p>
<p>StandingCloud can operate a couple of ways.  They can either provide the hosting (using RimuHosting) and charge you directly for the hosting service.  Or you can plug in your RimuHosting API key and then there is no StandingCloud charge for the hosting part of the service (the server is billed directly on your RimuHosting account).  In the latter case StandingCloud will charge a lower monthly fee for providing the application management.</p>
<p>It is pretty simple to plug in your RimuHosting API keys:</p>
<p><a href="http://blog.rimuhosting.com/2011/11/07/standing-cloud/rh-sc-add-cloud-credentials/" rel="attachment wp-att-1727"><img class="alignleft size-full wp-image-1727" title="rh-sc-add-cloud-credentials" src="http://blog.rimuhosting.com/wp-content/uploads/2011/11/rh-sc-add-cloud-credentials.png" alt="" width="1243" height="780" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>And after you have created an instance of a hosted application it appears in your StandingCloud control panel:</p>
<p><a href="http://blog.rimuhosting.com/2011/11/07/standing-cloud/rh-sc-application-list/" rel="attachment wp-att-1728"><img class="alignleft size-full wp-image-1728" title="rh-sc-application-list" src="http://blog.rimuhosting.com/wp-content/uploads/2011/11/rh-sc-application-list.png" alt="" width="1243" height="780" /></a></p>
<p>&nbsp;</p>
<p>If you happen to be an open source- or commercial application-developer then StandingCloud may be a great way for you to offer your users an easy installation and hosting option.</p>
<p>If you would like your users to be hosted on a RimuHosting server then just send them through to our StandingCloud landing URL at <a href="http://www.standingcloud.com/poweredby/rimuhosting">http://www.standingcloud.com/poweredby/rimuhosting</a></p>
<p>StandingCloud offer free trials so it is easy to 'kick the tyres' and get a feel for how it works.  If you like what you see, do let us know: the good folks at StandingCloud are looking to feature a RimuHosting user in an upcoming web article.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rimuhosting.com/2011/11/07/standing-cloud/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Checking a potentially hacked machine and reinstalling packages when you break things</title>
		<link>http://blog.rimuhosting.com/2011/10/12/checking-a-potentially-hacked-machine-and-reinstalling-packages-when-you-break-things/</link>
		<comments>http://blog.rimuhosting.com/2011/10/12/checking-a-potentially-hacked-machine-and-reinstalling-packages-when-you-break-things/#comments</comments>
		<pubDate>Wed, 12 Oct 2011 02:46:58 +0000</pubDate>
		<dc:creator>Liz Quilty</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://blog.rimuhosting.com/?p=1713</guid>
		<description><![CDATA[Sometimes you may see something odd go past in the logs, on the screen, or something might just seem a bit 'off' somehow. Its a good idea when this happens to just double check that things are as they should &#8230; <a href="http://blog.rimuhosting.com/2011/10/12/checking-a-potentially-hacked-machine-and-reinstalling-packages-when-you-break-things/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Sometimes you may see something odd go past in the logs, on the screen, or something might just seem a bit 'off' somehow. Its a good idea when this happens to just double check that things are as they should be, verify packages, binaries, check logs etc</p>
<p>Here are a few things i find helpful when doing this</p>
<p><span id="more-1713"></span>Install something like rkhunter or chkrootkit, run it regularly and check the output. These tools are excellent at helping detect oddities that should not be there. I find rkhunter better in that it emails me regularly (every night) and lets me know if there are changes or things happening.</p>
<p>Sometimes the server is not mine (ok, a lot of the time since i work on peoples servers), so these things may not be installed already, and i want to check packages installed are the correct ones, and have not been replaced by a hacker, or some other odd process. I use something like this</p>
<p>For Redhat based systems (Fedora, Centos etc)</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> yum-verify
yum verify-all</pre></div></div>

<p>For Debian based systems its a little harder, but scriptable</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">-l</span> \<span style="color: #000000; font-weight: bold;">*|</span><span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">read</span> s n rest; <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$s</span>&quot;</span> == <span style="color: #ff0000;">&quot;ii&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span> <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$n</span>;
<span style="color: #000000; font-weight: bold;">fi</span>; <span style="color: #000000; font-weight: bold;">done</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt; ~<span style="color: #000000; font-weight: bold;">/</span>tmp.txt
<span style="color: #000000; font-weight: bold;">for</span> f <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">cat</span> ~<span style="color: #000000; font-weight: bold;">/</span>tmp.txt<span style="color: #000000; font-weight: bold;">`</span>; <span style="color: #000000; font-weight: bold;">do</span> debsums <span style="color: #660033;">-s</span> <span style="color: #660033;">-a</span> <span style="color: #007800;">$f</span>; <span style="color: #000000; font-weight: bold;">done</span></pre></div></div>

<p>These commands will take some time, and use a fair amount of CPU and disk IO when you run them, so be aware they may slow the VPS/Server down a little.<br />
Also, be aware you may have a fair few false positives, usually on configurations which have changed from the default packages</p>
<p>IF a package appears to be tampered with you can reinstall it like this<br />
Centos/RedHat/Fedora</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum reinstall packagename</pre></div></div>

<p>Or reinstall all packages</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum reinstall $<span style="color: #7a0874; font-weight: bold;">&#40;</span>yum list installed <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $1}'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>Debian/Ubuntu</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #660033;">--reinstall</span> packagename</pre></div></div>

<p>or reinstall all packages</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #660033;">--reinstall</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">dpkg</span> <span style="color: #660033;">--get-selections</span> <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-v</span> deinstall<span style="color: #7a0874; font-weight: bold;">&#41;</span></pre></div></div>

<p>Possibly not such a great idea to reinstall all packages, if its that bad you really should reinstall the server from scratch. Ideally if you have been root exploited in any way you should reinstall from scratch as nothing will be safe (especially your package manager or SSH daemon). The main reason i put these commands here is because they are handy if you break things also <img src='http://blog.rimuhosting.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Lastly, it pays to regularly run netstat to check for strange open ports or connections, ps for odd running things, and of course all your logs for things (especially apache error log).</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.rimuhosting.com/2011/10/12/checking-a-potentially-hacked-machine-and-reinstalling-packages-when-you-break-things/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

