<?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>Linux Servers cPanel webhosting blog &#187; Basic Linux</title>
	<atom:link href="http://www.theperfectarts.com/category/basic-linux-guidelines/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.theperfectarts.com</link>
	<description>Basics cPanel tutorials / issue,mysql,php errors etc</description>
	<lastBuildDate>Sat, 04 Feb 2012 17:18:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Server wide permission issue after enabling suphp</title>
		<link>http://www.theperfectarts.com/2012/01/server-wide-permission-issue-after-enabling-suphp/</link>
		<comments>http://www.theperfectarts.com/2012/01/server-wide-permission-issue-after-enabling-suphp/#comments</comments>
		<pubDate>Sun, 22 Jan 2012 09:24:01 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Basic Linux]]></category>
		<category><![CDATA[cPanel + cPanel scripts]]></category>
		<category><![CDATA[Dedicated Server Issue]]></category>
		<category><![CDATA[Linux Administrator Interview Questions]]></category>
		<category><![CDATA[Linux Permissions]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[resolve 500 Internal Server Error]]></category>
		<category><![CDATA[scrip to correct ownership]]></category>
		<category><![CDATA[script to correct permission]]></category>
		<category><![CDATA[script to correct server wide permission]]></category>
		<category><![CDATA[script to correct user ownership]]></category>
		<category><![CDATA[script to resolve 500 internal server error]]></category>
		<category><![CDATA[script to resolve suphp issue]]></category>
		<category><![CDATA[Server wide .htacces php value issue]]></category>
		<category><![CDATA[Server wide ownership issue]]></category>
		<category><![CDATA[Server wide permission issue]]></category>
		<category><![CDATA[Server wide solution script]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=1877</guid>
		<description><![CDATA[After enabling the suphp on the server,many time 500 Internal Server Error occur due to the incorrect permission,ownership and incorrect php module defined in the .htaccess file and we can&#8217;t make the changes manually therefore we can use the following script to make the all the changes server. Login into the server as a root user [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "ca-pub-1685490665026631";
/* Big images */
google_ad_slot = "0185136902";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-1685490665026631";
/* Big images */
google_ad_slot = "0185136902";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
<script type="text/javascript">// <![CDATA[
            var _gaq = _gaq || [];   _gaq.push(['_setAccount', 'UA-27772211-1']);   _gaq.push(['_trackPageview']);   </p>
<p>(function() {     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;     ga.src = </p>
<p>('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';     var s = </p>
<p>document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);   })();
// ]]&gt;</script><br />
After enabling the suphp on the server,many time 500 Internal Server Error occur due to the incorrect permission,ownership and incorrect php module defined in the .htaccess file and we can&#8217;t make the changes manually therefore we can use the following script to make the all the changes server.</p>
<p>Login into the server as a root user and follow the followings steps.</p>
<blockquote><p>
<strong>linux7802@server[~]#cat /root/suphppermission.sh</strong></p>
<p><strong>#!/bin/bash</strong></p>
<p><strong># Reset the directory permissions.</strong><br />
<strong>chmod 755 /opt/suphp</strong><br />
<strong>find /opt/suphp -type d -exec chmod 755 {} \;</strong></p>
<p><strong># Reset permission,ownership for cPanel user</strong><br />
<strong>for user in `/bin/ls /var/cpanel/users`; do</strong></p>
<p><strong>chown -R ${user}:${user} /home/${user}/public_html</strong><br />
<strong> chmod 755 /home/${user}/public_html</strong><br />
<strong> find /home/${user}/public_html -type f -exec chmod 644 {} \;</strong><br />
<strong> find /home/${user}/public_html -type d -exec chmod 755 {} \;</strong></p>
<p><strong># Remove <strong>php_values in the .htaccess file</strong>.</strong><br />
<strong> find /home/${user}/public_html -name &#8216;.htaccess&#8217; -exec sed -ie &#8216;s/php_value/#php_value/&#8217; {} \;</strong><br />
<strong> find /home/${user}/public_html -name &#8216;.htaccess&#8217; -exec sed -ie &#8216;s/php_flag/#php_flag/&#8217; {} \;</strong><br />
<strong>done</strong></p></blockquote>
<p>If you have any issue to copy the above content the download the script from following URL<br />
<a title="scr" href="http://theperfectarts.com/permission.txt" target="_blank">scr</a></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2012/01/server-wide-permission-issue-after-enabling-suphp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>cPanel log to check when hosting created and deleted</title>
		<link>http://www.theperfectarts.com/2012/01/cpanel-log-to-check-when-hosting-created-and-deleted/</link>
		<comments>http://www.theperfectarts.com/2012/01/cpanel-log-to-check-when-hosting-created-and-deleted/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 13:28:55 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Basic Linux]]></category>
		<category><![CDATA[cPanel + cPanel scripts]]></category>
		<category><![CDATA[Linux Administrator Interview Questions]]></category>
		<category><![CDATA[accounting.log]]></category>
		<category><![CDATA[accounting.log for security]]></category>
		<category><![CDATA[check hosting account loghs]]></category>
		<category><![CDATA[cpanel accounting.log]]></category>
		<category><![CDATA[delete logs]]></category>
		<category><![CDATA[modify logs]]></category>
		<category><![CDATA[remove logs]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=1867</guid>
		<description><![CDATA[In the recent days, we all are facing the hacking issue at that time, we always see problem like account termination from the serve at that time, we can use the following log file to investigate the issue as its providing when hosting account was created, owner changed or account deleted from the server. For [...]]]></description>
			<content:encoded><![CDATA[<p>In the recent days, we all are facing the hacking issue at that time, we always see problem like account termination from the serve at that time, we can use the following log file to investigate the issue as its providing when hosting account was created, owner changed or account deleted from the server.<script type="text/javascript">// <![CDATA[
     google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script><br />
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[// ]]&gt;</script><br />
<script type="text/javascript">// <![CDATA[
          var _gaq = _gaq || [];   _gaq.push(['_setAccount', 'UA-27772211-1']);   _gaq.push(['_trackPageview']);   (function() {     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);   })();
// ]]&gt;</script>For example we are checking logs for the domain test123.com and as per the following logs the hosting account for domain test123.com is created by using the root owner on dated <strong>Wed Jan 11 08:19:40 2012 </strong>and onwership is under root</p>
<p><strong>root@linux7802 [~]# cat /var/cpanel/accounting.log | grep test123.com</strong><br />
<strong>Wed Jan 11 08:19:40 2012:CREATE:root:root:test123.com:115.124.103.126:admin111</strong><br />
<script type="text/javascript">// <![CDATA[
     google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script><br />
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[// ]]&gt;</script><br />
<script type="text/javascript">// <![CDATA[
          var _gaq = _gaq || [];   _gaq.push(['_setAccount', 'UA-27772211-1']);   _gaq.push(['_trackPageview']);   (function() {     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);   })();
// ]]&gt;</script>Now we have changed the ownership for the domain test123.com hosting account to linux780 reseller ownership therefore check the following logs</p>
<p><strong>root@linux7802 [~]# cat /var/cpanel/accounting.log | grep test123.com </strong><br />
<strong>Wed Jan 11 08:22:51 2012:CHANGEOWNER:root:root:test123.com:admin111:root:linux780</strong><br />
<!-- Place this tag where you want the +1 button to render --><br />
<g:plusone annotation="inline"></g:plusone></p>
<p><!-- Place this render call where appropriate --><br />
<script type="text/javascript">
  (function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();
</script>Now we have terminated the hosting account for the domain test123.com by using the root user and its also recorded in the accounting.log</p>
<p><strong>root@linux7802 [~]# cat /var/cpanel/accounting.log | grep test123.com</strong><br />
<strong>Wed Jan 11 08:25:14 2012:REMOVE:root:root:test123.com:admin111</strong></p>
<p>So we can similarly check the logs for all the domains when they have created/modified or removed from the server and its always to better to maintain the accounting.log for future reference.</p>
<p><strong><br />
</strong></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2012/01/cpanel-log-to-check-when-hosting-created-and-deleted/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysql tuner to tune mysql service</title>
		<link>http://www.theperfectarts.com/2011/12/mysql-tuner-to-tune-mysql-service/</link>
		<comments>http://www.theperfectarts.com/2011/12/mysql-tuner-to-tune-mysql-service/#comments</comments>
		<pubDate>Wed, 28 Dec 2011 05:42:46 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Basic Linux]]></category>
		<category><![CDATA[Common errors]]></category>
		<category><![CDATA[Dedicated Server Issue]]></category>
		<category><![CDATA[Linux Administrator Interview Questions]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=1783</guid>
		<description><![CDATA[Install the mysql tuner to tune the mysql service to avoid any memory usage due to incorrect settings in the /etc/my.cnf file. Login in to the server as root user and download the mysqltuner.pl file root@linux7802 [~]# cd /usr/local/src/ root@linux7802 [/usr/local/src]# wget -O mysqltuner.pl mysqltuner.pl root@linux7802 [/usr/local/src]# perl mysqltuner.pl Above command will give you the [...]]]></description>
			<content:encoded><![CDATA[<p>Install the mysql tuner to tune the mysql service to avoid any memory usage due to incorrect settings in the /etc/my.cnf file.</p>
<p>Login in to the server as root user and download the mysqltuner.pl file</p>
<p><strong>root@linux7802 [~]# cd /usr/local/src/</strong></p>
<p><strong>root@linux7802 [/usr/local/src]# wget -O mysqltuner.pl mysqltuner.pl</strong></p>
<p><strong>root@linux7802 [/usr/local/src]# perl mysqltuner.pl</strong></p>
<p>Above command will give you the statistics as well as recommendations to improve the server perfomance</p>
<p>Refer to the following image to example of statistics</p>
<p><a href="http://www.theperfectarts.com/wp-content/uploads/2011/12/mysqltune.png"><img class="size-medium wp-image-1784 alignleft" title="mysqltune" src="http://www.theperfectarts.com/wp-content/uploads/2011/12/mysqltune-300x153.png" alt="statistics" width="300" height="153" /></a></p>
<p><script type="text/javascript">// <![CDATA[
 google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script><br />
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script><br />
<script type="text/javascript">// <![CDATA[
      var _gaq = _gaq || [];   _gaq.push(['_setAccount', 'UA-27772211-1']);   _gaq.push(['_trackPageview']);   (function() {     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);   })();
// ]]&gt;</script></p>
<p>For recommendations example refer to the following image and made the necessary changes in the /etc/my.cnf file and retest the script to check, if issue resolved or not&#8230;&#8230;</p>
<div id="attachment_1789" class="wp-caption alignleft" style="width: 310px"><a href="http://www.theperfectarts.com/wp-content/uploads/2011/12/recommendations1.png"><img class="size-medium wp-image-1789" title="recommendations" src="http://www.theperfectarts.com/wp-content/uploads/2011/12/recommendations1-300x153.png" alt="recommendations" width="300" height="153" /></a><p class="wp-caption-text">Its an example for recommendations</p></div>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Note : Most of the time it recommend to optimize the mysql at that time use the following command but make sure that you have talen backup for the /var/lib/mysql directory to avoid any problem.</p>
<p><strong>mysqlcheck &#8211;optimize -A</strong></p>
<p>&nbsp;</p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2011/12/mysql-tuner-to-tune-mysql-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install and upgrade the rsync</title>
		<link>http://www.theperfectarts.com/2011/12/install-and-upgrade-the-rsync/</link>
		<comments>http://www.theperfectarts.com/2011/12/install-and-upgrade-the-rsync/#comments</comments>
		<pubDate>Mon, 26 Dec 2011 05:45:32 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Basic Linux]]></category>
		<category><![CDATA[Dedicated Server Issue]]></category>
		<category><![CDATA[Install server side software / script]]></category>
		<category><![CDATA[Linux Administrator Interview Questions]]></category>
		<category><![CDATA[check rsync version]]></category>
		<category><![CDATA[how to install rsync]]></category>
		<category><![CDATA[how to upgrade rsync]]></category>
		<category><![CDATA[increase downloading speed in rsync]]></category>
		<category><![CDATA[Install rsync]]></category>
		<category><![CDATA[steps to upgrade rsync]]></category>
		<category><![CDATA[upgrade rsync]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=1778</guid>
		<description><![CDATA[To increase the download speed via rsync its always better to use the latest rsync version.Refer to the following steps to install and upgrade the rsync Loghin in to the server as a root user root@linux7802 [~]# cd /usr/src/ Now download the latest rsync version source from the url https://rsync.samba.org/ftp/rsync/src/ root@linux7802 [/usr/src]#wget https://rsync.samba.org/ftp/rsync/src/rsync-3.0.9.tar.gz root@linux7802 [/usr/src]#tar [...]]]></description>
			<content:encoded><![CDATA[<p>To increase the download speed via rsync its always better to use the latest rsync version.Refer to the following steps to install and upgrade the rsync</p>
<p>Loghin in to the server as a root user</p>
<p><strong>root@linux7802 [~]# cd /usr/src/</strong></p>
<p>Now download the latest rsync version source from the url https://rsync.samba.org/ftp/rsync/src/</p>
<p><strong>root@linux7802 [/usr/src]#wget https://rsync.samba.org/ftp/rsync/src/rsync-3.0.9.tar.gz</strong></p>
<p><strong>root@linux7802 [/usr/src]#tar -xzvf  rsync-3.0.9.tar.gz</strong><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-1685490665026631";
/* Big images */
google_ad_slot = "0185136902";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p><script type="text/javascript">// <![CDATA[
    var _gaq = _gaq || [];   _gaq.push(['_setAccount', 'UA-27772211-1']);   _gaq.push(['_trackPageview']);   (function() {     var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;     ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';     var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);   })();
// ]]&gt;</script><br />
<strong>root@linux7802 [/usr/src]#cd rsync-3.0.9/</strong></p>
<p><strong>root@linux7802 [/usr/src/<strong>rsync-3.0.9</strong>]# ./configure</strong></p>
<p><strong>root@linux7802 [/usr/src/<strong>rsync-3.0.9</strong>]# make</strong></p>
<p><strong>root@linux7802 [/usr/src/<strong>rsync-3.0.9</strong>]# make test</strong></p>
<p><strong>root@linux7802 [/usr/src/<strong>rsync-3.0.9</strong>]# make install</strong><br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-1685490665026631";
/* Links unit */
google_ad_slot = "1169328984";
google_ad_width = 160;
google_ad_height = 90;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><br />
<strong>root@linux7802 [/usr/src/<strong>rsync-3.0.9</strong>]# rm -f /usr/bin/rsync</strong></p>
<p><strong>root@linux7802 [/usr/src/<strong>rsync-3.0.9</strong>]# ln -s /usr/local/bin/rsync /usr/bin/rsync</strong></p>
<p>Now check the new rsync version</p>
<p><strong>root@linux7802 [/usr/src/<strong>rsync-3.0.9</strong>]# rsync  &#8211;version</strong><br />
<strong>rsync  version 3.0.9</strong>  protocol version 30</p>
<p>Its 3.0.9 now <img src='http://www.theperfectarts.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2011/12/install-and-upgrade-the-rsync/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Increase SSH timeout for clients</title>
		<link>http://www.theperfectarts.com/2011/11/increase-ssh-timeout-for-clients/</link>
		<comments>http://www.theperfectarts.com/2011/11/increase-ssh-timeout-for-clients/#comments</comments>
		<pubDate>Sat, 26 Nov 2011 14:46:39 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Basic Linux]]></category>
		<category><![CDATA[Dedicated Server Issue]]></category>
		<category><![CDATA[Linux Administrator Interview Questions]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[avoid idle time issue]]></category>
		<category><![CDATA[client puty disconnect after few seconds]]></category>
		<category><![CDATA[ClientAliveInterval problem]]></category>
		<category><![CDATA[ClientAliveInterval sole idle time issue]]></category>
		<category><![CDATA[ClientAliveInterval solution.sshd timeout solve]]></category>
		<category><![CDATA[Increase SSH timeout]]></category>
		<category><![CDATA[increase the ssh value]]></category>
		<category><![CDATA[resolve the shd timeout issue]]></category>
		<category><![CDATA[set /etc/ssh/sshd_config file]]></category>
		<category><![CDATA[set timeout in /etc/ssh/sshd_config file]]></category>
		<category><![CDATA[set timeout value in the ssh configuration]]></category>
		<category><![CDATA[shell disconnect after idle time]]></category>
		<category><![CDATA[solution to avoid sshd timeout issue]]></category>
		<category><![CDATA[ssh timeout issue. disconnect ssh]]></category>
		<category><![CDATA[sshd configuration issue]]></category>
		<category><![CDATA[sshd connection problem]]></category>
		<category><![CDATA[the ClientAliveInterval value]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=1647</guid>
		<description><![CDATA[After login in to the shell many time shell remain idle and due to that SSH connection closed by the server and we have to re-login in to the shell, we can avoid this problem by increasing the SSH timeout in the servers main sshd configuration file.Web hosting clients complaint that they can&#8217;t remain active on the [...]]]></description>
			<content:encoded><![CDATA[<p>After login in to the shell many time shell remain idle and due to that SSH connection closed by the server and we have to re-login in to the shell, we can avoid this problem by increasing the SSH timeout in the servers main sshd configuration file.Web hosting clients complaint that they can&#8217;t remain active on the shell at the time we can increase the ssh timeout  value. Login in to the server as root user and run the following commands.<br />
<script type="text/javascript"><!--
google_ad_client = "ca-pub-1685490665026631";
/* Big images */
google_ad_slot = "0185136902";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p><strong>[root@server ~]#pico /etc/ssh/sshd_config</strong></p>
<p>Now search the line &#8220;ClientAliveInterval&#8221; and change it</p>
<p><strong>From</strong></p>
<p><strong>#ClientAliveInterval 0</strong></p>
<p><strong>To </strong></p>
<p><strong>ClientAliveInterval 3600</strong></p>
<p><strong></strong>In above code we have used 3600 seconds, so that ssh won&#8217;t disconnect within set 3600 seconds value.</p>
<p>Restart the SSHD service to reload the new sshd configuration values.</p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2011/11/increase-ssh-timeout-for-clients/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Change the default Plesk port</title>
		<link>http://www.theperfectarts.com/2011/11/change-the-default-plesk-port/</link>
		<comments>http://www.theperfectarts.com/2011/11/change-the-default-plesk-port/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 07:36:58 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Basic Linux]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[/usr/local/psa/admin/conf/httpsd.conf issue]]></category>
		<category><![CDATA[change plesk port]]></category>
		<category><![CDATA[customized plesk port]]></category>
		<category><![CDATA[disable default plesk port]]></category>
		<category><![CDATA[how to change the plesk default porr]]></category>
		<category><![CDATA[how to protec ddos on plesk]]></category>
		<category><![CDATA[new plesk port]]></category>
		<category><![CDATA[new port for plesk]]></category>
		<category><![CDATA[port 8443]]></category>
		<category><![CDATA[port change for the plesk]]></category>
		<category><![CDATA[secure plesk port]]></category>
		<category><![CDATA[update default plesk port]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=1577</guid>
		<description><![CDATA[Many time we face ddos attacks on specific ports and at that time we always like to change the port for that particular service.To change the Plesk default port from 8443 to any other port, refer to the following steps. Login into the server as root user and open the file  /usr/local/psa/admin/conf/httpsd.conf  in your favorite editor server@root[~]#nano [...]]]></description>
			<content:encoded><![CDATA[<p>Many time we face ddos attacks on specific ports and at that time we always like to change the port for that particular service.To change the Plesk default port from 8443 to any other port, refer to the following steps.</p>
<p>Login into the server as root user and open the file  /usr/local/psa/admin/conf/httpsd.conf  in your favorite editor</p>
<p><strong>server@root[~]#nano /usr/local/psa/admin/conf/httpsd.conf </strong></p>
<p>Once above file open search for the port number 8443 and replace it as per your requirement and open the new port in server firewall.</p>
<p>Mainly following three option need to change only.</p>
<blockquote><p>
<strong>Listen 8443</strong><br />
<strong>Port 8443</strong><br />
<strong>&lt;VirtualHost *:8443&gt;</strong></p></blockquote>
<p><strong></strong> Restart the Plesk service to implement the changes.</p>
<p>Note : Before making any change make sure that you have taken the backup for the working /usr/local/psa/admin/conf/httpsd.conf file to avoid any problem after making above changes.</p>
<blockquote><p>&nbsp;</p></blockquote>
<p><script type="text/javascript">// <![CDATA[
 google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script></p>
<p><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2011/11/change-the-default-plesk-port/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FSCK command</title>
		<link>http://www.theperfectarts.com/2011/10/fsck-command/</link>
		<comments>http://www.theperfectarts.com/2011/10/fsck-command/#comments</comments>
		<pubDate>Thu, 27 Oct 2011 15:04:47 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Basic Linux]]></category>
		<category><![CDATA[Linux Administrator Interview Questions]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[dedicated server fsck command]]></category>
		<category><![CDATA[fsck command]]></category>
		<category><![CDATA[fsck command option]]></category>
		<category><![CDATA[fsck normal command]]></category>
		<category><![CDATA[fsck usage]]></category>
		<category><![CDATA[how to use fsck]]></category>
		<category><![CDATA[insert root password for fsck]]></category>
		<category><![CDATA[kvm fsck in maintenance mode]]></category>
		<category><![CDATA[read only partition error]]></category>
		<category><![CDATA[use fsck without -p option]]></category>
		<category><![CDATA[what is fsck]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=1533</guid>
		<description><![CDATA[Many time we face the &#8220;read only partition&#8221; problem on the Linux Server at that time while rebooting the server from KVM,  its stuck at maintenance mode and some time auto fsck completed the fsck successfully but after that server ge auto rebooted . We can use the following commands to run the fsck manually. For example [...]]]></description>
			<content:encoded><![CDATA[<p>Many time we face the<strong> &#8220;read only partition&#8221;</strong> problem on the Linux Server at that time while rebooting the server from KVM,  its stuck at maintenance mode and some time auto fsck completed the fsck successfully but after that server ge auto rebooted . We can use the following commands to run the fsck manually.</p>
<p>For example the /dev/sda2  partition having the read only partition error message then run the following command, it will take time as per partiton size</p>
<p><strong>fsck -y -p -v /dev/sda1</strong></p>
<p><strong>or</strong></p>
<p><strong>e2fsck -y -v -f /dev/sda1</strong></p>
<p>Many time due to big partition size ,we have to wait for the long time at that time we think fsck process is stuck at that time we can use the following fsck command because its showing the % for the fsck process, so that we are able to see how much % fsck is completed and remaining.</p>
<p><strong>fsck -y -p -C0 /dev/sda2</strong></p>
<p>or</p>
<p><strong>e2fsck -y  -C0 /dev/sda2</strong></p>
<p>Now reboot the server in he init 3 run levele</p>
<p><strong>root@server[~]# init 3</strong></p>
<p>Note : Make sure that partition is not mounted while running fsck.</p>
<pre></pre>
<p><script type="text/javascript">// <![CDATA[
 google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script></p>
<p><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2011/10/fsck-command/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Command to delete the session files from the tmp.</title>
		<link>http://www.theperfectarts.com/2011/10/command-to-delete-the-session-files-from-the-tmp/</link>
		<comments>http://www.theperfectarts.com/2011/10/command-to-delete-the-session-files-from-the-tmp/#comments</comments>
		<pubDate>Tue, 25 Oct 2011 14:42:47 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Basic Linux]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[automatically delete files]]></category>
		<category><![CDATA[clean temp files]]></category>
		<category><![CDATA[clear session file from the tmp partiton]]></category>
		<category><![CDATA[clear temp files]]></category>
		<category><![CDATA[clear temporary files]]></category>
		<category><![CDATA[command to delete the session file]]></category>
		<category><![CDATA[delete files from my server]]></category>
		<category><![CDATA[delete temp file]]></category>
		<category><![CDATA[delete temp files]]></category>
		<category><![CDATA[deleting tmp files]]></category>
		<category><![CDATA[empty tmp directory]]></category>
		<category><![CDATA[find command]]></category>
		<category><![CDATA[how to delete mysql session files]]></category>
		<category><![CDATA[how to delete session files]]></category>
		<category><![CDATA[how to delete tmp files]]></category>
		<category><![CDATA[linux delete all files in directory tmp]]></category>
		<category><![CDATA[remove temp files]]></category>
		<category><![CDATA[temp files]]></category>
		<category><![CDATA[temporary files problem]]></category>
		<category><![CDATA[we can delete temp files]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=1531</guid>
		<description><![CDATA[Basically all the session files stored in the tmp directory and some time due to the excessive connection to mysql, we are facing the tmp directory 100% full problem at that time we can use the following command in cron and remove the session file more then 30 minutes old. find /tmp -type f -name [...]]]></description>
			<content:encoded><![CDATA[<p>Basically all the session files stored in the tmp directory and some time due to the excessive connection to mysql, we are facing the tmp directory 100% full problem at that time we can use the following command in cron and remove the session file more then 30 minutes old.</p>
<p><strong>find /tmp -type f -name sess_* -cmin +30 |xargs rm -f</strong></p>
<p>In above command I have used +30 for the 30 minutes, you can use the values as per your requirement.</p>
<p><script type="text/javascript">// <![CDATA[
  google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script></p>
<p><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2011/10/command-to-delete-the-session-files-from-the-tmp/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Three steps to mount remote directory on Linux Server</title>
		<link>http://www.theperfectarts.com/2011/10/three-steps-to-mount-remote-directory-on-linux-server/</link>
		<comments>http://www.theperfectarts.com/2011/10/three-steps-to-mount-remote-directory-on-linux-server/#comments</comments>
		<pubDate>Sat, 22 Oct 2011 10:53:44 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Basic Linux]]></category>
		<category><![CDATA[Linux Administrator Interview Questions]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[access linux server via remote mount]]></category>
		<category><![CDATA[can't unmount]]></category>
		<category><![CDATA[check mount point]]></category>
		<category><![CDATA[command for mount]]></category>
		<category><![CDATA[command for umount]]></category>
		<category><![CDATA[explain umount mount]]></category>
		<category><![CDATA[how to setup a remote directory]]></category>
		<category><![CDATA[how to use mount]]></category>
		<category><![CDATA[how to use umount]]></category>
		<category><![CDATA[linux remote server]]></category>
		<category><![CDATA[linux server easy mount command]]></category>
		<category><![CDATA[mount remote directory]]></category>
		<category><![CDATA[mount remote directory linux]]></category>
		<category><![CDATA[mount remote file]]></category>
		<category><![CDATA[mount the remote server]]></category>
		<category><![CDATA[remote access linux server directory]]></category>
		<category><![CDATA[remote access linux server file]]></category>
		<category><![CDATA[remote login]]></category>
		<category><![CDATA[setting up a linux file server]]></category>
		<category><![CDATA[setting up linux file server]]></category>
		<category><![CDATA[simple stepts to mount remote directory]]></category>
		<category><![CDATA[steps to mount the remote directoty]]></category>
		<category><![CDATA[tutorial for mount]]></category>
		<category><![CDATA[tutorial for umount]]></category>
		<category><![CDATA[umount partition busy]]></category>
		<category><![CDATA[use umount]]></category>
		<category><![CDATA[what is mount]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=1464</guid>
		<description><![CDATA[We can mount the remote directory on the Linux Server by using the following three simple commands only. Login in to the server as a root user and run the commands one by one and make sure that you are using your own remote server ip instead of our test server ip 198.168.0.2 yum install [...]]]></description>
			<content:encoded><![CDATA[<p>We can mount the remote directory on the Linux Server by using the following three simple commands only.</p>
<p>Login in to the server as a root user and run the commands one by one and make sure that you are using your own remote server ip instead of our test server ip <strong>198.168.0.2</strong></p>
<p><strong>yum install fuse-sshfs</strong></p>
<p>The above command will install the fuse-sshfs</p>
<p>Create the mount directory where you want to mount the remote directory.</p>
<p><strong>mkdir /mnt/remotemount</strong></p>
<p>Now mount the remote directory make sure that you are using the correct remote directory server ip and root password</p>
<p><strong>sshfs root@192.168.1.2:/the_physical_path_which_you_are_mounting  /mnt/remotemount</strong></p>
<p>Now check the mount point</p>
<p><strong>mount</strong></p>
<p>If you want to remove the mount point then use the following command</p>
<p><strong>umount /mnt/remotemount</strong></p>
<p>If above command shows the error &#8220;mount point busy&#8221; the use the following command</p>
<p><strong>umount -l /mnt/remotemount</strong></p>
<p><script type="text/javascript">// <![CDATA[
 google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script></p>
<p><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2011/10/three-steps-to-mount-remote-directory-on-linux-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Install GIT on cPanel server.</title>
		<link>http://www.theperfectarts.com/2011/10/install-git-on-cpanel-server/</link>
		<comments>http://www.theperfectarts.com/2011/10/install-git-on-cpanel-server/#comments</comments>
		<pubDate>Wed, 19 Oct 2011 13:36:53 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Basic Linux]]></category>
		<category><![CDATA[Linux Administrator Interview Questions]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[cPanel with git]]></category>
		<category><![CDATA[git on cpanel]]></category>
		<category><![CDATA[Install GIT]]></category>
		<category><![CDATA[install git in one command]]></category>
		<category><![CDATA[install git linux]]></category>
		<category><![CDATA[setup git server]]></category>
		<category><![CDATA[yum git]]></category>
		<category><![CDATA[yum install git]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=1454</guid>
		<description><![CDATA[We can install the GIT on the cPanel server by using the yum. Login in to the server as root user and run the following command. yum &#8211;disableexcludes=main install git -y &#169;2012 Linux Servers cPanel webhosting blog. All Rights Reserved..]]></description>
			<content:encoded><![CDATA[<p>We can install the GIT on the cPanel server by using the yum.</p>
<p>Login in to the server as root user and run the following command.</p>
<p><strong>yum &#8211;disableexcludes=main install git -y</strong></p>
<p><script type="text/javascript">// <![CDATA[
  google_ad_client = "ca-pub-1685490665026631"; /* images */ google_ad_slot = "1433358698"; google_ad_width = 300; google_ad_height = 250;
// ]]&gt;</script><br />
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">// <![CDATA[</p>
<p>// ]]&gt;</script></p>
<p>&copy;2012 <a href="http://www.theperfectarts.com">Linux Servers cPanel webhosting blog</a>. All Rights Reserved.</p>.]]></content:encoded>
			<wfw:commentRss>http://www.theperfectarts.com/2011/10/install-git-on-cpanel-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

