<?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>Michael Helm&#039;s Technology Blog &#187; linux</title>
	<atom:link href="http://www.ihelm.org.uk/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ihelm.org.uk</link>
	<description>Linux Servers, Cpanel and Mysql along with my own tech thoughts</description>
	<lastBuildDate>Thu, 29 Sep 2011 22:19:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Password protecting a directory with .htaccess and wordpress</title>
		<link>http://www.ihelm.org.uk/2011/09/password-protecting-a-directory-with-htaccess-and-wordpress/</link>
		<comments>http://www.ihelm.org.uk/2011/09/password-protecting-a-directory-with-htaccess-and-wordpress/#comments</comments>
		<pubDate>Thu, 29 Sep 2011 22:19:07 +0000</pubDate>
		<dc:creator>mhelm</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.ihelm.org.uk/?p=198</guid>
		<description><![CDATA[I&#8217;ve come across this problem a number of times, of course each time I think &#8220;this will be fixed next time&#8221;.  Unfortunately it&#8217;s not the case.  What&#8217;s the problem then? You have a directory that you want to password protect, lets call it &#8220;secrets&#8221;.  It resides in /home/mysite/public_html/secrets/ on the server.  Now fortunately you are [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve come across this problem a number of times, of course each time I think &#8220;this will be fixed next time&#8221;.  Unfortunately it&#8217;s not the case.  What&#8217;s the problem then?</p>
<p>You have a directory that you want to password protect, lets call it &#8220;secrets&#8221;.  It resides in /home/mysite/public_html/secrets/ on the server.  Now fortunately you are using a hosting control panel like cpanel and you&#8217;ve password protected directories before (if not then have a hunt on this site or on google!).</p>
<p>Before you activate the protection you can view the contents fine, so you activate protection &#8211; driven by a .htaccess file&#8230; and then rather than being asked for your username and password, you get a 404 or a 403 message from wordpress &#8220;Sorry the page you are looking for cannot be found&#8221;.</p>
<p>Intrepid system administrators hunt through error logs, and sure enough the access log is recording a 404&#8230; however the error log is recording something different.</p>
<pre>Permission denied: /home/mysite/public_html/secret/.<strong>htaccess</strong> pcfg_openfile: unable to check <strong>htaccess</strong> file, ensure it is readable</pre>
<p>This error message has had a number of solutions in the past, including the infamous &#8220;reinstall frontpage extensions&#8221;, except these are long gone &#8211; not supported and never will be again, please don&#8217;t go installing them just to get past this problem! &#8211; It will end in tears.</p>
<p>Instead you just need to add a couple of lines to the wordpress .htaccess file in the root of your site (e.g. /home/mysite/public_html/.htacess). Go to the file and just before the main WordPress part</p>
<p>#BEGIN wordpress &#8211; add the following</p>
<pre>ErrorDocument 401 /%{REQUEST_URI}/errors.html
ErrorDocument 403 /%{REQUEST_URI}/errors.html</pre>
<p>This should set the site to working, now why does this work?</p>
<p>Simply put wordpress is often run with a pretty url mode (permalinks) where the addresses for posts are made to look more pretty.  When you request your secret directory the server tries to access it, looks at the .htaccess file and promptly tries to do a redirect, this invariably ends up at a page wordpress cannot access &#8211; this doesn&#8217;t happen without the .htaccess as wordpress allows access to existing real files, but the htaccess security says the file doesn&#8217;t exist until the password is entered and so it intercepted.</p>
<p>It&#8217;s all a bit confusing, however adding these lines essentially means wordpress can get out of the way when those errors occur, 401 and 403 are authorisation required or failure codes, so wordpress will ignore and the htaccess can safely challenge your.</p>
<p>&nbsp;</p>
<p>Hopefully this will help if you come across this problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ihelm.org.uk/2011/09/password-protecting-a-directory-with-htaccess-and-wordpress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to enable mod_deflate for all sites (entire server) in cPanel/WHM</title>
		<link>http://www.ihelm.org.uk/2011/02/how-to-enable-mod_deflate-for-all-sites-entire-server-in-cpanelwhm/</link>
		<comments>http://www.ihelm.org.uk/2011/02/how-to-enable-mod_deflate-for-all-sites-entire-server-in-cpanelwhm/#comments</comments>
		<pubDate>Mon, 28 Feb 2011 22:17:35 +0000</pubDate>
		<dc:creator>mhelm</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[deflate]]></category>
		<category><![CDATA[gzip]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mod_deflate]]></category>

		<guid isPermaLink="false">http://www.ihelm.org.uk/?p=175</guid>
		<description><![CDATA[Mod Deflate is essential nowadays for sites, it speeds up the transfer of html pages &#38; other files (such as stylesheets) by compressing them first. Now that servers today are so powerful there is very little reason not to use this, especailly since so many &#8220;speed up&#8221; tests will not pass without this being enabled. [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Mod Deflate is essential nowadays for sites, it speeds up the transfer of html pages &amp; other files (such as stylesheets) by compressing them first. Now that servers today are so powerful there is very little reason not to use this, especailly since so many &#8220;speed up&#8221; tests will not pass without this being enabled.</p>
<p>However whilst you can enable it site-by-site, however for shared hosts with many sites this is not the best way, but you can enable it globally.</p>
<ol>
<li>First ensure it&#8217;s installed, you can do this by using EasyApache and ensuring that mod_deflate is selected (it may be already),once apache has been compiled deflate is now enabled.</li>
<li>If you want to enable the functionality site-by-site then in each sites control panel a new option is now available.  under Software/Services the user can now choose to optimise their website, this essentially allows deflate to be turned on and off.</li>
<li>If you want to do this globally (why not it cuts bandwidth and keeps your users happier) then  simply follow the following:</li>
</ol>
<ul>
<li>Under <strong>Services Configuration / Apache Configuration / Include Editor / Post Virtual Include</strong></li>
<li>Select <strong>All Versions </strong> (no point in not doing all versions)</li>
<li>Paste the following into the file and then click Update.</li>
</ul>
</blockquote>
<blockquote>
<pre>&lt;IfModule mod_deflate.c&gt;
SetOutputFilter DEFLATE
&lt;IfModule mod_setenvif.c&gt;
# Don’t compress images its a bit pointless
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
&lt;/IfModule&gt;
&lt;IfModule mod_headers.c&gt;
# Make sure proxies don’t deliver the wrong content
Header append Vary User-Agent env=!dont-vary
&lt;/IfModule&gt;
#maximum compression - why not we have spare cpu
DeflateCompressionLevel 9
&lt;/IfModule&gt;</pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.ihelm.org.uk/2011/02/how-to-enable-mod_deflate-for-all-sites-entire-server-in-cpanelwhm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Coping files between Linux servers &#8211; using SCP</title>
		<link>http://www.ihelm.org.uk/2011/02/coping-files-between-linux-servers-using-scp/</link>
		<comments>http://www.ihelm.org.uk/2011/02/coping-files-between-linux-servers-using-scp/#comments</comments>
		<pubDate>Sat, 26 Feb 2011 22:00:54 +0000</pubDate>
		<dc:creator>mhelm</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[files]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[scp]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.ihelm.org.uk/?p=171</guid>
		<description><![CDATA[For a few years now I keep catching myself transferring files between Linux servers, in a silly way&#8230; What I mean is using somthing like ftp, or copying to my desktop and then up to the other server &#8211; all hassle (and in the case of ftp &#8211; inherently insecure).  Why do I do this? [...]]]></description>
			<content:encoded><![CDATA[<p>For a few years now I keep catching myself transferring files between Linux servers, in a silly way&#8230;</p>
<p>What I mean is using somthing like ftp, or copying to my desktop and then up to the other server &#8211; all hassle (and in the case of ftp &#8211; inherently insecure).  Why do I do this?  Well not because there&#8217;s no alternative, but because I can never easily remember how to do it the &#8220;proper&#8221; way.</p>
<p>So how to do it &#8211; simply use SCP, this copies a file using SSH and so is more secure (we trust SSH right?), even better I&#8217;ve never had a server which doesn&#8217;t support it out of the box.</p>
<p>Right so how to transfer one file:</p>
<blockquote>
<pre>scp /sourcedir/filename.extension user@serverip:/destinationdir/</pre>
</blockquote>
<p>It&#8217;s quite simple really &#8211; if you run SSH on an abnormal port (you really should it cuts down the attacks) then you can specify the port like this:</p>
<blockquote>
<pre>scp -P 2100 /sourcedir/filename.extension user@serverip:/destinationdir/</pre>
</blockquote>
<p>Also, if you want to transfer multiple files (e.g. all the images in a directory) then you can just use wildcards &#8211; like below:</p>
<blockquote>
<pre>scp -P 2100 /sourcedir/*.extension user@serverip:/destinationdir/
</pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.ihelm.org.uk/2011/02/coping-files-between-linux-servers-using-scp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Webmail not working in Cpanel</title>
		<link>http://www.ihelm.org.uk/2010/05/webmail-not-working-in-cpanel/</link>
		<comments>http://www.ihelm.org.uk/2010/05/webmail-not-working-in-cpanel/#comments</comments>
		<pubDate>Mon, 10 May 2010 20:59:04 +0000</pubDate>
		<dc:creator>mhelm</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[CSF]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[servers]]></category>

		<guid isPermaLink="false">http://www.ihelm.org.uk/?p=130</guid>
		<description><![CDATA[Had a problem earlier this week, webmail couldn't always send e-mail.  It was coming back with the following error:

SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out.]]></description>
			<content:encoded><![CDATA[<p>Had a problem earlier this week, webmail couldn&#8217;t always send e-mail.  It was coming back with the following error:</p>
<p>SMTP Error: SMTP error: Connection failed: Failed to connect socket: Connection timed out.</p>
<p>After reading a few things  I turned on the SMTP tweak..  things appeared to work for a few hours, then it started failing again.</p>
<p>Searching online said to trying telnet on the command line &#8211; so did that, connected to port 25 &#8211; all fine&#8230; hmm odd &#8211; tried webmail again &#8211; failed&#8230;..</p>
<p>After a more indepth search I found a forum which gave me a hint &#8211; apparently other people have had the same problem when using the firewall for cpanel &#8211; CSF.  CSF is definately one of the best firewalls around for linux and works really well with Cpanel &#8211; however every now and again the amount of options can cause you to miss out something obvious:</p>
<p># If SMTP_BLOCK is enabled but you want to allow local connections to port 25<br />
# on the server (e.g. for webmail or web scripts) then enable this option to<br />
# allow outgoing SMTP connections to 127.0.0.1<br />
SMTP_ALLOWLOCAL = 0</p>
<p>The SMTP_ALLOWLOCAL set to 0 stops webmail etc&#8230; not sure when this appeared (the server has been working fine for about 4 months) but change it to 1 &#8211; restart CSF and there we go it&#8217;s working fine <img src='http://www.ihelm.org.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ihelm.org.uk/2010/05/webmail-not-working-in-cpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Can&#8217;t create or edit a file &#8211; Linux &#8211; but have diskspace?</title>
		<link>http://www.ihelm.org.uk/2010/05/cant-create-or-edit-a-file-linux-but-have-diskspace/</link>
		<comments>http://www.ihelm.org.uk/2010/05/cant-create-or-edit-a-file-linux-but-have-diskspace/#comments</comments>
		<pubDate>Tue, 04 May 2010 21:05:44 +0000</pubDate>
		<dc:creator>mhelm</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[disks]]></category>
		<category><![CDATA[inode]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[servers]]></category>

		<guid isPermaLink="false">http://www.ihelm.org.uk/?p=127</guid>
		<description><![CDATA[Have you ever had a linux server or desktop which all of a sudden couldn't create a file - running "df -h" shows you your disk partitions aren't full?

You've logged in as root to check - and yup you still can't write any files - even a "touch test.txt" fails with a message saying can't write file - disk or partition full?]]></description>
			<content:encoded><![CDATA[<p>Have you ever had a linux server or desktop which all of a sudden couldn&#8217;t create a file &#8211; running &#8220;df -h&#8221; shows you your disk partitions aren&#8217;t full?</p>
<p>You&#8217;ve logged in as root to check &#8211; and yup you still can&#8217;t write any files &#8211; even a &#8220;touch test.txt&#8221; fails with a message saying can&#8217;t write file &#8211; disk or partition full?</p>
<p>You could be out of inodes! Linux stores file address information in inodes &#8211; and if you have a lot of very small files (or quite an oddly setup filesystem) you could be out of inodes&#8230;</p>
<p>How do you find out though?</p>
<p>just type in</p>
<p>&#8220;df -i&#8221; &#8211; same as the normal diskfree space command except it tells you inodes, if you have none left (or very few) you may not be able to create a new file (or edit it if your editor creates temporary lockfiles).</p>
<p>In a future blog I&#8217;ll go through how to resize the number of inodes available (primarily aimed at your temporary dev/shm space as this can suffer from the inode problem if you allocate more to it from a small size &#8211; the number of inodes is not increased so you can run out).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ihelm.org.uk/2010/05/cant-create-or-edit-a-file-linux-but-have-diskspace/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux &#8211; Calculating Diskspace free</title>
		<link>http://www.ihelm.org.uk/2010/05/linux-calculating-diskspace-free/</link>
		<comments>http://www.ihelm.org.uk/2010/05/linux-calculating-diskspace-free/#comments</comments>
		<pubDate>Mon, 03 May 2010 21:29:37 +0000</pubDate>
		<dc:creator>mhelm</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[df]]></category>
		<category><![CDATA[diskspace]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[watch]]></category>

		<guid isPermaLink="false">http://www.ihelm.org.uk/?p=124</guid>
		<description><![CDATA[With linux servers a couple of things can take up disk-space unexpectedly. Log files is the usual culprit, but if your server is a rented one you might be stuck with a bit of a weird partition setup.

For some reason some hosts will give little storage to partitions which then get filled up unexpectedly.  ]]></description>
			<content:encoded><![CDATA[<p>With linux servers a couple of things can take up disk-space unexpectedly. Log files is the usual culprit, but if your server is a rented one you might be stuck with a bit of a weird partition setup.</p>
<p>For some reason some hosts will give little storage to partitions which then get filled up unexpectedly.</p>
<p>To find out how much space you have just use the following command.</p>
<p>df</p>
<p>- want to make it more readable?</p>
<p>Use df-h</p>
<p>Also if you want to see your diskspace changing over time the you can use the watch command. For example</p>
<p>watch -n 1 &#8220;df&#8221;</p>
<p>This will run the disk space command each second and you can view it&#8217;s output on the commandline &#8211; useful if you want to monitor some specific activity in real time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ihelm.org.uk/2010/05/linux-calculating-diskspace-free/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Re-mounting linux filesystems on the fly.</title>
		<link>http://www.ihelm.org.uk/2010/04/re-mounting-linux-filesystems-on-the-fly/</link>
		<comments>http://www.ihelm.org.uk/2010/04/re-mounting-linux-filesystems-on-the-fly/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 21:28:59 +0000</pubDate>
		<dc:creator>mhelm</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[partitions]]></category>
		<category><![CDATA[servers]]></category>
		<category><![CDATA[umount]]></category>

		<guid isPermaLink="false">http://www.ihelm.org.uk/?p=121</guid>
		<description><![CDATA[You can remount a linux system on the fly like this:-

umount tmpfs]]></description>
			<content:encoded><![CDATA[<p>You can remount a linux system on the fly like this:-</p>
<p>umount tmpfs</p>
<p>The above command will ask the OS to unmount the filesystem identified by tmpfs in the fstab file.</p>
<p>This may return an error if you are actively using it &#8211; i.e. you have an ssh session open and are in the filesystem or open files exist. &#8211; Exit any of these and try again <img src='http://www.ihelm.org.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>mount tmpfs</p>
<p>The above command will attempt to re-mount the drive.</p>
<p>When would you use this?  Normally if you have done some dynamic re-sizing of a partition  - for example the tmpfs partition &#8211; see post:</p>
<p><a href="http://www.ihelm.org.uk/2010/04/resizing-ram-disk-in-linux-devshm/">http://www.ihelm.org.uk/2010/04/resizing-ram-disk-in-linux-devshm/</a></p>
<p>for more info on how to do that.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ihelm.org.uk/2010/04/re-mounting-linux-filesystems-on-the-fly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resizing Ram disk in Linux (/dev/shm)</title>
		<link>http://www.ihelm.org.uk/2010/04/resizing-ram-disk-in-linux-devshm/</link>
		<comments>http://www.ihelm.org.uk/2010/04/resizing-ram-disk-in-linux-devshm/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 08:52:39 +0000</pubDate>
		<dc:creator>mhelm</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[fstab]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ram]]></category>
		<category><![CDATA[shm]]></category>

		<guid isPermaLink="false">http://www.ihelm.org.uk/?p=117</guid>
		<description><![CDATA[As many people know linux has a built in ramdisk - this is temporary memory and is very very fast (as it's in ram).  AS standard linux allocates 50% of your ram to this (don't worry if you don't use it linux uses all your ram anyway).

However sometimes you may decide the 50% is not enough (or is too much) ]]></description>
			<content:encoded><![CDATA[<p>As many people know linux has a built in ramdisk &#8211; this is temporary memory and is very very fast (as it&#8217;s in ram).  AS standard linux allocates 50% of your ram to this (don&#8217;t worry if you don&#8217;t use it linux uses all your ram anyway).</p>
<p>However sometimes you may decide the 50% is not enough (or is too much) &#8211; especially if the server is upgradeable you may decide you would want to manage the percentage.</p>
<p>Below is an example default entry from /etc/fstab</p>
<pre>tmpfs                           /dev/shm        tmpfs   defaults        0 0
</pre>
<p>This just creates the temporary system using default settings &#8211; nothing fancy &#8211; however if you want it to take 75%  of your ram (or any other percentage) just change it to the code below</p>
<p>- reboot (or remount) and your done.</p>
<pre>tmpfs                           /dev/shm                        tmpfs   size=75%                                0 0

How to unmount the tmpfs

umount tmpfs

To remount it with the new settings

mount tmpfs
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ihelm.org.uk/2010/04/resizing-ram-disk-in-linux-devshm/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Migrating Cpanel accounts to  new Cpanel Server &#8211; by command line.</title>
		<link>http://www.ihelm.org.uk/2010/03/migrating-cpanel-accounts-to-new-cpanel-server-by-command-line/</link>
		<comments>http://www.ihelm.org.uk/2010/03/migrating-cpanel-accounts-to-new-cpanel-server-by-command-line/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 21:26:46 +0000</pubDate>
		<dc:creator>mhelm</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[servers]]></category>

		<guid isPermaLink="false">http://www.ihelm.org.uk/?p=112</guid>
		<description><![CDATA[The Cpanel system has a feature to migrate accounts from another server - be it Cpanel or another webhosting panel - this often works, recently though I've had a problem with using it for Cpanel to Cpanel where it would connect but fail to transfer the backup file.]]></description>
			<content:encoded><![CDATA[<p>Cpanel is a good system for administrating a server with many sites on it, i&#8217;ve used ensim, webmin and a couple of others in years gone by (Plesk and parallels were disasters for me!).  However occasionally something that you think should work just doesn&#8217;t and for no obvious reason.</p>
<p>The Cpanel system has a feature to migrate accounts from another server &#8211; be it Cpanel or another webhosting panel &#8211; this often works, recently though I&#8217;ve had a problem with using it for Cpanel to Cpanel where it would connect but fail to transfer the backup file.</p>
<p>Fortunately it&#8217;s really easy to use the commandline with cpanel and you can do it manually (actually it&#8217;s easier than the wizard!)</p>
<p>On the server you are migrating from just type (while logged in as root!)</p>
<p><strong>/scripts/pkgacct <em><span style="text-decoration: underline;">username</span></em></strong></p>
<p>This will create a tar.gz in the /home directory on the server &#8211; just copy this to the new server (it could take a while &#8211; it has everything from the account you are copying).</p>
<p>On the destination server just type in</p>
<p><strong>/scripts/restorepkg </strong><em><span style="text-decoration: underline;"><strong>username</strong></span></em></p>
<p>This creates (or overwrites the account!) on the server &#8211; and your done!.  But what if you have a dedicated IP (due to SSL?)</p>
<p>Easy just use this instead</p>
<p><strong>/scripts/restorepkg &#8211;ip=y <em><span style="text-decoration: underline;">username</span></em></strong></p>
<p>This gives it the next free dedicated IP address (make sure you have one free!)</p>
<p>And that&#8217;s it &#8211; it is honestly easier than the wizard which requires you to add more info to establish the transfer link.</p>
<p>One thing to note is that you should ensure that the versions of cpanel are as near as you can get &#8211; otherwise it might fail or do things a little weird.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ihelm.org.uk/2010/03/migrating-cpanel-accounts-to-new-cpanel-server-by-command-line/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Exim Mail Server Commands</title>
		<link>http://www.ihelm.org.uk/2009/07/exim-mail-server-commands/</link>
		<comments>http://www.ihelm.org.uk/2009/07/exim-mail-server-commands/#comments</comments>
		<pubDate>Sun, 19 Jul 2009 20:18:47 +0000</pubDate>
		<dc:creator>mhelm</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[servers]]></category>

		<guid isPermaLink="false">http://www.ihelm.org.uk/?p=84</guid>
		<description><![CDATA[Those of you with Exim will sometimes needs to do some work on it &#8211; here&#8217;s a list of the commands which I find most useful: If you want to see what exim is doing right now : &#8220;exiwhat&#8221; if you think you have queue problems then you can print a countof messages in the [...]]]></description>
			<content:encoded><![CDATA[<p>Those of you with Exim will sometimes needs to do some work on it &#8211; here&#8217;s a list of the commands which I find most useful:</p>
<p>If you want to see what exim is doing right now :</p>
<p>&#8220;exiwhat&#8221;</p>
<p>if you think you have queue problems then you can print a countof messages in the queue this will often be quite high &#8211; so it&#8217;s worth running it a few times over a couple of hours to see if you have a queue problem:</p>
<p>&#8220;exim -bpc&#8221;</p>
<p>If you want more information about what is in the queue then the following command will give you the count, the colume, oldest, newest, domain to be sent to and total summaries.  The oldest and volume parts are often the most informative in this to help you see problem domains.</p>
<p>&#8220;exim -bp | exiqsumm&#8221;</p>
<p>Below are some commands to help you manage the queue &#8211; especially useful if you want to try to purge it or take action.</p>
<p>To tell exim to try to deliver things in the queue according to the rules for a queue run</p>
<p>&#8220;exim -q -v&#8221;</p>
<p>If you are blocked up with external mail you can tell exim to run the queue to deliver local mail only &#8211; this may help you get things such as notifications etc.. if they are delayed by other mail in the queue</p>
<p>&#8220;exim -ql -v&#8221;</p>
<p>If you have some problems with older mail (maybe spam related) &#8211; you can use the following to delete mail that over 7 days old (the time given is in seconds so just take one day 86400 and multiply it by 7)</p>
<p>&#8220;exiqgrep -o 604800 -i | xargs exim -Mrm&#8221;</p>
<p>There are many many other commands and other examples &#8211; some sites have longer lists, but these are all the commands I have needed (or variations thereof) for administrating my servers over the last 9 years.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ihelm.org.uk/2009/07/exim-mail-server-commands/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

