<?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>Web Development - Programming - Coding Recipes &#187; Server</title>
	<atom:link href="http://codingrecipes.com/category/server/feed" rel="self" type="application/rss+xml" />
	<link>http://codingrecipes.com</link>
	<description></description>
	<lastBuildDate>Wed, 28 Jul 2010 19:58:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CentOS-Yum: warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 6b8d79e6</title>
		<link>http://codingrecipes.com/centos-yum-warning-rpmts_hdrfromfdno-header-v3-dsa-signature-nokey-key-id-6b8d79e6</link>
		<comments>http://codingrecipes.com/centos-yum-warning-rpmts_hdrfromfdno-header-v3-dsa-signature-nokey-key-id-6b8d79e6#comments</comments>
		<pubDate>Tue, 18 Aug 2009 00:31:46 +0000</pubDate>
		<dc:creator>Codehead</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://blog.code-head.com/?p=691</guid>
		<description><![CDATA[Try:
rpm &#8211;import http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
rpm &#8211;import ftp://mirrors.easynews.com//linux/centos/RPM-GPG-K
  
]]></description>
		<wfw:commentRss>http://codingrecipes.com/centos-yum-warning-rpmts_hdrfromfdno-header-v3-dsa-signature-nokey-key-id-6b8d79e6/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Manually move WHM/cPanel accounts &#8211; WHM account transfer function timeout</title>
		<link>http://codingrecipes.com/manually-move-whm-cpanel-accounts-whm-account-transfer-function-timesout</link>
		<comments>http://codingrecipes.com/manually-move-whm-cpanel-accounts-whm-account-transfer-function-timesout#comments</comments>
		<pubDate>Mon, 13 Apr 2009 18:22:21 +0000</pubDate>
		<dc:creator>Codehead</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[WHM/cPanel]]></category>

		<guid isPermaLink="false">http://blog.code-head.com/?p=636</guid>
		<description><![CDATA[Before you do it
You will have to make sure that both Apache web servers are the same version, I didn&#8217;t and it caused some problems.
My hosting company also mentioned that both cPanels must be the same version too, but I&#8217;m not sure about this.
You will also need root access to both servers and an SSH [...]]]></description>
		<wfw:commentRss>http://codingrecipes.com/manually-move-whm-cpanel-accounts-whm-account-transfer-function-timesout/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>The nx service is not available or the nx access was disabled &#8211; CentOS</title>
		<link>http://codingrecipes.com/the-nx-service-is-not-available-or-the-nx-access-was-disabled-centos</link>
		<comments>http://codingrecipes.com/the-nx-service-is-not-available-or-the-nx-access-was-disabled-centos#comments</comments>
		<pubDate>Thu, 02 Apr 2009 21:00:37 +0000</pubDate>
		<dc:creator>Codehead</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://blog.code-head.com/?p=632</guid>
		<description><![CDATA[If you follow the instruction here:
http://wiki.centos.org/HowTos/FreeNX
You will get an error message from NX client:
The nx service is not available or the nx access was disabled
To fix this, connect to your SSH and type:
cat /var/lib/nxserver/home/.ssh/client.id_dsa.key
Copy the text you get and in your NX client, on your login dialog box go to:
Configure&#8230; > General Tab > Key
And [...]]]></description>
		<wfw:commentRss>http://codingrecipes.com/the-nx-service-is-not-available-or-the-nx-access-was-disabled-centos/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>A PHP script for dealing with DoS attacks</title>
		<link>http://codingrecipes.com/a-php-script-for-dealing-with-dos-attacks</link>
		<comments>http://codingrecipes.com/a-php-script-for-dealing-with-dos-attacks#comments</comments>
		<pubDate>Mon, 16 Mar 2009 20:57:14 +0000</pubDate>
		<dc:creator>Codehead</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://blog.code-head.com/?p=608</guid>
		<description><![CDATA[Here is a simple script that will show you what IP addresses are making how many requests to your server.

&#60;?php
&#160;
## Functions ##
&#160;
function getIP&#40;$line&#41; &#123;
	ereg&#40;&#34;[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}&#34;,$line,$regMatch&#41;;
	$ip = $regMatch&#91;0&#93;;
	if&#40;$ip&#41; return $ip; else return &#34;false&#34;;
&#125;
&#160;
function processString&#40;$string, $size = 18&#41; &#123;
	$string = &#34;[ &#34;.$string;
	$length = strlen&#40;$string&#41;;
	$toAdd = $size - $length;
&#160;
	for&#40;$x = 0; $x &#60; $toAdd; $x++&#41; &#123;
		$string = $string.&#34; &#34;;
	&#125;
	$string [...]]]></description>
		<wfw:commentRss>http://codingrecipes.com/a-php-script-for-dealing-with-dos-attacks/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Slowing down Yahoo! Slurp (Yahoo! Search Bot)</title>
		<link>http://codingrecipes.com/slowing-down-yahoo-slurp-yahoo-search-bot</link>
		<comments>http://codingrecipes.com/slowing-down-yahoo-slurp-yahoo-search-bot#comments</comments>
		<pubDate>Sun, 22 Feb 2009 20:13:49 +0000</pubDate>
		<dc:creator>Codehead</dc:creator>
				<category><![CDATA[Annoying Stuff]]></category>
		<category><![CDATA[Search Engines]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://blog.code-head.com/?p=584</guid>
		<description><![CDATA[A few weeks ago one of our servers started to crash every few days.
After investigating this issue for a while we found 100s of IP addresses from Yahoo! and Inktomi Corporation which is the company who developed Yahoo! Slurp.
So basically Yahoo! was launching DOS attacks against our server although unintentional but very annoying. It also [...]]]></description>
		<wfw:commentRss>http://codingrecipes.com/slowing-down-yahoo-slurp-yahoo-search-bot/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A little Program For Monitoring Your Websites, With Alarm</title>
		<link>http://codingrecipes.com/a-little-program-for-monitoring-your-websites-with-alarm</link>
		<comments>http://codingrecipes.com/a-little-program-for-monitoring-your-websites-with-alarm#comments</comments>
		<pubDate>Fri, 20 Feb 2009 04:08:41 +0000</pubDate>
		<dc:creator>Codehead</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://blog.code-head.com/?p=578</guid>
		<description><![CDATA[I hope someone will find this useful:

###
 #    Hamid Alipour
###
&#160;
###
 # Config
#####################################################
urls = &#91;'http://www.P U T  Y O U R  U R L S  H E R E.com/'&#93;
url_timeout = 5
sleep_time = 5 * 60
failed_count_before_alarm = 10
sleep_time_on_failure = 15
#####################################################
&#160;
import urllib2
import winsound
import time
&#160;
class SiteMonitor:
&#160;
    def __init__&#40;self&#41;:
   [...]]]></description>
		<wfw:commentRss>http://codingrecipes.com/a-little-program-for-monitoring-your-websites-with-alarm/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fixing libxml, php bug and issues with HTML entities; libexpat</title>
		<link>http://codingrecipes.com/fixing-libxml-php-bug-and-issues-with-html-entities-libexpat</link>
		<comments>http://codingrecipes.com/fixing-libxml-php-bug-and-issues-with-html-entities-libexpat#comments</comments>
		<pubDate>Sun, 19 Oct 2008 22:36:59 +0000</pubDate>
		<dc:creator>Codehead</dc:creator>
				<category><![CDATA[Annoying Stuff]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blog.code-head.com/?p=448</guid>
		<description><![CDATA[There is another way to fix this issue and I didn&#8217;t write about it because I couldn&#8217;t make it work at first.
Apparently I was missing one line  
First you will need to find out where libexpat is located on your server, it&#8217;s probably here:
/usr/lib
To find out for sure, open this folder (/usr/lib) and look [...]]]></description>
		<wfw:commentRss>http://codingrecipes.com/fixing-libxml-php-bug-and-issues-with-html-entities-libexpat/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixing libxml, php bug and issues with HTML entities; downgrading libxml</title>
		<link>http://codingrecipes.com/fixing-libxml-php-bug-and-issues-with-html-entities-downgrading-libxml</link>
		<comments>http://codingrecipes.com/fixing-libxml-php-bug-and-issues-with-html-entities-downgrading-libxml#comments</comments>
		<pubDate>Mon, 13 Oct 2008 21:24:19 +0000</pubDate>
		<dc:creator>Codehead</dc:creator>
				<category><![CDATA[Annoying Stuff]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Web Development]]></category>

		<guid isPermaLink="false">http://blog.code-head.com/?p=442</guid>
		<description><![CDATA[When you parse XML with PHP and libxml 2.7.0, all HTML entities were stripped out and this annoying bug messed up a lot of things and no one seems to care enough to fix this.
This bug is also reported here:
http://bugs.php.net/bug.php?id=45996
http://bugs.typo3.org/view.php?id=9359&#038;nbn=2
From reading these few resources, I knew I had to downgrade to an older version of [...]]]></description>
		<wfw:commentRss>http://codingrecipes.com/fixing-libxml-php-bug-and-issues-with-html-entities-downgrading-libxml/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Problems installing ffmpeg: warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID X</title>
		<link>http://codingrecipes.com/problems-installing-ffmpeg-warning-rpmts_hdrfromfdno-v3-dsa-signature-nokey-key-id-x</link>
		<comments>http://codingrecipes.com/problems-installing-ffmpeg-warning-rpmts_hdrfromfdno-v3-dsa-signature-nokey-key-id-x#comments</comments>
		<pubDate>Sat, 04 Oct 2008 22:19:26 +0000</pubDate>
		<dc:creator>Codehead</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://blog.code-head.com/?p=427</guid>
		<description><![CDATA[Here is how to install ffmpeg:
1 &#8211; Create a file named &#8220;dag.repo&#8221; (no quotes) in &#8220;/etc/yum.repos.d&#8221;
2 &#8211; Copy and paste these lines in it:

[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=0
enabled=1

You will need a newline at the end of the file.
3 &#8211; Then run &#8220;yum install ffmpeg ffmpeg-devel&#8221; (no quotes)
This should install it with no [...]]]></description>
		<wfw:commentRss>http://codingrecipes.com/problems-installing-ffmpeg-warning-rpmts_hdrfromfdno-v3-dsa-signature-nokey-key-id-x/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>service X does not support chkconfig</title>
		<link>http://codingrecipes.com/service-x-does-not-support-chkconfig</link>
		<comments>http://codingrecipes.com/service-x-does-not-support-chkconfig#comments</comments>
		<pubDate>Sun, 28 Sep 2008 19:37:38 +0000</pubDate>
		<dc:creator>Codehead</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://blog.code-head.com/?p=391</guid>
		<description><![CDATA[Here is how to fix this:
(Assume the name of my script is myscript)
1 &#8211; Copy your script into /etc/init.d folder
2 &#8211; cd /etc/init.d
3 &#8211; chmod +x myscript
4 &#8211; Add these lines, including #, right after #!/bin/bash or #!/bin/sh:
# chkconfig: 2345 95 20
# description: Some description
# What your script does (not sure if this is necessary [...]]]></description>
		<wfw:commentRss>http://codingrecipes.com/service-x-does-not-support-chkconfig/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
	</channel>
</rss>
