<?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>Server Monkey &#187; Windows</title>
	<atom:link href="http://server-monkey.com/category/windows/feed/" rel="self" type="application/rss+xml" />
	<link>http://server-monkey.com</link>
	<description></description>
	<lastBuildDate>Sun, 30 Aug 2009 05:45:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>.htaccess to redirect domain to subfolder</title>
		<link>http://server-monkey.com/2009/08/15/htaccess-to-redirect-domain-to-subfolder/</link>
		<comments>http://server-monkey.com/2009/08/15/htaccess-to-redirect-domain-to-subfolder/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 22:47:06 +0000</pubDate>
		<dc:creator>Mark Muyskens</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://server-monkey.com/?p=74</guid>
		<description><![CDATA[Here&#8217;s a quick htaccess edit that will redirect your domain to a subfolder; RewriteEngine On Options +FollowSymlinks RewriteBase / RewriteCond %{HTTP_HOST} www.domainname [OR] RewriteCond %{HTTP_HOST} domainname RewriteCond %{REQUEST_URI} !subfolder/ RewriteRule ^(.*)$ subfolder/$1 [L]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a quick htaccess edit that will redirect your domain to a subfolder;</p>
<blockquote><p><strong>RewriteEngine On</strong></p>
<p><strong>Options +FollowSymlinks</strong></p>
<p><strong>RewriteBase /</strong></p>
<p><strong>RewriteCond %{HTTP_HOST} www.domainname [OR]</strong></p>
<p><strong>RewriteCond %{HTTP_HOST} domainname</strong></p>
<p><strong>RewriteCond %{REQUEST_URI} !subfolder/</strong></p>
<p><strong>RewriteRule ^(.*)$ subfolder/$1 [L]</strong></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://server-monkey.com/2009/08/15/htaccess-to-redirect-domain-to-subfolder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Keep your clocks in sync</title>
		<link>http://server-monkey.com/2009/08/10/keep-your-clocks-in-sync/</link>
		<comments>http://server-monkey.com/2009/08/10/keep-your-clocks-in-sync/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 10:13:32 +0000</pubDate>
		<dc:creator>Thor Erik</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Time]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[ntp]]></category>

		<guid isPermaLink="false">http://server-monkey.com/?p=59</guid>
		<description><![CDATA[An issue I&#8217;ve come across a lot is that clocks don&#8217;t stay correct for a long time&#8230; Now some smart heads thought up a way to fix that, it&#8217;s called NTP, Network Time Protocol. Setting it up is easy: on RHEL/Fedora/CentOS: centos ~ # yum install ntp on Debian and debian based distributions: debian ~ [...]]]></description>
			<content:encoded><![CDATA[<p>An issue I&#8217;ve come across a lot is that clocks don&#8217;t stay correct for a long time&#8230;</p>
<p>Now some smart heads thought up a way to fix that, it&#8217;s called NTP, Network Time Protocol.</p>
<p>Setting it up is easy:</p>
<p>on RHEL/Fedora/CentOS:</p>
<p>centos ~ # <em>yum install ntp</em></p>
<p>on Debian and debian based distributions:</p>
<p>debian ~ # <em>apt-get install ntp</em></p>
<p>(everything is root of course)</p>
<p>on debian you are done now, NTPD should be started, of course if you want to specify your own NTP server or NTP pool, you just edit /etc/ntp.conf</p>
<p>on RHEL it&#8217;s just a few more steps:</p>
<p><em>chkconfig ntpd on</em></p>
<p><em>ntpdate pool.ntp.org</em></p>
<p><em>/etc/init.d/ntpd start</em></p>
<p>and that should be it, please do know that if it&#8217;s a VPS forget about NTP, the system time is inherited from the host, unless you run it on a windows host(ex. Windows 2008 or in my debian server&#8217;s case, Windows 2008 R2 and using Hyper-V)</p>
<p>The error you get will be something like this:</p>
<p><em>ntpdate[18411]: step-systime: Operation not permitted</em></p>
<p>after trying to run <em>ntpdate pool.ntp.org</em></p>
<p>On Windows it&#8217;s all a hell lot easier(in gui that is)</p>
<p>Right click on the clock and choose Adjust time and date</p>
<p>go to the Internet time tab.</p>
<p>then click the button saying Change settings.</p>
<p>make sure the checkbox is checked, and if you prefer a different ntp server, change it from time.microsoft.com (but it&#8217;s good as well, NTP takes latency into account when setting clock)</p>
<p>Windows does not support ntp pools, so please define a proper NTP server.</p>
]]></content:encoded>
			<wfw:commentRss>http://server-monkey.com/2009/08/10/keep-your-clocks-in-sync/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>.htaccess Generator</title>
		<link>http://server-monkey.com/2009/07/26/htaccess-generator/</link>
		<comments>http://server-monkey.com/2009/07/26/htaccess-generator/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 03:29:22 +0000</pubDate>
		<dc:creator>Mark Muyskens</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://server-monkey.com/?p=15</guid>
		<description><![CDATA[Simple script I made the other day that will generate the exact code you need to password protect a directory. Path is set for a plesk user&#8217;s httpdocs folder but can be modified as needed. http://server-monkey.com/htaccessgenerator]]></description>
			<content:encoded><![CDATA[<p>Simple script I made the other day that will generate the exact code you need to password protect a directory. Path is set for a plesk user&#8217;s httpdocs folder but can be modified as needed.</p>
<p><a href="http://server-monkey.com/htaccessgenerator">http://server-monkey.com/htaccessgenerator</a></p>
]]></content:encoded>
			<wfw:commentRss>http://server-monkey.com/2009/07/26/htaccess-generator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reset Plesk Admin Password from Shell</title>
		<link>http://server-monkey.com/2009/07/26/reset-plesk-admin-password-from-shell/</link>
		<comments>http://server-monkey.com/2009/07/26/reset-plesk-admin-password-from-shell/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 02:53:15 +0000</pubDate>
		<dc:creator>Mark Muyskens</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://server-monkey.com/?p=11</guid>
		<description><![CDATA[./ch_admin_passwd is Plesk&#8217;s utility to set the admin password. &#8220;Gets password from the environment variable PSA_PASSWORDPassword should be from 5 to 16 symbols and should not contain login name, whitespace, quotes or national characters&#8221; [root@ServerMonkey bin]# export PSA_PASSWORD=’newpass’ [root@ServerMonkey bin]# echo $PSA_PASSWORD newpass [root@ServerMonkey bin]# ./ch_admin_passwd [root@ServerMonkey bin]# export PSA_PASSWORD= [root@ServerMonkey bin]# cat /etc/psa/.psa.shadow newpass [...]]]></description>
			<content:encoded><![CDATA[<p>./ch_admin_passwd is Plesk&#8217;s utility to set the admin password.</p>
<p>&#8220;<span style="font-weight: bold;">Gets password from the environment variable PSA_PASSWORD</span><br style="font-weight: bold;" /><span style="font-weight: bold;">Password should be from 5 to 16 symbols and should not contain login name,</span><span style="font-weight: bold;"> whitespace, quotes or national characters&#8221;</span></p>
<p>[root@ServerMonkey bin]# export PSA_PASSWORD=’newpass’</p>
<p>[root@ServerMonkey bin]# echo $PSA_PASSWORD</p>
<p>newpass</p>
<p>[root@ServerMonkey bin]# ./ch_admin_passwd</p>
<p>[root@ServerMonkey bin]# export PSA_PASSWORD=</p>
<p>[root@ServerMonkey bin]# cat /etc/psa/.psa.shadow</p>
<p>newpass</p>
<p>[root@ServerMonkey bin]#</p>
]]></content:encoded>
			<wfw:commentRss>http://server-monkey.com/2009/07/26/reset-plesk-admin-password-from-shell/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
