<?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>SupportSages &#187; Howtos</title>
	<atom:link href="http://www.supportsages.com/blog/category/howtos/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.supportsages.com/blog</link>
	<description>Technical Support and Server Management : Musings in the fox hole.</description>
	<lastBuildDate>Thu, 05 Jan 2012 03:05:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>cPanel Website Transfer &#8211; Part 1 &#8211; Changing an Add-on Domain to a Primary Domain</title>
		<link>http://www.supportsages.com/blog/2011/07/cpanel-website-transfer-part-1-changing-an-add-on-domain-to-a-primary-domain/</link>
		<comments>http://www.supportsages.com/blog/2011/07/cpanel-website-transfer-part-1-changing-an-add-on-domain-to-a-primary-domain/#comments</comments>
		<pubDate>Wed, 06 Jul 2011 12:52:52 +0000</pubDate>
		<dc:creator>vince</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Howtos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[migration]]></category>
		<category><![CDATA[restore]]></category>
		<category><![CDATA[transfer]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=728</guid>
		<description><![CDATA[For Beginners, Learn how to transfer and restore a website in a Linux cPanel envrioment]]></description>
			<content:encoded><![CDATA[<h3><span style="color: #ff0000;"><strong><em><strong><em>Converting an Add-on Domain to a Primary Domain</em></strong></em></strong></span></h3>
<p><strong>Skill Level : Beginner</strong></p>
<p>In this post, I will explain how to convert an add-on domain to a primary domain. Considering a complex case, lets consider the primary domain should be a different one from the one that holds the Add-on domain.</p>
<p><strong>Pre Requisites</strong></p>
<p>Server Platform : Linux</p>
<p>User requires     : cPanel and SSH access (root)</p>
<p>This is a Site transfer. Also both the sites I&#8217;ve mentioned here is on same server.</p>
<p><strong>Case</strong></p>
<p>The Add-on Domain under a website has to be converted as its Primary Domain. If you have a Full backup, its another case. I&#8217;ll explain it in another post.</p>
<p><strong>Solution</strong></p>
<p>Lets consider the Add-on Domain is addon.com under the user admin and the document root of the add-on domain is :</p>
<p>/home/admin/public_html/addon</p>
<p>Now it should be transferred as the Primary Domain</p>
<p>* Using WHM Create a New account primary.com, the document root is then say /home/primary<br />
We&#8217;ve to transfer the whole data from /home/admin/public_html/addon.com to /home/primary/public_html first.</p>
<p>* The Steps will be :</p>
<p>root@server [/home/admin/public_html/addon]# cp -r ./* /home/primary/public_html</p>
<p>This will recursively copy everything inside the PWD to the specified location<br />
<span id="more-728"></span></p>
<p>Don&#8217;t forget to copy .htaccess too</p>
<p>root@server [/home/admin/public_html/addon]# cp .htaccess /home/primary/public_html</p>
<p>* Thats it, the contents are moved, but there is a database too which has to be moved eventually.<br />
* I&#8217;ll site some type of websites like CMS and Blog :</p>
<p>For a Magento website, the database configuration is specified inside the local.xml file which is placed inside the /app/etc directory inside a domain. For example</p>
<p>root@server [/home/admin/public_html/addon]# cd /app/etc<br />
root@server [/home/admin/public_html/addon/app/etc]# cat local.xml</p>
<p>* Watch for these lines in the local.xml file</p>
<p>&lt;username&gt;&lt;![CDATA[admin_user]]&gt;&lt;/username&gt;<br />
&lt;password&gt;&lt;![CDATA[password]]&gt;&lt;/password&gt;<br />
&lt;dbname&gt;&lt;![CDATA[admin_db]]&gt;&lt;/dbname&gt;</p>
<p><![CDATA[admin_user]]&gt;</username></p>
<password><! [CDATA[password]]-->                     <!--[CDATA[admin_user]]&gt;</p>
<p>* From this the DB Name, DB Username and Password can be fetched.</p>
<p>DB Name            :    admin_db<br />
DB Username    :    admin_user<br />
Password       :    password</p>
<p><strong>Other DB Configuration Files</strong></p>
<p>For a WordPress website, the configuration file will be the wp-config.php. Check these lines for the Database configuration details :</p>
<p>// ** MySQL settings &#8211; You can get this info from your web host ** //<br />
/** The name of the database for WordPress */<br />
define(&#8216;DB_NAME&#8217;, &#8216;admin_db&#8217;);</p>
<p>/** MySQL database username */<br />
define(&#8216;DB_USER&#8217;, &#8216;admin_user&#8217;);</p>
<p>/** MySQL database password */<br />
define(&#8216;DB_PASSWORD&#8217;, &#8216;password&#8217;);</p>
<p>/** MySQL hostname */<br />
define(&#8216;DB_HOST&#8217;, &#8216;localhost&#8217;);</p>
<p>For a Joomla website it is the configuration.php where the database details would be defined.</p>
<p>* Access the cPanel of the new primary domain primary.com. Create a new MySQL Database from Databases -&gt; MySQL option, along with a new MySQL user. Make sure you are providing    exact names as in the local.xml file of the addon.com. Next add the user to the database. So the corresponding database credentials at primary.com will be :</p>
<p>DB Name           :    primary_db<br />
DB Username    :    primary_user<br />
Password                 :     password</p>
<p>Screen-shots of Creating a new database and database user :</p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2011/05/1.png" class="thickbox no_icon" rel="gallery-728" title="1"><img class="alignnone size-medium wp-image-1860" title="1" src="http://www.supportsages.com/blog/wp-content/uploads/2011/05/1-300x68.png" alt="" width="300" height="68" /></a></p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2011/05/2.png" class="thickbox no_icon" rel="gallery-728" title="2"><img class="alignnone size-medium wp-image-1861" title="2" src="http://www.supportsages.com/blog/wp-content/uploads/2011/05/2-300x79.png" alt="" width="300" height="79" /></a></p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2011/05/3.png" class="thickbox no_icon" rel="gallery-728" title="3"><img class="alignnone size-medium wp-image-1862" title="3" src="http://www.supportsages.com/blog/wp-content/uploads/2011/05/3-300x140.png" alt="" width="300" height="140" /></a></p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2011/05/5.png" class="thickbox no_icon" rel="gallery-728" title="5"><img class="alignnone size-full wp-image-1863" title="5" src="http://www.supportsages.com/blog/wp-content/uploads/2011/05/5.png" alt="" width="276" height="118" /></a></p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2011/05/6.png" class="thickbox no_icon" rel="gallery-728" title="6"><img class="alignnone size-medium wp-image-1864" title="6" src="http://www.supportsages.com/blog/wp-content/uploads/2011/05/6-300x201.png" alt="" width="300" height="201" /></a></p>
<p><strong>Creating DB through Shell</strong></p>
<p>Access MySQL prompt :</p>
<p>$ mysql //Login as Root</p>
<p>mysql&gt; use mysql; //Use MySQL</p>
<p>﻿﻿﻿﻿﻿﻿mysql&gt; create database [﻿primary_db]; //Create a Database</p>
<p>mysql&gt; INSERT INTO primary_user (Host,User,Password) VALUES(&#8216;host&#8217;,'primary_user&#8217;,PASSWORD(&#8216;password&#8217;)); //Insert User</p>
<p>mysql&gt; grant all privileges on primary_db.sql to primary_user@localhost; //Granting all Privileges to user primary_user on the database</p>
<p>Perform Dump :</p>
<p>root@server [/home/primary]# mysqldump dbname &gt; dbname.sql   (Here mysqldump admin_db &gt; admin_db.sql)</p>
<p>* Enter the mysql terminal through the command mysql</p>
<p>mysql &gt; use newdatabasename;          (Here mysql &gt; use primary_db;)<br />
mysql &gt; source olddatabasename.sql;      (Here mysql &gt; source admin_db.sql;)</p>
<p>* For a normal website, you may backup the database by checking the config files and restore it. Use cPanel for that.</p>
<p>* Guess what, You&#8217;re done, the restoration is complete now. Now the primary.com should be working like addon.com.</p>
<div class="tweetthis" style="text-align:left;"><p> <a  class="tt" href="http://twitter.com/home/?status=cPanel+Website+Transfer+-+Part+1+-+Changing+an+Add-on+Domain+to+a+Primary+Domain+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F728" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter3.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=cPanel+Website+Transfer+-+Part+1+-+Changing+an+Add-on+Domain+to+a+Primary+Domain+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F728" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2011/07/cpanel-website-transfer-part-1-changing-an-add-on-domain-to-a-primary-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Worried about email migrations and mail syncing &#8211; get getmail for the rescue</title>
		<link>http://www.supportsages.com/blog/2011/06/worried-about-email-migrations-and-mail-syncing-get-getmail-for-the-rescue/</link>
		<comments>http://www.supportsages.com/blog/2011/06/worried-about-email-migrations-and-mail-syncing-get-getmail-for-the-rescue/#comments</comments>
		<pubDate>Fri, 03 Jun 2011 15:14:39 +0000</pubDate>
		<dc:creator>arnold</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Howtos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Training]]></category>
		<category><![CDATA[email migrations]]></category>
		<category><![CDATA[email transfer]]></category>
		<category><![CDATA[imapsync]]></category>
		<category><![CDATA[mail syncing]]></category>
		<category><![CDATA[mail transfer]]></category>
		<category><![CDATA[migrate my email]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=1887</guid>
		<description><![CDATA[Most of the hosting providers offer free server migration. The free website migration started as early as 2005, in the industry. But only a few providers offer the email migration for a website transfer involving different control panels. So using getmail is the easiest way to transfer emails. All we need is to create the email account in the new server and configure the getmail to transfer the emails.

Download getmail at http://pyropus.ca/software/getmail/old-versions/getmail-4.20.3.tar.gz

[bash]

wget http://pyropus.ca/software/getmail/old-versions/getmail-4.20.3.tar.gz
tar xzf getmail-4.20.3.tar.gz
cd getmail*
python setup.py install

[/bash]

Now you have to create a getmailrc , the getmail configuration file inside the home folder of the user. getmailrc need not be ...]]></description>
			<content:encoded><![CDATA[<p>Most of the hosting providers offer free server migration. The free website migration started as early as 2005, in the industry. But only a few providers offer the email migration for a website transfer involving different control panels. So using getmail is the easiest way to transfer emails. All we need is to create the email account in the new server and configure the getmail to transfer the emails.</p>
<p>Download getmail at http://pyropus.ca/software/getmail/old-versions/getmail-4.20.3.tar.gz</p>
<pre class="brush: bash; title: ; notranslate">

wget http://pyropus.ca/software/getmail/old-versions/getmail-4.20.3.tar.gz
tar xzf getmail-4.20.3.tar.gz
cd getmail*
python setup.py install
</pre>
<p>Now you have to create a getmailrc , the getmail configuration file inside the home folder of the user. getmailrc need not be inside the home directory. You have to create the folder .getmail where getmail keeps a log of the emails retrieved based on each configuration file you may have.You can have multiple destination and retriever sections in one single getmailrc as well.</p>
<p>I must say getmail is so much flexible and rightly coded when the mailsync or imapsync didn&#8217;t do their job right or up to the mark. And is an excellent replacement for fetchmail. It supports POP, POP3S, IMAP4 and IMAPS, and also can store the mails retrieved in mbox or maildir format at the destination.</p>
<p>An extremely simple getmailrc file will look like this</p>
<pre class="brush: bash; title: ; notranslate">
[retriever]
type = SimpleIMAPRetriever
server = mail.domain.com
username = direct@domain.com
password = direct

[destination]
type = Maildir
path = /home/cpusername/mail/.direct@domain_com/
</pre>
<p>The file format should be pretty self-explanatory. You’re telling getmail to fetch your email from server, mail.domain.com by logging to it using the mentioned username and password. The destination section mentions where to store the retrieved email and in which format (Maildir or mbox or mboxrd). Make sure that the cur, new and tmp are there inside those folder though. However getmail may create those folders automatically though.</p>
<p>Finally to get this going, just run &#8220;getmail &#8211;rcfile getmailrc&#8221;</p>
<p>Once you run it, assuming that the getmailrc is properly configured, you will be welcomed by a below output.</p>
<pre class="brush: bash; title: ; notranslate">
getmail version 4.20.3
Copyright (C) 1998-2009 Charles Cazabon.  Licensed under the GNU GPL version 2.
SimpleIMAPRetriever:direct@domain.com@mail.domain.com:143:
 msg    1/3983 (299328 bytes) delivered
 msg    2/3983 (2815 bytes) delivered
</pre>
<div class="tweetthis" style="text-align:left;"><p> <a  class="tt" href="http://twitter.com/home/?status=Worried+about+email+migrations+and+mail+syncing+-+get+getmail+for+the+rescue+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F1887" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter3.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=Worried+about+email+migrations+and+mail+syncing+-+get+getmail+for+the+rescue+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F1887" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2011/06/worried-about-email-migrations-and-mail-syncing-get-getmail-for-the-rescue/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install 32 bit and 64 bit applications on 64 bit Ubuntu OS</title>
		<link>http://www.supportsages.com/blog/2011/05/how-to-install-32-bit-and-64-bit-applications-on-64-bit-ubuntu-os/</link>
		<comments>http://www.supportsages.com/blog/2011/05/how-to-install-32-bit-and-64-bit-applications-on-64-bit-ubuntu-os/#comments</comments>
		<pubDate>Thu, 26 May 2011 17:24:30 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[Howtos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[getlibs]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=1853</guid>
		<description><![CDATA[Earlier, with Drapper Drake , you only had to install ia32libs. But after that, may be they decided not to release for future versions, no more release. Hackers always find a way round to get their thing done and that exactly what happened with this as well. A bash file was written and released to the public available at http://frozenfox.freehostia.com/cappy/

I recently had to use this frequently and thought about mentioning it. In last two days, I had two such requirements as well. Here in India, Tata Docomo's USB installation binary, will work only on i386 linux boxes. I would admit ...]]></description>
			<content:encoded><![CDATA[<p>Earlier, with Drapper Drake , you only had to install ia32libs. But after that, may be they decided not to release for future versions, no more release. Hackers always find a way round to get their thing done and that exactly what happened with this as well. A bash file was written and released to the public available at http://frozenfox.freehostia.com/cappy/</p>
<p>I recently had to use this frequently and thought about mentioning it. In last two days, I had two such requirements as well. Here in India, Tata Docomo&#8217;s USB installation binary, will work only on i386 linux boxes. I would admit that that itself is an achievement <img src='http://www.supportsages.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  But I had to get it working on a x64 architecture as well. And it was complaining about libqt and a few other 32 bit packages. dkpg&#8217;s &#8211;force-architecture option was also not working because of dependency issue.</p>
<p>This also helped me install a Task Management Software as well, http://codea-dev.com/gtd/download/linux/</p>
<p>Below text is copied from Ubuntu Forum&#8217;s. Author&#8217;s original post can be found at http://ubuntuforums.org/showthread.php?t=474790</p>
<p><span style="font-size: small;"><strong>getlibs works on:</strong></span></p>
<ul>
<li>All Ubuntu and Debian systems</li>
<li>Debian or Ubuntu based distributions (best to use the package name)</li>
</ul>
<p>Tip: To install a 32-bit debian package for a program (not a library!) use</p>
<div>
<div>Code:</div>
<pre dir="ltr">sudo dpkg -i --force-all package_name.deb</pre>
</div>
<p><span style="font-size: small;"><strong>Usage Examples:</strong></span></p>
<p>getlibs on a program to download all missing libraries:</p>
<div>
<div>Code:</div>
<pre dir="ltr">getlibs /usr/bin/skype</pre>
</div>
<p>&#8212;&#8211;</p>
<p>Use getlibs to install a 32-bit library using the library name:</p>
<div>
<div>Code:</div>
<pre dir="ltr">getlibs -l libogg.so.0 libSDL-1.2.so.0</pre>
</div>
<p>&#8212;&#8211;</p>
<p>Use getlibs to install a 32-bit library using the package name:</p>
<div>
<div>Code:</div>
<pre dir="ltr">getlibs -p libqt4-core libqt4-gui</pre>
</div>
<p>&#8212;&#8211;</p>
<p>Install a 32-bit library file (.deb):</p>
<div>
<div>Code:</div>
<pre dir="ltr">getlibs -i ~/i386_library_1.deb</pre>
</div>
<p>&#8212;&#8211;</p>
<p>Download and install a 32-bit library file (.deb):</p>
<div>
<div>Code:</div>
<pre dir="ltr">getlibs -w http://mirrors.kernel.org/ubuntu/pool/main/s/sdl-image1.2/libsdl-image1.2_1.2.5-3_i386.deb</pre>
</div>
<div class="tweetthis" style="text-align:left;"><p> <a  class="tt" href="http://twitter.com/home/?status=How+to+install+32+bit+and+64+bit+applications+on+64+bit+Ubuntu+OS+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F1853" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter3.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=How+to+install+32+bit+and+64+bit+applications+on+64+bit+Ubuntu+OS+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F1853" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2011/05/how-to-install-32-bit-and-64-bit-applications-on-64-bit-ubuntu-os/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Applying wildcards in GRANT option of MySQL</title>
		<link>http://www.supportsages.com/blog/2011/05/applying-wildcards-in-grant-option-of-mysql/</link>
		<comments>http://www.supportsages.com/blog/2011/05/applying-wildcards-in-grant-option-of-mysql/#comments</comments>
		<pubDate>Wed, 25 May 2011 10:27:19 +0000</pubDate>
		<dc:creator>George</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Howtos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Training]]></category>
		<category><![CDATA[backups]]></category>
		<category><![CDATA[cPanel server backup]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[mysqldump]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=1841</guid>
		<description><![CDATA[We had this particular requirement of creating a database user to be used to backup only the cPanel databases. Only recently the database mapping has been introduced by cPanel which allows the clients to create databases without the _ . However on all our client servers, we insist to have the old style with every database has Prefixing On.

Creating the database user to backup only the cPanel databases, means matching the databases with an underscore (_) in its name and that resulted in this particular SQL command to be executed as root user.

[bash]GRANT ALL PRIVILEGES ON `%\_%`.* TO `cpdbbackups`@`re.mo.te.ip` IDENTIFIED ...]]></description>
			<content:encoded><![CDATA[<p>We had this particular requirement of creating a database user to be used to backup only the cPanel databases. Only recently the database mapping has been introduced by cPanel which allows the clients to create databases without the _ . However on all our client servers, we insist to have the old style with every database has Prefixing On.</p>
<p>Creating the database user to backup only the cPanel databases, means matching the databases with an underscore (_) in its name and that resulted in this particular SQL command to be executed as root user.</p>
<pre class="brush: bash; title: ; notranslate">GRANT ALL PRIVILEGES ON `%\_%`.* TO `cpdbbackups`@`re.mo.te.ip` IDENTIFIED BY 'p@ssw0Rd' WITH GRANT OPTION;</pre>
<p>Read more about the cPanel&#8217;s DB mapping at http://www.cpanel.net/blog/integration/2010/05/more-details-about-db-mapping.html</p>
<div class="tweetthis" style="text-align:left;"><p> <a  class="tt" href="http://twitter.com/home/?status=Applying+wildcards+in+GRANT+option+of+MySQL+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F1841" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter3.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=Applying+wildcards+in+GRANT+option+of+MySQL+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F1841" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2011/05/applying-wildcards-in-grant-option-of-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DDoS, prevention, cure! &#8211; Part 1</title>
		<link>http://www.supportsages.com/blog/2010/12/ddos-prevention-cure-part-1/</link>
		<comments>http://www.supportsages.com/blog/2010/12/ddos-prevention-cure-part-1/#comments</comments>
		<pubDate>Wed, 29 Dec 2010 10:54:22 +0000</pubDate>
		<dc:creator>Fabian</dc:creator>
				<category><![CDATA[Howtos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Troubleshooting]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=1473</guid>
		<description><![CDATA[DDoS - Distributed Denial Of Service  Wiki : <a href="http://en.wikipedia.org/wiki/Denial-of-service_attack">http://en.wikipedia.org/wiki/Denial-of-service_attack</a>
<blockquote>DDoS is an attack on a computer/server or its resources and thereby making it unavailable to intended users.</blockquote>
Web-hosts must be familiar with this term and will be a victim at-least once. The intention of this post is to give  a brief description about DDoS, its prevention and cure if effected. Please note that this will not server as a perfect guide to the mentioned "Subject-line", but a "tip-note".

<strong>Understanding DDoS</strong>:

The four commonly used programs used by attackers to launch DDoS attacks are
<ol>
	<li> <a href="http://en.wikipedia.org/wiki/Trinoo" target="_blank"> Trinoo</a></li>
	<li> <a href="http://en.wikipedia.org/wiki/Tribe_Flood_Network" target="_blank">TFN</a></li>
	<li> <a href="http://packetstormsecurity.org/distributed/TFN2k_Analysis-1.3.txt" target="_blank">TFN2K</a></li>
	<li> ...]]></description>
			<content:encoded><![CDATA[<p>DDoS &#8211; Distributed Denial Of Service  Wiki : <a  href="http://en.wikipedia.org/wiki/Denial-of-service_attack">http://en.wikipedia.org/wiki/Denial-of-service_attack</a></p>
<blockquote><p>DDoS is an attack on a computer/server or its resources and thereby making it unavailable to intended users.</p></blockquote>
<p>Web-hosts must be familiar with this term and will be a victim at-least once. The intention of this post is to give  a brief description about DDoS, its prevention and cure if effected. Please note that this will not server as a perfect guide to the mentioned &#8220;Subject-line&#8221;, but a &#8220;tip-note&#8221;.</p>
<p><strong>Understanding DDoS</strong>:</p>
<p>The four commonly used programs used by attackers to launch DDoS attacks are</p>
<ol>
<li> <a  href="http://en.wikipedia.org/wiki/Trinoo" target="_blank"> Trinoo</a></li>
<li> <a  href="http://en.wikipedia.org/wiki/Tribe_Flood_Network" target="_blank">TFN</a></li>
<li> <a  href="http://packetstormsecurity.org/distributed/TFN2k_Analysis-1.3.txt" target="_blank">TFN2K</a></li>
<li> <a  href="http://en.wikipedia.org/wiki/Stacheldraht" target="_blank">Stacheldraht</a></li>
</ol>
<p><strong>Symptoms of DDos:</strong></p>
<ol>
<li>Unusually slow network performance (opening files or accessing web sites)</li>
<li>Unavailability of a particular web site</li>
<li>Inability to access any web site</li>
<li>Dramatic increase in the number of spam emails received—(this type of DoS attack is considered an e-mail bomb)</li>
<li>Packet loss for pings to IP/Domain</li>
</ol>
<p><strong>How DDoS is done:</strong></p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/11/424px-Stachledraht_DDos_Attack.svg_.png" class="thickbox no_icon" rel="gallery-1473" title="424px-Stachledraht_DDos_Attack.svg"><img class="aligncenter size-full wp-image-1477" title="424px-Stachledraht_DDos_Attack.svg" src="http://www.supportsages.com/blog/wp-content/uploads/2010/11/424px-Stachledraht_DDos_Attack.svg_.png" alt="" width="424" height="600" /></a></p>
<p><em>Pictorial representation of Stacheldraht DDoS attack.</em></p>
<p>In Stacheldraht DDoS attack, the attacker uses a client program to connect handlers which is a set of compromised machines that issues commands to the agents which in-turn facilitate the DDoS attack. The agents are another set of machines which is compromised using handlers by the attacker. Each handler can control thousands of agents  and all these widely distributed agents floods the target server and thereby increasing the impact of attack.</p>
<p><strong>DoS and DDoS are not the same:</strong></p>
<p>If the attacker initiates an attack from a single host, it is classified as a DoS  as it is not &#8216;distributed&#8217;. In fact, any attack against availability would be classed as a Denial of Service attack. On the other hand, if an attacker uses a thousand systems to simultaneously launch smurf attacks against a remote host, this would be classified as a DDoS attack.</p>
<p>Then what is <strong>DRDoS</strong>? DRDoS is Distributed Refected Denial of Service. These attacks forge the source address of the IP packets with the victim’s IP and send pings/packets to intermediate hosts. When the intermediate sends back the reply to these pings , it is sent to the victims IP thereby flooding the victim.</p>
<p style="text-align: center;"><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/11/Screenshot.png" class="thickbox no_icon" rel="gallery-1473" title="Screenshot"><img class="aligncenter size-large wp-image-1495" title="Screenshot" src="http://www.supportsages.com/blog/wp-content/uploads/2010/11/Screenshot-1024x623.png" alt="" width="614" height="374" /></a></p>
<p style="text-align: left;">Some other types/methods of <strong><em>DDoS/DRDoS/Dos attacks</em></strong> are :</p>
<p style="text-align: left;"><em>Reflective ICMP attack</em>: The reflective ICMP attack uses public sites like google.com that responds to ICMP ping requests to that of victims IP. The attacker spoofs the victims IP and send requests to the Public servers which will then reply to the actual IP.</p>
<p style="text-align: left;"><em>TCP SYN flood attack </em>: The attacker sends a packet with SYS bit set of the well known TCP three way handshake. The victim responds to the request by sendong a reply packet with SYN_ACK bit set, but the attackr never responds and thereby increasing the TCP receive queues and denying new TCP connetions. But modern  UNIX and Windows fixed this by increasing the queue qize and limited the number of TCP SYS packets allowed.</p>
<p style="text-align: left;"><em>UDP attacks</em> : The UDP is one of the most effective way of DDos/DoS attacks. UDP is a stateless protocol and does not have any acknowledgement mechanism by design. PROTOS,the SNMP test suite, and other SNMP tools have been used successfully to launch application level DoS attacks. The Slammer worm was extremely fast because it did not require a response from the compromised computer.</p>
<p style="text-align: left;"><em>TTL Expiration </em>: The attacker forges the victims IP and send packets with low TTL set to it so that it will expire in the transmit at high speed router. When the TTL reaches zero, the router drops the packet and sends an ICMP TTL expired message to the source address, ie the Victim IP. This attack could be lowered by rate limiting ICMP to all routers in the service provider’s network.</p>
<p style="text-align: left;"><em>Permanent DoS attacks (PDoS)</em><strong> </strong>:  PDoS is an attack that damages the system so badly that it needs the hardware to be replaced or reinstalled. The PDoS is purely a hardware targeted attack in which the attacker modifies the devide fireware by the legitimate method caled flashing. The attacker replaces the hardware firmware with his own modified version which will make the device unstable and render it from the original purpose for which it is made or designed for. The is done by exploiting the hardware security flaws which will allow remote administration of devices such as routers, printers and other networking hardwares.</p>
<p style="text-align: left;"><em>Degradation Of Service Attacks</em> : The compromised computers are used by the atackers to launch short-lived flooding on victims website which will slow down the website rather than crashing it. This is degradation of service rather than deniel of service and is more seriver than DoS as this is pretty difficult to detect and resolve.</p>
<p style="text-align: left;"><em>Un-intentional Denial Of Services </em>:  Sudden spike in popularity for a website is the major cause for this. This happens when an extremely popular wesite posts a link to a second site as a part of referrence for news or article. This will lead significant increase in traffic to the secondary website which will result in crashing or server/services. An example for this hapened when Michael Jackson died in 2009 which took down sites like Google and Twitter. (In this case you cant just blame someone <img src='http://www.supportsages.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> )</p>
<p style="text-align: left;"><em>Blind Denial Of Service </em>: In Blind Deniel of Service, the attacker must be able to receive traffic from the victim, then the attacker must either subvert the routing fabric or use the attacker&#8217;s own IP address. Either provides an opportunity for the victim to track the attacker and/or filter out his traffic. With a blind attack the attacker uses a forged IP addresses, making it extremely difficult for the victim to filter out those packets. The TCP SYN flood attack is an example of a blind attack. Designers should make every attempt possible to prevent blind denial of service attacks.</p>
<p style="text-align: left;">
<p style="text-align: left;">
<div class="tweetthis" style="text-align:left;"><p> <a  class="tt" href="http://twitter.com/home/?status=DDoS%2C+prevention%2C+cure%21+-+Part+1+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F1473" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter3.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=DDoS%2C+prevention%2C+cure%21+-+Part+1+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F1473" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2010/12/ddos-prevention-cure-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to setup Google Apps on your domain with cPanel and create upto 50 custom email accounts for FREE – Part (2)</title>
		<link>http://www.supportsages.com/blog/2010/10/setup-google-apps-on-your-domain-with-cpanel-and-create-upto-50-custom-email-accounts-for-free-%e2%80%93-part-2/</link>
		<comments>http://www.supportsages.com/blog/2010/10/setup-google-apps-on-your-domain-with-cpanel-and-create-upto-50-custom-email-accounts-for-free-%e2%80%93-part-2/#comments</comments>
		<pubDate>Fri, 22 Oct 2010 11:27:39 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Howtos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Webmail]]></category>
		<category><![CDATA[50 custom email accounts]]></category>
		<category><![CDATA[free email accounts]]></category>
		<category><![CDATA[google apps]]></category>
		<category><![CDATA[google apps in cpanel]]></category>
		<category><![CDATA[how to set up google apps]]></category>
		<category><![CDATA[setup google apps for your domain]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=1421</guid>
		<description><![CDATA[<strong>Step V : Setting Up Your E-mail Server. </strong>

The next step is to set up the URL you want to use to access Webmail. In most cases, this is either <strong>webmail.example.com</strong> or simply <strong>mail.example.com</strong>. To make this change, click on the '<em><strong>Service Settings</strong></em>' tab in the top menu of the dashboard. Then, click '<em><strong>Email</strong></em>'. From there, specify that you want to use a custom URL, and enter the appropriate subdomain for your domain.

<a href="http://www.supportsages.com/blog/wp-content/uploads/2010/10/real-webmail.png"><img class="alignnone size-full wp-image-1422" title="webmail" src="http://www.supportsages.com/blog/wp-content/uploads/2010/10/real-webmail.png" alt="" width="607" height="209" /></a>

Submit that form, and Google will then provide you with information about adding a CNAME entry for your ...]]></description>
			<content:encoded><![CDATA[<p><strong>Step V : Setting Up Your E-mail Server. </strong></p>
<p>The next step is to set up the URL you want to use to access Webmail. In most cases, this is either <strong>webmail.example.com</strong> or simply <strong>mail.example.com</strong>. To make this change, click on the &#8216;<em><strong>Service Settings</strong></em>&#8216; tab in the top menu of the dashboard. Then, click &#8216;<em><strong>Email</strong></em>&#8216;. From there, specify that you want to use a custom URL, and enter the appropriate subdomain for your domain.</p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/10/real-webmail.png" class="thickbox no_icon" rel="gallery-1421" title="webmail"><img class="alignnone size-full wp-image-1422" title="webmail" src="http://www.supportsages.com/blog/wp-content/uploads/2010/10/real-webmail.png" alt="" width="607" height="209" /></a></p>
<p>Submit that form, and Google will then provide you with information about adding a CNAME entry for your new subdomain. You should make corresponding entries in the DNS zone to implement this. For example if the URL with which you wish to access your mail is webmail.example.com then you must give a CNAME record &#8216; <strong>ghs.google.com.</strong> &#8216; in the DNS zone for <strong>webmail</strong>. This is shown below :</p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/10/real1.png" class="thickbox no_icon" rel="gallery-1421" title="real1"><img class="alignnone size-full wp-image-1424" title="real1" src="http://www.supportsages.com/blog/wp-content/uploads/2010/10/real1.png" alt="" width="623" height="192" /></a></p>
<p>Step VI : MX Record Changes</p>
<p>Once you have finished creating all of the users, you can return to the dashboard and click &#8216;<em><strong>Activate email</strong></em>&#8216;  and follow the MX change instructions provided by Google. If you are lucky enough to use one of the hosts included in the dropdown menu there, you should be able to get clear, specific instructions explaining how to make the changes in your domains control panel.</p>
<p>Google will have you add seven new MX records to your DNS zone file. Those entries will probably look like:</p>
<p>MX Server address                                  Priority</p>
<p><strong>ASPMX.L.GOOGLE.COM.                 10<br />
ALT1.ASPMX.L.GOOGLE.COM.       20<br />
ALT2.ASPMX.L.GOOGLE.COM.       20<br />
ASPMX2.GOOGLEMAIL.COM.         30<br />
ASPMX3.GOOGLEMAIL.COM.         30<br />
ASPMX4.GOOGLEMAIL.COM.         30<br />
ASPMX5.GOOGLEMAIL.COM.         30 </strong></p>
<p>It’s important that you copy and paste those addresses exactly as they appear in the Google instructions. They all include dots at the end of the addresses, and that dots need to be included. I am attaching a screenshot below which will hopefully give you an idea on how it should be entered.</p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/10/real2.png" class="thickbox no_icon" rel="gallery-1421" title="real2"><img class="alignnone size-full wp-image-1428" title="real2" src="http://www.supportsages.com/blog/wp-content/uploads/2010/10/real2.png" alt="" width="576" height="116" /></a></p>
<p>Your new entries will need to look similar to:</p>
<p>your-domain.com    14400    IN    MX    10    ASPMX.L.GOOGLE.COM.</p>
<p>Where your-domain.com is your domain name, the second spot is the <strong>TTL</strong> or Time To Live (which can be left blank if required), the word <strong>&#8216;IN</strong>&#8216; is in the third spot, the fourth spot is filled with <strong>&#8216;MX</strong>&#8216; , the fifth spot is the &#8216;<strong>Priority</strong>&#8216; and the last spot includes the address provided by Google.</p>
<p>Also, in most of the cases you can only add four or five entries to the zone file at a time, so you’ll have to add this first, save the file, and then add the rest.<br />
Once you’ve made those changes, click the  &#8216;<em><strong>I’ve made these changes</strong></em>&#8216; button in the Google Apps window.<br />
Finally you can return to dashboard and click on the &#8216;<em><strong>Activate email</strong></em>&#8216; tab which you will find right below the &#8216;<em><strong>Email</strong></em>&#8216; option. See below :</p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/10/real-activatemail.png" class="thickbox no_icon" rel="gallery-1421" title="real-activatemail"><img class="alignnone size-full wp-image-1437" title="real-activatemail" src="http://www.supportsages.com/blog/wp-content/uploads/2010/10/real-activatemail.png" alt="" width="584" height="157" /></a></p>
<p><strong>The last and most difficult Step : Waiting</strong>.</p>
<p>At this point, you’re pretty much done. You now simply have to wait because It can take anywhere from one hour to 48 hours before the changes are complete.</p>
<p>Once the changes have completed, though, you can set up your e-mail client (Outlook, Thunderbird etc.) to check your e-mail. The Gmail IMAP settings are fairly simple. They are as follows:</p>
<p><strong>IMAP (incoming) mail:<br />
Server: imap.gmail.com<br />
Port: 993<br />
Encryption: SSL</strong></p>
<p><strong>SMTP (outgoing) mail:<br />
Server: smtp.gmail.com<br />
Port: 465 or 587<br />
Encryption: TLS</strong></p>
<p><strong>***********************************************************************************************************</strong></p>
<div class="tweetthis" style="text-align:left;"><p> <a  class="tt" href="http://twitter.com/home/?status=How+to+setup+Google+Apps+on+your+domain+with+cPanel+and+create+upto+50+custom+email+accounts+for+FREE+%E2%80%93+Part+%282%29+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F1421" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter3.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=How+to+setup+Google+Apps+on+your+domain+with+cPanel+and+create+upto+50+custom+email+accounts+for+FREE+%E2%80%93+Part+%282%29+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F1421" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2010/10/setup-google-apps-on-your-domain-with-cpanel-and-create-upto-50-custom-email-accounts-for-free-%e2%80%93-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to setup 50 free Google powered email accounts for your domain with cPanel &#8211; Part (1)</title>
		<link>http://www.supportsages.com/blog/2010/10/setup-google-apps-on-your-domain-with-cpanel-and-create-upto-50-custom-email-accounts-for-free-part-1/</link>
		<comments>http://www.supportsages.com/blog/2010/10/setup-google-apps-on-your-domain-with-cpanel-and-create-upto-50-custom-email-accounts-for-free-part-1/#comments</comments>
		<pubDate>Fri, 22 Oct 2010 10:43:59 +0000</pubDate>
		<dc:creator>Bruce</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Howtos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Training]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[Webmail]]></category>
		<category><![CDATA[50 custom email accounts]]></category>
		<category><![CDATA[free email accounts]]></category>
		<category><![CDATA[google apps]]></category>
		<category><![CDATA[google apps in cpanel]]></category>
		<category><![CDATA[how to set up google apps]]></category>
		<category><![CDATA[setup google apps for your domain]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=1367</guid>
		<description><![CDATA[This article is on how to setup Google Apps to work on your domain with 6 easy steps. When you purchase a domain (e.g. your-domain.com) for your website from any of the domain registrars such as Godaddy , you normally get a single free email account that includes limited storage space. This is where Google apps comes in for your rescue. By using this feature, provided to you by Google, you can use Google mail servers for transferring your mails and that too from your very own domains. The advantages are plenty, as we all know Gmail has proven over ...]]></description>
			<content:encoded><![CDATA[<p>This article is on how to setup Google Apps to work on your domain with 6 easy steps. When you purchase a domain (e.g. your-domain.com) for your website from any of the domain registrars such as Godaddy , you normally get a single free email account that includes limited storage space. This is where Google apps comes in for your rescue. By using this feature, provided to you by Google, you can use Google mail servers for transferring your mails and that too from your very own domains. The advantages are plenty, as we all know Gmail has proven over the years that it provides the most reliable e-mail service. How many times have you moved your domain to a new server and been frustrated by the fact that you lost all of your e-mail messages? If you switch over to Google Apps, you never have to worry about that again. Again the service and support provided by google is without doubt the best and uncomparable with your hosting companie&#8217;s or your service provider&#8217;s. Another advantage is that the server limits of your account will not affect the number of mails that you can sent or recieve if you use the Google apps. I have only mentioned a few above but the list goes on and on.</p>
<p>The praises can be sung without a pause but its better I stop the boasts here and get down to the original topic.  I’m going to explain, step-by-step, on how to accomplish this task. It’s actually very simple, but it might take quite some time depending on how good a techy you are. To begin with, head on over to Google and sign up for an account. I am siting the link below where you can do this :</p>
<p>http://www.google.com/apps/intl/en/business/index.html</p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/10/real-homepage.png" class="thickbox no_icon" rel="gallery-1367" title="G-Apps-Homepage"><img class="alignnone size-full wp-image-1373" title="G-Apps-Homepage" src="http://www.supportsages.com/blog/wp-content/uploads/2010/10/real-homepage.png" alt="" width="581" height="387" /></a></p>
<p>In the above page click on the &#8216; <strong><em>Apps Editions</em></strong> &#8216; tab and you will be able to view different schemes they offer, from which you will be able to select the one which suits you the most. For most of us, the standard edition offered by Google is more than enough. However, they do offer a “Premier edition” if your needs exceed the services of the free accounts. In addition to the Standard edition and Premier edition there are  Educational schemes, Govermental schemes etc etc. Once you choose the package required you will be directed to a page with a blue colored &#8216; <em><strong>Get started</strong></em> &#8216; tab on the right most top corner of the page. This is your key, click on it and you are on your way to setting Google apps for your domain. I am going to list  everything step by step from here on in a detailed manner.<br />
<strong> </strong></p>
<p><strong>Step I : Tell them your registered Domain name.</strong></p>
<p>In the very first step you need to provide your domain name as prompted. Obviously enough you should possess a registered domain or you can buy a new domain name through Google which automatically sets everything up for you. You also need to verify that you own the domain or if you are a member of the domain.</p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/10/gapps2.png" class="thickbox no_icon" rel="gallery-1367" title="enter-domain"><img class="alignnone size-full wp-image-1382" title="enter-domain" src="http://www.supportsages.com/blog/wp-content/uploads/2010/10/gapps2.png" alt="" width="422" height="268" /></a></p>
<p><strong>Step II : Tell them who you are.</strong></p>
<p>Fill in all of your contact information. At least <strong>make sure that you fill in all the boxes which have an aestrics symbol (*)</strong> to the right of the label with proper and valid information. If you don’t provide the required information, you will receive an error when you submit the form.<br />
An important thing that you should be absolutely sure of before filling up the form is that you are able to edit your server’s DNS zone files. If you cannot edit your DNS zone files, do not proceed. You will have to enter MX records pointing to the Google mail servers in your DNS configuration. Signing up for the Google Apps account is useless if you’re not going to be able to modify your server appropriately to have the e-mail go where it’s intended.</p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/10/real-contactinfo.png" class="thickbox no_icon" rel="gallery-1367" title="contactinfo"><img class="alignnone size-full wp-image-1384" title="contactinfo" src="http://www.supportsages.com/blog/wp-content/uploads/2010/10/real-contactinfo.png" alt="" width="596" height="325" /></a></p>
<p>The screenshot above was limited by my monitor boundaries, but you will be able to see the &#8216; <em><strong>Continue</strong></em> &#8216; tab at the bottom of your screen. Click this and you are on step III.<br />
<strong> </strong></p>
<p><strong>Step III : Create your first administrator account.</strong></p>
<p>Create your first e-mail account. This e-mail account will be used as the administrative account for the Google Apps services.</p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/10/real-setup.png" class="thickbox no_icon" rel="gallery-1367" title="admin-setup"><img class="alignnone size-full wp-image-1390" title="admin-setup" src="http://www.supportsages.com/blog/wp-content/uploads/2010/10/real-setup.png" alt="" width="583" height="398" /></a></p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --></p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --></p>
<p>Below this you will be able to see the terms and conditions, which mostly contains the usual stuff but still worth a read, where you should click on the &#8216; <em><strong>I accept. Continue with setup</strong></em> &#8216; tab to proceed to the next step.</p>
<p><strong>Step IV : Verify Domain Ownership.</strong></p>
<p>The next step in the process is to prove to Google that you own and have administrative rights to the domain you chose.</p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/10/real-verify.png" class="thickbox no_icon" rel="gallery-1367" title="verify-I"><img class="alignnone size-full wp-image-1393" title="verify-I" src="http://www.supportsages.com/blog/wp-content/uploads/2010/10/real-verify.png" alt="" width="611" height="231" /></a></p>
<p>Here you will have an option to do it later, but sooner the better. Once you choose the option to continue you will be prompted for the password you chose in the previous step.<br />
You have three options to prove that you own the domain. The first option is to modify your DNS entries to add a unique CNAME record. Next option is to add a meta tag to your site&#8217;s home page.  The last option is to simply create and upload an HTML file to your Web server. Okay now there is no reason for you to panic from hearing all the complex terms, all you need to do is click on these options and viola, all the information you need on &#8216;How to&#8217; gets detailed (or rather spoon fed) right on the screen.</p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/10/real-verify2.png" class="thickbox no_icon" rel="gallery-1367" title="real-verify2"><img class="alignnone size-full wp-image-1402" title="real-verify2" src="http://www.supportsages.com/blog/wp-content/uploads/2010/10/real-verify2.png" alt="" width="623" height="348" /></a></p>
<p>As you can see the screenshot above you will have a drop down menu for a list of domain registrars among which you can choose yours and do as instructed. Otherwise you can simply choose the &#8216; <em><strong>Others</strong></em> &#8216; option from the drop down menu and follow the simple set of instructions which gets listed.<br />
This will look somewhat like the following :</p>
<p>&lt;&lt;</p>
<p><em>A TXT record is an entry within the Domain Name System (DNS) that provides supplemental information about your domain. You can create a TXT record that proves to Google that you own the domain.</em></p>
<p><em>1.<strong> Add</strong> the TXT record below to the DNS configuration for <strong>your-domain.com.</strong><br />
google-site-verification=Zy5aERjpb4-T1S0Ig36pGuHDOE5MycRBGsVmCtVeTLY<br />
2. <strong>Click</strong> verify below.<br />
When Google finds this DNS TXT record, we&#8217;ll make you a verified owner of the domain. (Note: DNS changes may take some time. If we don&#8217;t find the record immediately, we&#8217;ll check for it periodically.)<br />
Leave the TXT record in place even after verification succeeds. </em></p>
<p><em>&gt;&gt;<br />
</em></p>
<p>For adding the TXT record in the DNS zone log into your domain control panel and choose the<strong> edit DNS zone</strong> option. The name of the option might vary between control panels, but they provide the same functionalities. I am pasting yet another screenshot which might help you through this simple process.</p>
<p><strong>NOTE</strong> : For the rest of the article I will be siting examples and providing screenshots only from, and in reference to, the <strong>cPanel</strong>. But it will not be difficult to figure out how it is done in other control panels once you get an idea on what we are doing here.</p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/10/real-TXT.png" class="thickbox no_icon" rel="gallery-1367" title="TXT"><img class="alignnone size-full wp-image-1404" title="TXT" src="http://www.supportsages.com/blog/wp-content/uploads/2010/10/real-TXT.png" alt="" width="606" height="76" /></a></p>
<p>You can see that I simply pasted the text mentioned in the instructions. After doing this you can click on &#8216;<em><strong>Verify</strong></em>&#8216; which will, quite obviously, verify if the entry is made and thereby confirming your authority over the domain.</p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } --></p>
<div class="tweetthis" style="text-align:left;"><p> <a  class="tt" href="http://twitter.com/home/?status=How+to+setup+50+free+Google+powered+email+accounts+for+your+domain+with+cPanel+-+Part+%281%29+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F1367" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter3.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=How+to+setup+50+free+Google+powered+email+accounts+for+your+domain+with+cPanel+-+Part+%281%29+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F1367" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2010/10/setup-google-apps-on-your-domain-with-cpanel-and-create-upto-50-custom-email-accounts-for-free-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Migrate the solusVM master server.</title>
		<link>http://www.supportsages.com/blog/2010/10/how-to-migrate-the-solusvm-master-server/</link>
		<comments>http://www.supportsages.com/blog/2010/10/how-to-migrate-the-solusvm-master-server/#comments</comments>
		<pubDate>Sun, 03 Oct 2010 14:13:56 +0000</pubDate>
		<dc:creator>Sam</dc:creator>
				<category><![CDATA[Howtos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[master migration]]></category>
		<category><![CDATA[solusvm]]></category>
		<category><![CDATA[solusvm master]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=1344</guid>
		<description><![CDATA[This post explains the step-by-step process of migrating a SolusVM master from one node to another.

Lets call the old Master node as 'x' and the server to which Solusvm Master has to be migrated(new Master) as 'y'

Login to the server 'y':

<strong>Install SolusVM Master:</strong>

[bash]wget http://soluslabs.com/installers/solusvm/install[/bash]

[bash]chmod 755 install
[bash]./install[/bash]

<a href="http://www.supportsages.com/blog/wp-content/uploads/2010/10/solus1.png"><img class="aligncenter size-full wp-image-1348" title="solus1" src="http://www.supportsages.com/blog/wp-content/uploads/2010/10/solus1.png" alt="" width="587" height="389" /></a>Choose the option '1' and hit 'Enter'

<a href="http://www.supportsages.com/blog/wp-content/uploads/2010/10/solus2.png"><img class="aligncenter size-full wp-image-1349" title="solus2" src="http://www.supportsages.com/blog/wp-content/uploads/2010/10/solus2.png" alt="" width="583" height="390" /></a>Choose Option '2' and continue with the installation.

This will now automatically finish the installation and once this is completed, you can access the new master admin page from here ...]]></description>
			<content:encoded><![CDATA[<p>This post explains the step-by-step process of migrating a SolusVM master from one node to another.</p>
<p>Lets call the old Master node as &#8216;x&#8217; and the server to which Solusvm Master has to be migrated(new Master) as &#8216;y&#8217;</p>
<p>Login to the server &#8216;y&#8217;:</p>
<p><strong>Install SolusVM Master:</strong></p>
<pre class="brush: bash; title: ; notranslate">wget http://soluslabs.com/installers/solusvm/install</pre>
<pre class="brush: bash; title: ; notranslate">chmod 755 install
1./install</pre>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/10/solus1.png" class="thickbox no_icon" rel="gallery-1344" title="solus1"><img class="aligncenter size-full wp-image-1348" title="solus1" src="http://www.supportsages.com/blog/wp-content/uploads/2010/10/solus1.png" alt="" width="587" height="389" /></a>Choose the option &#8217;1&#8242; and hit &#8216;Enter&#8217;</p>
<p><a  href="http://www.supportsages.com/blog/wp-content/uploads/2010/10/solus2.png" class="thickbox no_icon" rel="gallery-1344" title="solus2"><img class="aligncenter size-full wp-image-1349" title="solus2" src="http://www.supportsages.com/blog/wp-content/uploads/2010/10/solus2.png" alt="" width="583" height="390" /></a>Choose Option &#8217;2&#8242; and continue with the installation.</p>
<p>This will now automatically finish the installation and once this is completed, you can access the new master admin page from here :</p>
<p>http://newmasterip:5353/admincp/login.php and login using [Default]</p>
<p>Username : vpsadmin</p>
<p>password : vpsadmin</p>
<p>We are now done with the new master server setup. We can now proceed with the migration. Login to the server &#8216;x&#8217; via SSH. The master node saves all added vps/container informations on a database. We could find the database username and password from the file /usr/local/solusvm/includes/solusvm.conf</p>
<p>eg :</p>
<pre>SolfGhcMZ8zjyx<strong>:</strong>SolfsfgDl13IQ<strong>:</strong>7qb7Tdo6fZS2CQoLfjfjhrDOYNvb8<strong>:</strong>localhost<strong>:</strong>4LJ3ddew285TfW3EE0Z9G5YZK7ROR74AT7WVJEDSIZ</pre>
<p>The four field consists of &lt;databasename&gt;:&lt;use&gt;:&lt;password&gt;:&lt;host&gt;:&lt;the key&gt; Here the database name and database  are SolfGhcMZ8zjyx<strong> <strong>and</strong> </strong>SolfsfgDl13IQ respectively.</p>
<p>We now need to backup the database and restore it to the new Master.</p>
<p>To backup the database :</p>
<pre class="brush: bash; title: ; notranslate">mysqldump SolfGhcMZ8zjyx &gt; SolfGhcMZ8zjyx.sql</pre>
<p>Now copy the database backup SolfGhcMZ8zjyx.sql to the new server. (SCP/FTP)</p>
<p>Login to the server &#8216;x&#8217;/new master:</p>
<p>Find the database name and user of the new server and restore the old back to it.</p>
<p>Find the database name and user from /usr/local/solusvm/includes/solusvm.conf. We new need to restore the old back to the new database here.</p>
<pre class="brush: bash; title: ; notranslate">/usr/bin/mysql --user=newuser --password=newpassword  newdatabasename &lt; SolfGhcMZ8zjyx.sql</pre>
<p>Verify the migration by login to http://newmasterip:5353/admincp/login.php and check whether you are able to list the VPS of old master server. Make sure that you update the master IP on all slaves to the new master IP from /usr/local/solusvm/data/allow.dat</p>
<div class="tweetthis" style="text-align:left;"><p> <a  class="tt" href="http://twitter.com/home/?status=How+to+Migrate+the+solusVM+master+server.+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F1344" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter3.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=How+to+Migrate+the+solusVM+master+server.+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F1344" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2010/10/how-to-migrate-the-solusvm-master-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IFS</title>
		<link>http://www.supportsages.com/blog/2010/09/ifs/</link>
		<comments>http://www.supportsages.com/blog/2010/09/ifs/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 18:51:19 +0000</pubDate>
		<dc:creator>victor</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Customer Care]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Howtos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Offers]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Specials]]></category>
		<category><![CDATA[Training]]></category>
		<category><![CDATA[Troubleshooting]]></category>
		<category><![CDATA[ifs]]></category>
		<category><![CDATA[linux. bash]]></category>
		<category><![CDATA[while]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=1236</guid>
		<description><![CDATA[How many times have you written scripts and a had bad time with those having spaces? The remedy to this situation is your IFS value.

IFS or Internal Field Seperator holds the value which seperates the various entities. This can be file names, values read into a script by read etc. It is the character or characters designated as whitespace by the operating system.

The IFS is set to the newline and space character. The global variable $IFS stores the value. To view the exact value stored in IFS execute:
[bash]
echo &#34;$IFS&#34; &#124; cat -vTE
 ^I$
$
[/bash]
Running echo "$IFS" will not give you any ...]]></description>
			<content:encoded><![CDATA[<p>How many times have you written scripts and a had bad time with those having spaces? The remedy to this situation is your IFS value.</p>
<p>IFS or Internal Field Seperator holds the value which seperates the various entities. This can be file names, values read into a script by read etc. It is the character or characters designated as whitespace by the operating system.</p>
<p>The IFS is set to the newline and space character. The global variable $IFS stores the value. To view the exact value stored in IFS execute:</p>
<pre class="brush: bash; title: ; notranslate">
echo &quot;$IFS&quot; | cat -vTE
 ^I$
$
</pre>
<p>Running echo &#8220;$IFS&#8221; will not give you any visible output (after all, you are going to see a space and a newline). cat -vTE displays non printable characters , tabs as ^I and ends each line with a $ sign.</p>
<p>In a script which utilises filenames (with spaces), it is always preferable to change the IFS to include only the newline character opposed to the default space and newline character. Lets check out one such script which accepts filenames wih spaces. This scripts simply prints the file names in your current directory. (Remember to create some files in your currenct directory which has spaces. You may try the same script removing the lines with the IFS variable in reference to see the difference)</p>
<pre class="brush: bash; title: ; notranslate">
#!/bin/bash
OIFS=$IFS # Original IFS

IFS=$(echo -en &quot;\n\b&quot;) # New IFS

for fil in $(ls -1 $PWD); do
	echo $fil
done

IFS=$OIFS # Restore earlier IFS
</pre>
<p>IFS can also be used to read files with lines sepearated by a special character. For example in the /etc/passwd, to store the various entries like username, homedirectory etc.</p>
<p>The following script uses the while construct to determine the users who have the shell portion as /bin/false</p>
<pre class="brush: bash; title: ; notranslate">
#!/bin/bash

OIFS=$IFS
IFS=':'

while read username password userid groupid comments homedir shell_avail
do
	if [[ $shell_avail == /bin/false ]]; then
                echo &quot;$username has no shell&quot;
        fi

done &lt; /etc/passwd
IFS=$OIFS
</pre>
<p>In the above script each of the 7 portions of the /etc/passwd file is assigned to the 7 variables<br />
username password userid groupid comments homedir shell_avail with the read command. The if portion in the script compares the seventh variable &#8211; shell_avail to /bin/false to determine the username and outputs it. </p>
<p>From now on you can use the IFS variable for all those files with spaces and extracting values separated by a special character.</p>
<div class="tweetthis" style="text-align:left;"><p> <a  class="tt" href="http://twitter.com/home/?status=IFS+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F1236" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter3.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=IFS+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F1236" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2010/09/ifs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RootKits and anti rootkits</title>
		<link>http://www.supportsages.com/blog/2010/09/rootkits-and-anti-rootkits/</link>
		<comments>http://www.supportsages.com/blog/2010/09/rootkits-and-anti-rootkits/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 18:40:25 +0000</pubDate>
		<dc:creator>victor</dc:creator>
				<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Designing]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[Howtos]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Offers]]></category>
		<category><![CDATA[PostgreSQL]]></category>
		<category><![CDATA[Snippets]]></category>
		<category><![CDATA[Specials]]></category>
		<category><![CDATA[Training]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[chkrootkit]]></category>
		<category><![CDATA[rootkit]]></category>
		<category><![CDATA[vulnerability]]></category>

		<guid isPermaLink="false">http://www.supportsages.com/blog/?p=1230</guid>
		<description><![CDATA[A rootkit is a collection of programs that enable an attacker to get the same privilage as the root user in a linux or unix system. The word is composed of two portions: 'root' - meaning the application will provide the highest access level of the root/administrator in the system and 'kit' - meaning it has a number of tools.

Attackers after getting access to a server, will install a rootkit to hide their identity and run desired scripts anywhere within the server. It makes the life of a hacker easy once installed. Rootkits are not easily detectable. Sometimes, if the ...]]></description>
			<content:encoded><![CDATA[<p>A rootkit is a collection of programs that enable an attacker to get the same privilage as the root user in a linux or unix system. The word is composed of two portions: &#8216;root&#8217; &#8211; meaning the application will provide the highest access level of the root/administrator in the system and &#8216;kit&#8217; &#8211; meaning it has a number of tools.</p>
<p>Attackers after getting access to a server, will install a rootkit to hide their identity and run desired scripts anywhere within the server. It makes the life of a hacker easy once installed. Rootkits are not easily detectable. Sometimes, if the rootkit is one of the latest ones without a diagnosis, the server will have to be rebuild from scratch.</p>
<p>A rootkit will have multiple applications for cracking the entire server, some of them are:</p>
<p><strong>Server Access Applications (Back door application)</strong><br />
These applications will create a backdoor to log in to the hacked system without using the exploit again.</p>
<p><strong>Log clearing Applications</strong><br />
These applications clear the logs of the events performed by the hacker or the applications used. They all the associated log files in the server.</p>
<p><strong>Packet sniffing Applications</strong><br />
These applications monitor the data through the various interfaces in the server at particular ports.</p>
<p><strong>Malicious Scripts</strong><br />
Many scripts will be installed like IRC bots, ddos daemons, spam servers, trojans, worms etc.</p>
<p>There are mainly two kinds of root kits. The application rootkit and the kernel rootkit.</p>
<p><strong>Application rootkits</strong><br />
These rootkits mimic a particular application and will hide the attackers files/processes from being revealed by the original application. To illustrate, a rootkit <em>ls </em>application will perform all the task of a normal ls but will not display any of the files of the attacker. Other application rootkits will create backdoors for unauthorised access, packet sniffers etc which go undetected or are hidden by renaming. Application rootkits are the most common.</p>
<p><strong>Kernel rootkits</strong><br />
Kernel rootkits modify the kernel and apply patches to the kernel and device drivers. They also hide the applications and files of the attacker. As antivirus and other applications run beneath the kernel, they are the most undetectable rootkits.</p>
<p>&#8216;Prevention is better than cure&#8217; &#8211; as this saying goes, it is always better to keep the system secure and updated when ever possible to stop these installations. There are some applications which help detect any known rootkits running in the system. One such is the chkrootkit.</p>
<p>chkrootkit is one of the popular rootkit detectors (an anti-rootkit) and it is know to detect common rootkits on unix/linux servers. chkrootkit relies on basic string processing techniques to determine the presence of rootkits. It scans specific sytem files and binaries targeted by rootkits for known signatures.</p>
<p>The following are the instructions to install chkrootkit version 0.49 in a server.</p>
<pre class="brush: bash; title: ; notranslate">cd /usr/local/

wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz

wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.md5

md5sum -c chkrootkit.md5 # to check if the downloaded file is intact

tar -xzf chkrootkit.tar.gz

cd chkrootkit-0.49/

make sense

./chkrootkit
</pre>
<p>chkroootkit will check all the files and display the status of the files analysed. This information may be logged for future reference. For this a cron job may be setup to be run at least once a month.</p>
<p>Inserting an entry like the one below into the systems cron tasks (executed atleast once a month) will send the report of the chkrootkit vulnerabilities to the administrator conserned.</p>
<pre class="brush: bash; title: ; notranslate">/usr/local/chkrootkit-0.49/chkrootkit | mail -s &quot;chkrootkit report $(date +%d/%m/%y)&quot; &quot;admin@domain.com&quot;</pre>
<div class="tweetthis" style="text-align:left;"><p> <a  class="tt" href="http://twitter.com/home/?status=RootKits+and+anti+rootkits+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F1230" title="Post to Twitter"><img class="nothumb" src="http://www.supportsages.com/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter3.png" alt="Post to Twitter" /></a> <a  class="tt" href="http://twitter.com/home/?status=RootKits+and+anti+rootkits+http%3A%2F%2Fwww.supportsages.com%2Fblog%2F1230" title="Post to Twitter">Tweet This Post</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.supportsages.com/blog/2010/09/rootkits-and-anti-rootkits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

