<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>HostOnNet.com</title>
	
	<link>http://blog.hostonnet.com</link>
	<description>Windows, Linux, Ubuntu, Web Hosting</description>
	<lastBuildDate>Fri, 18 May 2012 16:19:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/hostonnet" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="hostonnet" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">hostonnet</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>How to mount a new Hard Drive on your Linux Server</title>
		<link>http://blog.hostonnet.com/how-to-mount-a-new-hard-drive-on-your-linux-server</link>
		<comments>http://blog.hostonnet.com/how-to-mount-a-new-hard-drive-on-your-linux-server#comments</comments>
		<pubDate>Fri, 18 May 2012 16:17:36 +0000</pubDate>
		<dc:creator>Melbin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[fdisk]]></category>
		<category><![CDATA[how to mount and parition a new hard drive]]></category>
		<category><![CDATA[mount new hdd]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=1132</guid>
		<description><![CDATA[This is a simple guide on how to mount and parition a new hard drive to be used only for backups. This guide uses fdisk which is a very powerful tool but you should be fine as long as you &#8230; <a href="http://blog.hostonnet.com/how-to-mount-a-new-hard-drive-on-your-linux-server">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This is a simple guide on how to mount and parition a new hard drive to be used only for backups.</p>
<p>This guide uses fdisk which is a very powerful tool but you should be fine as long as you are careful in what you do. Use this guide at your own risk!<br />
What ever you do make sure to NOT use the command &#8220;<strong>fdisk /dev/sda</strong>&#8221; or &#8220;<strong>fdisk /dev/hda</strong>&#8221; as that means you are editing your main and boot partition!<br />
Be careful and follow this guide precisely </p>
<p>First run fdisk to look at your available disks.</p>
<pre># fdisk -l</pre>
<blockquote><p>Disk /dev/hda: 80.0 GB, 80000000000 bytes<br />
255 heads, 63 sectors/track, 9726 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes</p>
<p>Device Boot Start End Blocks Id System<br />
/dev/hda1 * 1 13 104391 83 Linux<br />
/dev/hda2 14 268 2048287+ 82 Linux swap<br />
/dev/hda3 269 9726 75971385 83 Linux</p>
<p>Disk /dev/hdc: 80.0 GB, 80000000000 bytes<br />
255 heads, 63 sectors/track, 9726 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes</p></blockquote>
<p>Device Boot Start End Blocks Id System</p>
<p>What we see above is two seperate disks, one being hda and the other is hdc. The hda is the main boot drive and as I stated above you do not want to touch it!</p>
<p>The first step is going to format the drive. If the drive is hdb, hdd, sdb, sdc, sdd simply replace &#8220;hdc&#8221; wherever you see in the guide with this.</p>
<pre>#fdisk /dev/hdc</pre>
<p>-press &#8220;<strong>n</strong>&#8221; for new partion<br />
-press &#8220;<strong>p</strong>&#8221; for primary partition<br />
-press &#8220;<strong>1</strong>&#8221; for the first partition<br />
-press enter for the first AND last cylinders. This will make it automatically use the entire disk<br />
-press &#8220;<strong>w</strong>&#8221; for write out to save what you have done</p>
<p>The next step is to make the filesystem readable by linux. I am going to have you format it in ext3 which is the most common filesystem type.</p>
<pre>#mkfs.ext3 /dev/hdc1</pre>
<p>Note that I have used &#8220;hdc1&#8243; because it is the first partition. Now we are going to set the disk to automatically be mounted on boot as /backup. Again if you want it placed someplace else simply rename the directory.</p>
<pre>#mkdir /backup

#pico -w /etc/fstab</pre>
<p>Add the following line:</p>
<pre>/dev/hdc1 /backup ext3 defaults 1 1</pre>
<p>Now test it out</p>
<pre>#mount /backup</pre>
<p>This guide should work fine for any server, it is not dependent on control panel.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/how-to-mount-a-new-hard-drive-on-your-linux-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Reset Forgotten Linux Root Password</title>
		<link>http://blog.hostonnet.com/how-to-reset-forgotten-linux-root-password</link>
		<comments>http://blog.hostonnet.com/how-to-reset-forgotten-linux-root-password#comments</comments>
		<pubDate>Fri, 18 May 2012 16:11:32 +0000</pubDate>
		<dc:creator>Melbin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[linux root password]]></category>
		<category><![CDATA[reset root password]]></category>
		<category><![CDATA[root password]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=1130</guid>
		<description><![CDATA[Whenever you can&#8217;t remember your Root password, you can do this steps to reset it. You can log in with single-user mode and create a new root password. Reboot your computer. When GRUB is presenting the menu list, follow those &#8230; <a href="http://blog.hostonnet.com/how-to-reset-forgotten-linux-root-password">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Whenever you can&#8217;t remember your Root password, you can do this steps to reset it.</p>
<p>You can log in with single-user mode and create a new root password.</p>
<p>Reboot your computer. When GRUB is presenting the menu list, follow those instructions:</p>
<p>    use the arrows to select the boot entry you want to modify<br />
    press <strong>e</strong> to edit the entry<br />
    use the arrows to go to kernel line<br />
    press <strong>e</strong> to edit this entry<br />
    at the end of the line add the word <strong>single</strong> (there should be a space between like  / single)<br />
    press ENTER to go back to the parent menu<br />
    press <strong>b</strong> to boot this kernel</p>
<p>As root, changing password does not ask for your old password. Now, you can change root&#8217;s password by typing:</p>
<pre>bash# passwd root</pre>
<p>You&#8217;ll be asked to re-type the password for verification. Once you&#8217;re finished, the password will be changed and you can reboot by typing shutdown -r now at the prompt; then you can log in to root as before</p>
<p><strong>If your boot loader is LILO follow this</strong></p>
<p>At LILO boot loader type linux single and press [ENTER] key:</p>
<pre>Boot: linux single</pre>
<p>When you get the # prompt you will need to type passwd root to reset password:</p>
<pre># passwd root</pre>
<p>Reboot system:</p>
<pre># sync
# reboot</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/how-to-reset-forgotten-linux-root-password/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to find Network Card’s Mac Address in CentOS</title>
		<link>http://blog.hostonnet.com/how-to-find-network-cards-mac-address-in-centos</link>
		<comments>http://blog.hostonnet.com/how-to-find-network-cards-mac-address-in-centos#comments</comments>
		<pubDate>Fri, 18 May 2012 16:07:14 +0000</pubDate>
		<dc:creator>Melbin</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[hwaddr]]></category>
		<category><![CDATA[mac address]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=1128</guid>
		<description><![CDATA[Open SSH and type the following and press Enter: /sbin/ifconfig &#124; grep -i hwaddr The sequence of hexadecimal digits that appears to the right of eth0 HWAddr (e.g. 08:00:27:ED:DA:8b) is your network card&#8217;s MAC Address]]></description>
			<content:encoded><![CDATA[<p>Open SSH and type the following and press Enter:</p>
<pre>/sbin/ifconfig | grep -i hwaddr</pre>
<p>The sequence of hexadecimal digits that appears to the right of eth0 HWAddr (e.g. 08:00:27:ED:DA:8b) is your network card&#8217;s MAC Address</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/how-to-find-network-cards-mac-address-in-centos/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Change the SSH port on cPanel Servers</title>
		<link>http://blog.hostonnet.com/how-to-change-the-ssh-port-on-cpanel-servers</link>
		<comments>http://blog.hostonnet.com/how-to-change-the-ssh-port-on-cpanel-servers#comments</comments>
		<pubDate>Fri, 18 May 2012 16:01:04 +0000</pubDate>
		<dc:creator>Melbin</dc:creator>
				<category><![CDATA[Cpanel Server]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ssh port]]></category>
		<category><![CDATA[sshd_config]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=1126</guid>
		<description><![CDATA[To change the SSH port login as root, and edit /etc/ssh/sshd_config Find the line that says Port 22 and change 22 to any number between 1024-&#62;65535 (above 30000 is best) and save the file. Once done, run: /etc/init.d/sshd restart Now &#8230; <a href="http://blog.hostonnet.com/how-to-change-the-ssh-port-on-cpanel-servers">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>To change the SSH port login as root, and edit</p>
<pre>/etc/ssh/sshd_config</pre>
<p>Find the line that says Port 22 and change 22 to any number between 1024-&gt;65535 (above 30000 is best) and save the file.</p>
<p>Once done, run:</p>
<pre>/etc/init.d/sshd restart</pre>
<p>Now start a new SSH session (don’t close your existing one), to make sure that you can get in.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/how-to-change-the-ssh-port-on-cpanel-servers/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Change Hostname and IP on a CentOS Server</title>
		<link>http://blog.hostonnet.com/how-to-change-hostname-and-ip-on-a-centos-server</link>
		<comments>http://blog.hostonnet.com/how-to-change-hostname-and-ip-on-a-centos-server#comments</comments>
		<pubDate>Thu, 17 May 2012 17:24:21 +0000</pubDate>
		<dc:creator>Melbin</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[cent os network configuration]]></category>
		<category><![CDATA[change hostname]]></category>
		<category><![CDATA[hostname or ip]]></category>
		<category><![CDATA[sysconfig]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=1123</guid>
		<description><![CDATA[1. RedHat based system use the file /etc/sysconfig/network to read the saved hostname at system boot. This is set using the init script /etc/rc.d/rc.sysinit nano /etc/sysconfig/network NETWORKING=yes HOSTNAME=&#8221;plain.domainname.com&#8221; GATEWAY=&#8221;111.222.333.1&#8243; GATEWAYDEV=&#8221;eth0&#8243; FORWARD_IPV4=&#8221;yes&#8221; 2. TCP/IP Network Configuration Files This configures Linux so &#8230; <a href="http://blog.hostonnet.com/how-to-change-hostname-and-ip-on-a-centos-server">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>1. RedHat based system use the file /etc/sysconfig/network to read the saved hostname at system boot. This is set using the init script /etc/rc.d/rc.sysinit</p>
<pre>nano /etc/sysconfig/network</pre>
<blockquote><p>NETWORKING=yes<br />
    HOSTNAME=&#8221;plain.domainname.com&#8221;<br />
    GATEWAY=&#8221;111.222.333.1&#8243;<br />
    GATEWAYDEV=&#8221;eth0&#8243;<br />
    FORWARD_IPV4=&#8221;yes&#8221;</p></blockquote>
<p>2. TCP/IP Network Configuration Files</p>
<p>This configures Linux so that it knows which DNS server will be resolving domain names into IP addresses</p>
<pre>nano /etc/resolv.conf</pre>
<blockquote><p>search name-of-domain.com &#8211; Name of your domain or ISP&#8217;s domain if using their name server<br />
    nameserver XXX.XXX.XXX.XXX &#8211; IP address of primary name server<br />
    nameserver XXX.XXX.XXX.XXX &#8211; IP address of secondary name server</p></blockquote>
<p>3. Locally resolve node names to IP addresses</p>
<pre>nano /etc/hosts</pre>
<blockquote><p>::1             localhost6.localdomain6 localhost6<br />
    # Do not remove the following line, or various programs<br />
    # that require network functionality will fail.<br />
    111.222.333.444            yourname.server.com yourname<br />
    127.0.0.1               localhost </p></blockquote>
<p>4. Configuration settings for your first ethernet port</p>
<pre>nano /etc/sysconfig/network-scripts/ifcfg-eth0</pre>
<blockquote><p>DEVICE=eth0<br />
    BOOTPROTO=static<br />
    BROADCAST=111.222.333.255<br />
    IPADDR=111.222.333.444<br />
    NETMASK=255.255.255.0<br />
    NETWORK=111.222.333.0<br />
    ONBOOT=yes</p></blockquote>
<p>And to finalize , you need to restart your network</p>
<pre>service network restart</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/how-to-change-hostname-and-ip-on-a-centos-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Install Mod_Gzip with Apache</title>
		<link>http://blog.hostonnet.com/how-to-install-mod_gzip-with-apache</link>
		<comments>http://blog.hostonnet.com/how-to-install-mod_gzip-with-apache#comments</comments>
		<pubDate>Thu, 17 May 2012 17:18:31 +0000</pubDate>
		<dc:creator>Melbin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Cpanel Server]]></category>
		<category><![CDATA[dedicated server]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[compress php]]></category>
		<category><![CDATA[internet content accelerator]]></category>
		<category><![CDATA[mod_gzip]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=1121</guid>
		<description><![CDATA[mod_gzip is an Internet Content Acceleration module for the popular Apache Web Server. It compresses the contents delivered to the client. There is no need to install any additional software on the client! If you are having difficulties with getting &#8230; <a href="http://blog.hostonnet.com/how-to-install-mod_gzip-with-apache">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>mod_gzip is an Internet Content Acceleration module for the popular Apache Web Server. It compresses the contents delivered to the client. There is no need to install any additional software on the client!</p>
<p>If you are having difficulties with getting mod_gzip to work when compiled with using easyapache, then you can go and use this step by step manual install.</p>
<p>Log into you server using shell and your root account and download mod_gzip-1.3.26.1a.tgz (or whatever the latest version) from sourceforge.net</p>
<p>I used </p>
<pre>wget http://space.dl.sourceforge.net/project/mod-gzip/mod-gzip13x/mod_gzip-1.3.26.1a/mod_gzip-1.3.26.1a.tgz</pre>
<p>after that</p>
<pre>tar -zxvf mod_gzip-1.3.26.1a.tgz
cd mod_gzip-1.3.26.1a

make APXS=/usr/local/apache/bin/apxs
make install APXS=/usr/local/apache/bin/apxs</pre>
<p>Then edit your httpd.conf file</p>
<pre>pico /etc/httpd/conf/httpd.conf</pre>
<p>and add the following (in the AddModule stuff):</p>
<p>first uncomment:</p>
<pre>#LoadModule gzip_module libexec/mod_gzip.so</pre>
<p>to</p>
<pre>LoadModule gzip_module libexec/mod_gzip.so</pre>
<p>and</p>
<pre>#AddModule mod_gzip.c</pre>
<p>to</p>
<pre>AddModule mod_gzip.c</pre>
<p>and after AddModule mod_gzip.c add this below</p>
<pre>
&lt;IfModule mod_gzip.c&gt;
mod_gzip_on Yes
mod_gzip_can_negotiate Yes
mod_gzip_static_suffix .gz
AddEncoding gzip .gz
mod_gzip_update_static No
mod_gzip_command_version '/mod_gzip_status'
mod_gzip_temp_dir /tmp
mod_gzip_keep_workfiles No
mod_gzip_minimum_file_size 500
mod_gzip_maximum_file_size 500000
mod_gzip_maximum_inmem_size 60000
mod_gzip_min_http 1000
mod_gzip_handle_methods GET POST
mod_gzip_item_exclude reqheader &quot;User-agent: Mozilla/4.0[678]&quot;
mod_gzip_item_include file \.html$
mod_gzip_item_include file \.shtml$
mod_gzip_item_include file \.htm$
mod_gzip_item_include file \.shtm$
mod_gzip_item_include file \.php$
mod_gzip_item_include file \.phtml$
mod_gzip_item_exclude file \.js$
mod_gzip_item_exclude file \.css$
mod_gzip_item_exclude file \.wml$
mod_gzip_item_include file \.pl$
mod_gzip_item_include file \.cgi$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/html$
mod_gzip_item_include mime ^text/plain$
mod_gzip_item_include mime ^httpd/unix-directory$
mod_gzip_item_include mime ^application/x-httpd-php
mod_gzip_item_include handler ^perl-script$
mod_gzip_item_exclude mime ^image/
mod_gzip_dechunk Yes
mod_gzip_add_header_count Yes
mod_gzip_send_vary Yes
&lt;/IfModule&gt;
</pre>
<p>Then restart apache with</p>
<pre>service httpd restart</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/how-to-install-mod_gzip-with-apache/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Disable Direct Root Logins</title>
		<link>http://blog.hostonnet.com/how-to-disable-direct-root-logins</link>
		<comments>http://blog.hostonnet.com/how-to-disable-direct-root-logins#comments</comments>
		<pubDate>Thu, 17 May 2012 16:40:04 +0000</pubDate>
		<dc:creator>Melbin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[disable root login]]></category>
		<category><![CDATA[server security]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=1119</guid>
		<description><![CDATA[Allowing the root user to login directly is a major security issue, we&#8217;ll show you how to disable it so you can still login as root but just not directly, reducing the security issue. This will force a hacker to &#8230; <a href="http://blog.hostonnet.com/how-to-disable-direct-root-logins">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Allowing the root user to login directly is a major security issue, we&#8217;ll show you how to disable it so you can still login as root but just not directly, reducing the security issue.</p>
<p>This will force a hacker to have to guess 2 seperate passwords to gain root access.</p>
<p>(you do have 2 seperate passwords for admin and root right?)</p>
<p>What happens is you&#8217;ll first need to login as your admin user in SSH, then switch to the super user with the su &#8211; command to get root.</p>
<p>We also will be forcing the use of SSH protocol 2, which is a newer, more secure SSH protocol</p>
<p>Just a couple more ways to help your server stay safe from the bad guys. If you&#8217;re using cPanel make sure you add your admin user to the &#8216;wheel&#8217; group so that you will be able to &#8216;su -&#8217; to root, otherwise you may lock yourself out of root.</p>
<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</p>
<pre>pico -w /etc/ssh/sshd_config</pre>
<p>3. Find the line</p>
<pre>Protocol 2, 1</pre>
<p>4. Uncomment it and change it to look like</p>
<pre>Protocol 2</pre>
<p>5. Next, find the line</p>
<pre>PermitRootLogin yes</pre>
<p>6. Uncomment it and make it look like</p>
<pre>PermitRootLogin no</pre>
<p>7. Save the file Ctrl+X then Y then Enter</p>
<p>8. Now you can restart SSH</p>
<pre>/etc/rc.d/init.d/sshd restart</pre>
<p>Now, no one will be able to login to root with out first loggin in as admin and &#8216;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://blog.hostonnet.com/how-to-disable-direct-root-logins/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Disable Telnet</title>
		<link>http://blog.hostonnet.com/how-to-disable-telnet</link>
		<comments>http://blog.hostonnet.com/how-to-disable-telnet#comments</comments>
		<pubDate>Thu, 17 May 2012 16:37:09 +0000</pubDate>
		<dc:creator>Melbin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[disable telnet]]></category>
		<category><![CDATA[server security]]></category>
		<category><![CDATA[telnet]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=1117</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 &#8230; <a href="http://blog.hostonnet.com/how-to-disable-telnet">Continue reading <span class="meta-nav">&#8594;</span></a>]]></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.</p>
<p>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 </p>
<pre>pico /etc/xinetd.d/telnet</pre>
<p>3. Look for the line: </p>
<pre>disable = no</pre>
<p>and replace with</p>
<pre>disable = yes</pre>
<p>4. Now restart the inetd service:</p>
<pre>/etc/rc.d/init.d/xinetd restart</pre>
<p>5. Turn off it through chkconfig as well because it can still start through that.</p>
<pre>/sbin/chkconfig telnet off</pre>
<p>6. Scan your server to ensure port 23 is closed.</p>
<pre>nmap -sT -O localhost</pre>
<p>Also run </p>
<pre>ps -aux | grep telnet
<pre>
<p>and if you find anything other than "grep telnet" as result kill the process.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/how-to-disable-telnet/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Install, Configure and Securing a new cPanel Server</title>
		<link>http://blog.hostonnet.com/how-to-install-configure-and-securing-a-new-cpanel-server</link>
		<comments>http://blog.hostonnet.com/how-to-install-configure-and-securing-a-new-cpanel-server#comments</comments>
		<pubDate>Wed, 16 May 2012 12:46:32 +0000</pubDate>
		<dc:creator>Melbin</dc:creator>
				<category><![CDATA[Cpanel Server]]></category>
		<category><![CDATA[dedicated server]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Web Hosting]]></category>
		<category><![CDATA[configure csf]]></category>
		<category><![CDATA[configure httpd]]></category>
		<category><![CDATA[configure mysql]]></category>
		<category><![CDATA[configure whm]]></category>
		<category><![CDATA[install cpanel]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=1113</guid>
		<description><![CDATA[First Install cPanel on the new server root@server [~]# mkdir /home/cpins root@server [~]#cd /home/cpins root@server [~]#wget http://layer1.cpanel.net/latest after this give screen command root@server [~]#screen If it works then OK ,but if did’nt work use root@server [~]#yum install screen (Install all &#8230; <a href="http://blog.hostonnet.com/how-to-install-configure-and-securing-a-new-cpanel-server">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>First Install cPanel on the new server</p>
<pre>root@server [~]# mkdir /home/cpins
root@server [~]#cd /home/cpins
root@server [~]#wget http://layer1.cpanel.net/latest</pre>
<p>after this give screen command</p>
<pre>root@server [~]#screen</pre>
<p>If it works then OK ,but if did’nt work use</p>
<pre>root@server [~]#yum install screen (Install all the dependencies with it )</pre>
<p>now give screen command</p>
<pre>root@server [~]#screen</pre>
<p>after that give ‘ll’ or ls and you will see the file as ‘latest’</p>
<pre>root@server [~]# ls

latest</pre>
<p>change permission to 755</p>
<pre>root@server [~]#chmod 755 latest</pre>
<p>and then after give this command</p>
<pre>#sh latest</pre>
<p>After Installation you need to configure your WHM by login to http://yourip:2086</p>
<p><strong>Now Harden/Secure the server :-</strong></p>
<p><strong>Steps to Harden server :-</strong></p>
<p>Install csf as almost 80 % of your server can be secured by installing csf :-</p>
<p><strong>Steps to install csf :-</strong></p>
<p>Download CSF script from</p>
<pre>root@server [~]http://www.configserver.com/free/csf.tgz</pre>
<p><strong>Untar File</strong></p>
<pre>root@server [~]tar -xzxf csf.tar.gz</pre>
<p>Install using following command</p>
<pre>root@server [~]sh /csf/install.sh</pre>
<p>That’s it! Wait for installation to finish.</p>
<p>Once you finish with the installation login to WHM by  http://yourip:2086</p>
<p><strong>WHM &gt;&gt; Plugins &gt;&gt;Config Server Security and Firewall</strong> &gt;&gt; Click on “Check Server Security” and from here you can increase the rating which will secure your server.</p>
<p>Further you can optimize your httpd and mysql by adding some manual entried in httpd.conf and my.cnf file respectively</p>
<p>Go to <strong>/etc/httpd/conf/httpd.conf</strong> file by your favorite editor  but before that do take the backup of your files</p>
<pre>root@server [~]# cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf-bk</pre>
<p>Now Go to <strong>/etc/httpd/conf/httpd.conf</strong> file</p>
<pre>root@server [~]# nano /etc/httpd/conf/httpd.conf</pre>
<p>and add the following entries :-</p>
<pre>Timeout 90
KeepAlive On
MaxKeepAliveRequests 200
KeepAliveTimeout 5
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 1200
MaxClients 1200
</pre>
<p>Save and exit and restart apache service</p>
<pre>root@server [~]# /etc/init.d/httpd restart</pre>
<p>Now go to <strong>/etc/my.cnf</strong> but before that take a backup of it</p>
<pre>root@server [~] cp /etc/my.cnf   /etc/my.cnf-bk</pre>
<pre>root@server [~] nano /etc/my.cnf</pre>
<p>Add the following entries :-</p>
<pre>
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
skip-locking
max_connections=500
query_cache_limit=1M
query_cache_size=16M
query_cache_type=1
max_user_connections=25
interactive_timeout=10
wait_timeout=10
connect_timeout=10
thread_cache_size=128
key_buffer=16M
join_buffer=1M
max_allowed_packet=16M
table_cache=1024
record_buffer=1M
sort_buffer_size=2M
read_buffer_size=1M
max_connect_errors=10
thread_concurrency=8
myisam_sort_buffer_size=32M
server-id=1
local-infile=0

[mysqld_safe]
open_files_limit = 8192

[mysqldump]
quick
max_allowed_packet=16M

[mysql]
no-auto-rehash

[isamchk]
key_buffer=32M
sort_buffer=32M
read_buffer=16M
write_buffer=16M

[myisamchk]
key_buffer=32M
sort_buffer=32M
read_buffer=16M
write_buffer=16M

[mysqlhotcopy]
interactive-timeout
</pre>
<p>Save and Exit and restart mysql service</p>
<pre>root@server [~] # /etc/init.d/mysql restart</pre>
<p>Thats it.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/how-to-install-configure-and-securing-a-new-cpanel-server/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Database size shows 0 MB in cPanel</title>
		<link>http://blog.hostonnet.com/mysql-database-size-shows-0-mb-in-cpanel</link>
		<comments>http://blog.hostonnet.com/mysql-database-size-shows-0-mb-in-cpanel#comments</comments>
		<pubDate>Wed, 16 May 2012 12:32:01 +0000</pubDate>
		<dc:creator>Melbin</dc:creator>
				<category><![CDATA[Cpanel Server]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[cpanel disk usage]]></category>
		<category><![CDATA[disk usage include sqldbs]]></category>
		<category><![CDATA[mysql db cache]]></category>
		<category><![CDATA[mysql disk usage]]></category>

		<guid isPermaLink="false">http://blog.hostonnet.com/?p=1111</guid>
		<description><![CDATA[When checked in MySQL database I see the size as 0 mb. So made some changes and it worked. 1) SSH to your server as root and edit the cpanel.config file root@server[~]# nano /var/cpanel/cpanel.config Search for disk_usage_include_sqldbs=0 and change to &#8230; <a href="http://blog.hostonnet.com/mysql-database-size-shows-0-mb-in-cpanel">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When checked in MySQL database I see the size as 0 mb. So made some changes and it worked.</p>
<p>1) SSH to your server as root and edit the cpanel.config file</p>
<pre>root@server[~]# nano /var/cpanel/cpanel.config</pre>
<p>Search for</p>
<pre>disk_usage_include_sqldbs=0</pre>
<p>and change to</p>
<pre>disk_usage_include_sqldbs=1</pre>
<p>If the parameter is not present, add it. Save the file and execute the following command:</p>
<pre>root@server[~]# /scripts/update_db_cache</pre>
<p>Also you can do this from WHM</p>
<p>2) Login to the WHM, goto <strong>Tweak Settings &gt;&gt; ‘SQL’</strong> section and enable the following option:</p>
<p>When displaying disk usage in cpanel/WHM include Postgresql and MySQL.</p>
<p>Thats it.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hostonnet.com/mysql-database-size-shows-0-mb-in-cpanel/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

