<?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>ThinkSupport.net - Outsourced Web Hosting Support, Cheap Server Management, Cheap Fully Managed Dedicated Servers, Software Development, Website Designing and SEO services, Vision Helpdesk Software &#187; HSP</title>
	<atom:link href="http://www.thinksupport.net/blog/category/hsp/feed" rel="self" type="application/rss+xml" />
	<link>http://www.thinksupport.net/blog</link>
	<description>Outsourced Web Hosting and Software Development</description>
	<lastBuildDate>Wed, 27 Jan 2010 15:47:35 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Send Email from a PHP Script</title>
		<link>http://www.thinksupport.net/blog/how-to-send-email-from-a-php-script.html</link>
		<comments>http://www.thinksupport.net/blog/how-to-send-email-from-a-php-script.html#comments</comments>
		<pubDate>Sat, 12 Jan 2008 06:22:43 +0000</pubDate>
		<dc:creator>Sachin</dc:creator>
				<category><![CDATA[Direct Admin]]></category>
		<category><![CDATA[Ensim]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[HSP]]></category>
		<category><![CDATA[HSphere]]></category>
		<category><![CDATA[Helm]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP / Mysql]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[WHM/cPanel]]></category>

		<guid isPermaLink="false">http://thinksupport.net/blog/how-to-send-email-from-a-php-script.html</guid>
		<description><![CDATA[Using  php mail() function to send emails from php script.
Send Email from a PHP Script Example :
The first argument to this function is the recipient, the second specifies the message&#8217;s subject and the third one should contain the body. So to send a simple sample message, we could use:

]]></description>
			<content:encoded><![CDATA[<p>Using  php mail() function to send emails from php script.</p>
<p>Send Email from a PHP Script Example :</p>
<p>The first argument to this function is the recipient, the second specifies the message&#8217;s subject and the third one should contain the body. So to send a simple sample message, we could use:</p>
<blockquote><p>
<? php<br />
    $to = "recipient@example.com";<br />
    $subject = "Hi!";<br />
    $body = "Hi,\n\nHow are you?";<br />
    if (mail($to, $subject, $body)) {<br />
      echo("
<p>Message successfully sent!</p>
<p>&#8220;);<br />
     } else {<br />
      echo(&#8221;
<p>Message delivery failed&#8230;</p>
<p>&#8220;);<br />
     }<br />
    ?>
</p></blockquote>
<p>Save this file as mail.php and browse from url http://yourdomain/mail.php </p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/how-to-send-email-from-a-php-script.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing mytop ..</title>
		<link>http://www.thinksupport.net/blog/installing-mytop.html</link>
		<comments>http://www.thinksupport.net/blog/installing-mytop.html#comments</comments>
		<pubDate>Thu, 19 Apr 2007 15:31:51 +0000</pubDate>
		<dc:creator>Sachin</dc:creator>
				<category><![CDATA[Articles -- Webhosting]]></category>
		<category><![CDATA[Direct Admin]]></category>
		<category><![CDATA[Ensim]]></category>
		<category><![CDATA[HSP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PHP / Mysql]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[WHM/cPanel]]></category>

		<guid isPermaLink="false">http://thinksupport.net/blog/?p=44</guid>
		<description><![CDATA[MySQL is one of the most important programs on a server, unfortunatly it is also pretty resource intensive. One a server it is not uncommon for a single user or even a query to take up the bulk of the servers cpu cycles. Mytop is a very useful program to see what queries a server [...]]]></description>
			<content:encoded><![CDATA[<p>MySQL is one of the most important programs on a server, unfortunatly it is also pretty resource intensive. One a server it is not uncommon for a single user or even a query to take up the bulk of the servers cpu cycles. Mytop is a very useful program to see what queries a server is currently processing as well as which user is executing them. Think of mytop as top for mysql. If you see a lot from a user that means they are probably the hog. Mytop can also be useful for figuring out exactly which queries are causing the problem in the case of a self-designed website. The following is how to install mytop on the server and run it. Thanks to carlos for the actual commands</p>
<p>We are going to install 2 perl modules in addition to mytop to ensure that it will work.</p>
<p>Install TermReadKey:</p>
<p>cd /usr/local/src<br />
wget http://search.cpan.org/CPAN/authors/id/J/JS/JSTOWE/TermReadKey-2.30.tar.gz<br />
tar -zxf TermReadKey-2.30.tar.gz<br />
cd TermRead*<br />
perl Makefile.PL<br />
make test<br />
make<br />
make install<br />
cd ..</p>
<p>Now install DBI:</p>
<p>wget http://search.cpan.org/CPAN/authors/id/T/TI/TIMB/DBI-1.48.tar.gz<br />
tar -zxf DBI-1.48.tar.gz<br />
cd DBI*<br />
perl Makefile.PL<br />
make test<br />
make<br />
make install<br />
cd ..</p>
<p>Finally install mytop:</p>
<p>wget http://jeremy.zawodny.com/mysql/mytop/mytop-1.4.tar.gz<br />
tar -zxf mytop-1.4.tar.gz<br />
cd mytop*<br />
perl Makefile.PL<br />
make test<br />
make<br />
make install</p>
<p>Now simply run &#8220;mytop&#8221; and your done!</p>
<p>Thanks to <a href="http://eth0.us">eth0</a> <img src='http://www.thinksupport.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/installing-mytop.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to disable direct root login ?</title>
		<link>http://www.thinksupport.net/blog/how-to-disable-direct-root-login.html</link>
		<comments>http://www.thinksupport.net/blog/how-to-disable-direct-root-login.html#comments</comments>
		<pubDate>Tue, 17 Apr 2007 09:41:27 +0000</pubDate>
		<dc:creator>Sachin</dc:creator>
				<category><![CDATA[Articles -- Webhosting]]></category>
		<category><![CDATA[Direct Admin]]></category>
		<category><![CDATA[Ensim]]></category>
		<category><![CDATA[HSP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[WHM/cPanel]]></category>

		<guid isPermaLink="false">http://thinksupport.net/blog/?p=11</guid>
		<description><![CDATA[1. SSH into your server as &#8216;admin&#8217; and gain root access by su  
2. Copy and paste this line to edit the file for SSH logins
pico -w /etc/ssh/sshd_config
3. Find the line
Protocol 2, 1 
4. Uncomment it and change it to look like
Protocol 2
5. Next, find the line
PermitRootLogin yes
6. Uncomment it and make it look [...]]]></description>
			<content:encoded><![CDATA[<p>1. SSH into your server as &#8216;admin&#8217; and gain root access by su  </p>
<p>2. Copy and paste this line to edit the file for SSH logins<br />
pico -w /etc/ssh/sshd_config</p>
<p>3. Find the line<br />
Protocol 2, 1 </p>
<p>4. Uncomment it and change it to look like<br />
Protocol 2</p>
<p>5. Next, find the line<br />
PermitRootLogin yes</p>
<p>6. Uncomment it and make it look like PermitRootLogin no </p>
<p>7. Save the file Ctrl+X then Y then enter </p>
<p>8. Now you can restart SSH<br />
/etc/rc.d/init.d/sshd restart</p>
<p>Now, no one will be able to login to root with out first loggin in as admin and &#8217;su -&#8217; to root, and you will be forcing the use of a more secure protocol. Just make sure you remember both passwords! </p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/how-to-disable-direct-root-login.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>E-mail Alert on Root SSH Login</title>
		<link>http://www.thinksupport.net/blog/e-mail-alert-on-root-ssh-login.html</link>
		<comments>http://www.thinksupport.net/blog/e-mail-alert-on-root-ssh-login.html#comments</comments>
		<pubDate>Tue, 17 Apr 2007 09:38:21 +0000</pubDate>
		<dc:creator>Sachin</dc:creator>
				<category><![CDATA[Articles -- Webhosting]]></category>
		<category><![CDATA[Direct Admin]]></category>
		<category><![CDATA[Ensim]]></category>
		<category><![CDATA[HSP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[WHM/cPanel]]></category>

		<guid isPermaLink="false">http://thinksupport.net/blog/?p=10</guid>
		<description><![CDATA[1. Login to your server and su to root.
2. cd /root
3. pico .bashrc
4. Scroll to the end of the file then add the following:
echo &#8216;ALERT &#8211; Root Shell Access (YourserverName) on:&#8217; `date` `who` &#124; mail -s &#8220;Alert: Root Access from `who &#124; cut -d&#8221;(&#8221; -f2 &#124; cut -d&#8221;)&#8221; -f1`&#8221; you@yourdomain.com
Replace YourServerName with the handle for [...]]]></description>
			<content:encoded><![CDATA[<p>1. Login to your server and su to root.</p>
<p>2. cd /root</p>
<p>3. pico .bashrc</p>
<p>4. Scroll to the end of the file then add the following:<br />
echo &#8216;ALERT &#8211; Root Shell Access (YourserverName) on:&#8217; `date` `who` | mail -s &#8220;Alert: Root Access from `who | cut -d&#8221;(&#8221; -f2 | cut -d&#8221;)&#8221; -f1`&#8221; you@yourdomain.com</p>
<p>Replace YourServerName with the handle for your actual server<br />
Replace you@yourdomain.com with your actual email address</p>
<p>5. Crtl + X  then Y</p>
<p>Now logout of SSH, close the connection and log back in! You should receive an email address of the root login alert a few minutes afterwards.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/e-mail-alert-on-root-ssh-login.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable Telnet</title>
		<link>http://www.thinksupport.net/blog/disable-telnet.html</link>
		<comments>http://www.thinksupport.net/blog/disable-telnet.html#comments</comments>
		<pubDate>Tue, 17 Apr 2007 09:34:28 +0000</pubDate>
		<dc:creator>Sachin</dc:creator>
				<category><![CDATA[Articles -- Webhosting]]></category>
		<category><![CDATA[Direct Admin]]></category>
		<category><![CDATA[Ensim]]></category>
		<category><![CDATA[HSP]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[WHM/cPanel]]></category>

		<guid isPermaLink="false">http://thinksupport.net/blog/?p=9</guid>
		<description><![CDATA[Telnet sends clear text passwords and usernames through logins and should be disabled on all web servers and replaced with SSH.
Some hosting providers are not disabling telnet by default but you should ensure that it has been turned off as it&#8217;s a great security risk to your servers. TELNET server listens for incoming messages on [...]]]></description>
			<content:encoded><![CDATA[<p>Telnet sends clear text passwords and usernames through logins and should be disabled on all web servers and replaced with SSH.<br />
Some hosting providers are not disabling telnet by default but you should ensure that it has been turned off as it&#8217;s a great security risk to your servers. TELNET server listens for incoming messages on port 23, and sends outgoing messages to port 23.</p>
<p>1. Login to your server through SSH and su to root.</p>
<p>2. Type pico /etc/xinetd.d/telnet</p>
<p>3. Look for the line: disable = no and replace with disable = yes</p>
<p>4. Now restart the inetd service: /etc/rc.d/init.d/xinetd restart</p>
<p>5. Turn off it through chkconfig as well because it can still start through that.<br />
/sbin/chkconfig telnet off</p>
<p>6. Scan your server to ensure port 23 is closed.<br />
nmap -sT -O localhost<br />
Also run ps -aux | grep telnet and if you find anything other than &#8220;grep telnet&#8221; as result kill the process.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/disable-telnet.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Happy Bloging :)</title>
		<link>http://www.thinksupport.net/blog/happy-bloging.html</link>
		<comments>http://www.thinksupport.net/blog/happy-bloging.html#comments</comments>
		<pubDate>Thu, 12 Apr 2007 13:11:21 +0000</pubDate>
		<dc:creator>Sachin</dc:creator>
				<category><![CDATA[Articles -- Webhosting]]></category>
		<category><![CDATA[Direct Admin]]></category>
		<category><![CDATA[Ensim]]></category>
		<category><![CDATA[Fantastico / Installatron]]></category>
		<category><![CDATA[HSP]]></category>
		<category><![CDATA[Kernel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ModernBill]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[WHM Auto Pilot]]></category>
		<category><![CDATA[WHM/cPanel]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://thinksupport.net/blog/?p=3</guid>
		<description><![CDATA[Happy Bloging  
]]></description>
			<content:encoded><![CDATA[<p>Happy Bloging <img src='http://www.thinksupport.net/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/happy-bloging.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hello world!</title>
		<link>http://www.thinksupport.net/blog/hello-world.html</link>
		<comments>http://www.thinksupport.net/blog/hello-world.html#comments</comments>
		<pubDate>Wed, 31 Dec 1969 18:00:00 +0000</pubDate>
		<dc:creator>Ajay</dc:creator>
				<category><![CDATA[Articles -- Webhosting]]></category>
		<category><![CDATA[C# / VB/ ASP .net]]></category>
		<category><![CDATA[Direct Admin]]></category>
		<category><![CDATA[Domains]]></category>
		<category><![CDATA[Ensim]]></category>
		<category><![CDATA[Fantastico / Installatron]]></category>
		<category><![CDATA[HSP]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Kayako Helpdesk]]></category>
		<category><![CDATA[Kernel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ModernBill]]></category>
		<category><![CDATA[PHP / Mysql]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[Ubersmith]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[Virtuozzo]]></category>
		<category><![CDATA[WHM Auto Pilot]]></category>
		<category><![CDATA[WHM/cPanel]]></category>
		<category><![CDATA[WHMCS]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
]]></description>
			<content:encoded><![CDATA[<p>Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.thinksupport.net/blog/hello-world.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
