<?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>NickMattern.com &#187; Server Secrets</title>
	<atom:link href="http://www.nickmattern.com/category/server-secrets/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nickmattern.com</link>
	<description>Hosting, Virtualization, and Internet Marketing</description>
	<lastBuildDate>Fri, 24 Sep 2010 17:12:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Migrating from one Godaddy VPS to another and getting Plesk to play nicely</title>
		<link>http://www.nickmattern.com/migrating-from-one-godaddy-vps-to-another-and-getting-plesk-to-play-nicely/</link>
		<comments>http://www.nickmattern.com/migrating-from-one-godaddy-vps-to-another-and-getting-plesk-to-play-nicely/#comments</comments>
		<pubDate>Fri, 10 Jul 2009 14:46:55 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Hosting Basics]]></category>
		<category><![CDATA[Server Secrets]]></category>
		<category><![CDATA[Webmaster Tools]]></category>
		<category><![CDATA[failed to execute scout]]></category>
		<category><![CDATA[Godaddy Plesk Migration]]></category>
		<category><![CDATA[Godaddy SSH root]]></category>
		<category><![CDATA[Godaddy VPS migration]]></category>
		<category><![CDATA[Parallels VPS migration]]></category>
		<category><![CDATA[Plesk Migration]]></category>
		<category><![CDATA[The output on STDERR is sudo: sorry]]></category>
		<category><![CDATA[visudo godaddy]]></category>
		<category><![CDATA[you must have a tty to run sudo]]></category>

		<guid isPermaLink="false">http://www.nickmattern.com/?p=205</guid>
		<description><![CDATA[Here&#8217;s the situation: You have two godaddy Virtual Private Server (VPS) accounts (or any Plesk-based hosting VPS)  and you need to migrate client accounts and domains between them.  Only problem is Plesk is being a ...]]></description>
			<content:encoded><![CDATA[<p><strong>Here&#8217;s the situation:</strong> You have two godaddy Virtual Private Server (VPS) accounts (or any Plesk-based hosting VPS)  and you need to migrate client accounts and domains between them.  Only problem is Plesk is being a little bitch when it comes to the actual migration.</p>
<p>Here is the NORMAL process for doing a Plesk migration between servers (specifically at GoDaddy): [NOTE: This process seamlessly allows you to migrate user accounts, domains, databases, files, file permissions, the whole damn thing!]</p>
<ol>
<li>You backup EVERYTHING on the old server, including files and MYSQL databases.  (PHPMyAdmin is a good export tool if you don&#8217;t know how to back a database up via SSH.)</li>
<li>Go to the NEW server, click on the SERVER link on the left, and choose Migration Manager</li>
<li>Enter your OLD server&#8217;s IP address and the root password. If you do not have root access, you&#8217;ll want to get it, or at least have an account that has root level permissions.</li>
<li>Click on NEXT and follow the wizard as it takes you through the process of migrating user accounts and domains.</li>
</ol>
<p>Now here&#8217;s where things get tricky. On a normal VPS, you&#8217;d have root access. On a Godaddy (<strong><em>boo</em></strong>) VPS, they don&#8217;t allow you to log in as root (for FTP or SSH), so you have to use &#8220;su -&#8221; (Note the &#8216;-&#8217; sign) when you&#8217;re logged in as another user.</p>
<p>This is what typically shows up when you try to use the migration manager to transfer one Godaddy VPS to another:</p>
<blockquote>
<table border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="650">
<p class="codeComment">Cannot send scout to the remote host</p>
</td>
</tr>
</tbody>
</table>
<p>Failed to execute scout.<br />
The return code is 1<br />
The output on STDERR is<br />
sudo: sorry, you must have a tty to run sudo</p></blockquote>
<p>All this error means is that the user account you entered does not have sufficient permissions on the server to do the migration.  Normally you would simply use the root account and things would be peachy, but with Godaddy, they like to make it difficult.</p>
<p><strong>Here&#8217;s the solution.</strong> [NOTE: <em>This is technical and requires you to be damn careful else you'll really hose your old system up and TRUST ME, Godaddy DOES NOT offer support for VPS accounts beyond setting them up and tearing them down. [Everything you do is on your own shoulders..</em>]</p>
<ol>
<li>Using your normal user account, (not Plesk admin, but the user account you have for the server/SSH/FTP) SSH into your server.  If you don&#8217;t know what I&#8217;m talking about, download PUTTY.EXE and do the following: Enter the IP address of your server in the HOST NAME field, then make sure connection type is SSH.  Click on OPEN.  A black window should come up and you can enter your FTP username, then password, and you should be given a prompt.</li>
<li>Once you are logged into the Godaddy VPS server via SSH, you can type &#8216;SU -&#8217; [<em>no quotes</em>] and enter your password again. This will change the prompt to say root on the left hand side.  If you use the &#8216;-&#8217; it will give you access to the root PATH, which is necessary for the next step.</li>
<li>Type &#8216;visudo&#8217; and hit enter. This will take you to the edit screen of the SUDO security configuration.  Find the section that has the following:  &#8220;root   ALL=(ALL)    ALL&#8221;  and below that, add your username along with the ALL entries.   &#8220;username  ALL=(ALL)   ALL&#8221;   [NOTE: <em>To edit, move the insertion point to the space you wish to type, then start typing.   When finished, hit the colon key ":" and type W to write the file, then hit the colon key again and type 'quit'.</em>]</li>
<li>At this point your username should have the appropriate configuration.  Go back to the NEW server&#8217;s Migration Manager and start it fresh, this time using the user account, it&#8217;s password, and it&#8217;s password again for the SUDO password.</li>
</ol>
<p>That should take you through the entire Migration Manager wizard process and help you get your domains and client accounts transferred to the new server.</p>
<p>When you are finished with the migration, and if you plan on keeping the OLD server, be sure to remove the user entry from the sudo security config file using the process above.</p>
<img src="http://www.nickmattern.com/?ak_action=api_record_view&id=205&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.nickmattern.com/migrating-from-one-godaddy-vps-to-another-and-getting-plesk-to-play-nicely/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>WordPress Permalink Issues in IIS, Working Around Mod_ReWrite with an ISAPI Filter</title>
		<link>http://www.nickmattern.com/iis-mod_rewrite-permalink-wordpress/</link>
		<comments>http://www.nickmattern.com/iis-mod_rewrite-permalink-wordpress/#comments</comments>
		<pubDate>Tue, 07 Oct 2008 02:23:53 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Hosting Basics]]></category>
		<category><![CDATA[Server Secrets]]></category>
		<category><![CDATA[Webmaster Tools]]></category>
		<category><![CDATA[MOD_REWRITE IIS]]></category>
		<category><![CDATA[permalinks IIS]]></category>
		<category><![CDATA[permalinks MOD_REWRITE]]></category>
		<category><![CDATA[Wordpress permalinks IIS]]></category>
		<category><![CDATA[wordpress permalinks MOD_REWRITE IIS]]></category>

		<guid isPermaLink="false">http://www.nickmattern.com/?p=48</guid>
		<description><![CDATA[UPDATE: 10-07-08 :: I just received a comment from Bill Staples, a Microsoft Employee, who informs me that IIS7 indeed does support a URL rewrite, especially for WordPress.  Please see comments section below for URL.  ...]]></description>
			<content:encoded><![CDATA[<p>UPDATE: 10-07-08 :: I just received a comment from <a href="http://blogs.iis.net/bills">Bill Staples</a>, a Microsoft Employee, who informs me that IIS7 indeed does support a URL rewrite, especially for WordPress.  Please see comments section below for <a href="http://learn.iis.net/page.aspx/466/enabling-pretty-permalinks-in-wordpress/">URL</a>.  Thanks Bill for setting the record straight.  Perhaps now would be a good time for me to put the scotch bottle down and train up on Server 2008/IIS&#8230;</p>
<p>The information in this article will allow you to run WordPress permalinks on Windows Server 2000, 2003, or 2008 using IIS5, IIS6, or IIS7.</p>
<p>Ok, first of all there is no real MOD_REWRITE setting for IIS5 or IIS6.  That&#8217;s an Apache mod and though there are some ISAPI_MOD_REWRITE projects floating around out there, most of them do NOT do the exact same thing as MOD_REWRITE does and will not function in IIS as MOD_REWRITE does in APACHE.</p>
<p>For programs such as <a href="http://www.wordpress.org">WordPress</a> that normally are designed for Apache installations, you can install the following <a href="http://www.binaryfortress.com/wordpress-url-rewrite/">ISAPI filter</a> and all your Permalink problems go away.</p>
<p>First, what is a Permalink. A permalink is what WordPress uses to form the URL of your posts/pages into something more SEO friendly or human readable. (HINT: Get to Permalinks by logging into your WordPress Admin Panel your http://www.domain.com/wp-admin/  Click on SETTINGS, Permalinks.)</p>
<p>By default, a wordpress standard URL on Apache is formed as such: <code>http://www.nickmattern.com/2008/10/06/sample-post/</code><code>, </code>In IIS, the WordPress URL uses the index.php file to display your permalinks, ex. <code>http://shelbygirl.com/index.php/2008/10/06/sample-post/</code></p>
<p>Obviously the IIS URL doesn&#8217;t help the user remember your URL  What most users and search engines want to see is a descriptive URL.  www.domain.com/index.php?a=4423 is a LOT harder to remember than www.domain.com/AboutUs would be.</p>
<p>Format your Permalinks in the following manner: /%postname%/, making sure to begin each string with a /% and end each string with a %/.  If I wanted my URL to have the Year/Date/Postname, I&#8217;d format my Permalink string as such: /%year%/%monthnum%/%postname%/</p>
<p>Now back to why this matters for IIS.  First, Apache forms URLs without the need for index.php to be involved with the URL.  Be default, in IIS, your permalinks will use this format: <code>http://shelbygirl.com/index.php/2008/10/06/sample-post/ (Notice the index.php) whereas Apache will simply use </code><code>http://www.nickmattern.com/2008/10/06/sample-post/. </code>Now, according to numerous Google Blogs, the index.php shouldn&#8217;t really matter, and that&#8217;s mostly correct.  The problem you&#8217;ll find is your users not being able to remember the index.php, they&#8217;ll simply see the domain.com/postname, not the domain.com/index.php/postname.</p>
<p>By installing the filter listed above (You&#8217;ll need to have access to the IIS manager and your PHP.ini file) you can eliminate the need for the index.php to be included in any URLs that WordPress cranks out.  Be sure to back up your PHP.ini file before you change it and while you&#8217;re at it, make a backup of your IIS Site as well.</p>
<p>Once the filter is installed, restart IIS and change your permalink structure accordingly, then test out your WordPress content. If it doesn&#8217;t work, go back and reread the instructions.</p>
<img src="http://www.nickmattern.com/?ak_action=api_record_view&id=48&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.nickmattern.com/iis-mod_rewrite-permalink-wordpress/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

