<?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; VPS</title>
	<atom:link href="http://www.theperfectarts.com/category/vps/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>vzmigrate command for VPS migration</title>
		<link>http://www.theperfectarts.com/2012/01/vzmigrate-command-for-vps-migration/</link>
		<comments>http://www.theperfectarts.com/2012/01/vzmigrate-command-for-vps-migration/#comments</comments>
		<pubDate>Tue, 10 Jan 2012 14:40:56 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Linux Administrator Interview Questions]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[command to migrate VPS]]></category>
		<category><![CDATA[migrate running VPS]]></category>
		<category><![CDATA[migrate VPS from one node to another]]></category>
		<category><![CDATA[transfer all the VPS from one node to another node]]></category>
		<category><![CDATA[transfer VPS from one node to another node]]></category>
		<category><![CDATA[vzmigrate command]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=1857</guid>
		<description><![CDATA[The vzmigrate command is used to migrate the one VPS from node to the new or another node. For example, we want to migrate the VPS which is currently having id 110 on new node and its ip is 192.168.0.1 server@linux[~]# vzmigrate 192.168.0.1  110 or server@linux[~]# vzmigrate -r no 192.168.0.1 110 Some time node on which,we are trying [...]]]></description>
			<content:encoded><![CDATA[<p>The vzmigrate command is used to migrate the one VPS from node to the new or another node.<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><br />
For example, we want to migrate the VPS which is currently having id 110 on new node and its ip is <strong>192.168.0.1</strong></p>
<p><strong>server@linux[~]# vzmigrate 192.168.0.1  110</strong></p>
<p><strong>or</strong></p>
<p><strong>server@linux[~]# vzmigrate -r no 192.168.0.1 110</strong></p>
<p>Some time node on which,we are trying to migrate the VPS we are receiving the following error message</p>
<p><strong>110 already exists on the destination node.</strong></p>
<p>To resolve the above error we can assign new id to the VPS</p>
<p><strong>server@linux[~]#vzmigrate -r no 192.168.0.1 110:120</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[</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><br />
The new id on the new node will be 120 for VPS</p>
<p>We can also do online migration of VPS from one to another node.</p>
<pre><strong>server@linux[~]#vzmigrate --online 192.168.0.1 110</strong></pre>
<pre><strong>or</strong></pre>
<pre><strong>server@linux[~]#vzmigrate --online 192.168.1.130 110:120</strong></pre>
<p>If you want to migrate all the running VPS from one node to another node then refer to following command</p>
<pre><strong>for CT in $(vzlist -H -o veid);</strong></pre>
<pre><strong>do vzmigrate --remove-area no --keep-dst $1 $CT; done</strong></pre>
<pre></pre>
<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/2012/01/vzmigrate-command-for-vps-migration/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>cPanel file manager giving 404 not found error</title>
		<link>http://www.theperfectarts.com/2012/01/cpanel-file-manager-giving-404-not-found-error/</link>
		<comments>http://www.theperfectarts.com/2012/01/cpanel-file-manager-giving-404-not-found-error/#comments</comments>
		<pubDate>Sun, 08 Jan 2012 16:28:00 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[cPanel + cPanel scripts]]></category>
		<category><![CDATA[Linux Administrator Interview Questions]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[404 error message in file manager]]></category>
		<category><![CDATA[cpanel 404 error message]]></category>
		<category><![CDATA[cPanel file manager giving 404]]></category>
		<category><![CDATA[resolve 404 error message]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=1852</guid>
		<description><![CDATA[While browsing the file manager from the cPanel the 404 not found error message is occur. Not Found The server was not able to find the document (./frontend/x3/index.html) you requested. Please check the url and try again. You might also want to report this error to your web hosting provider. whostmgrd/11.25 As per above error [...]]]></description>
			<content:encoded><![CDATA[<p>While browsing the file manager from the cPanel the 404 not found error message is occur.<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[</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>
<blockquote><p><strong>Not Found</strong></p>
<p>The server was not able to find the document (./frontend/x3/index.html) you requested.<br />
Please check the url and try again. You might also want to report this<br />
error to your web hosting provider.</p>
<p>whostmgrd/11.25</p></blockquote>
<p>As per above error message x3 theme is causing the problem therefore simply move the x3 theme and resinstall it by running the upcp, you can rename the theme under which you are facing the problem.<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[</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><br />
<strong>linux@server[~]#cd /usr/local/cpanel/base/frontend</strong></p>
<p><strong>linux@server[~]#mv -v x3 x3-corrupt</strong></p>
<p><strong>linux@server[~]#/scripts/upcp &#8211;force</strong></p>
<p>Now browse the file manager, it will work properly.</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-file-manager-giving-404-not-found-error/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>Simple command to update templates for Virtuozzo</title>
		<link>http://www.theperfectarts.com/2011/12/simple-command-to-update-templates-for-virtuozzo/</link>
		<comments>http://www.theperfectarts.com/2011/12/simple-command-to-update-templates-for-virtuozzo/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 21:52:55 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Linux Administrator Interview Questions]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[check FTP login details for vzup2date]]></category>
		<category><![CDATA[ftp login detaile for vzup2date]]></category>
		<category><![CDATA[how to update template vzup2date]]></category>
		<category><![CDATA[os update by using vzup2date]]></category>
		<category><![CDATA[Virtuozzo updates]]></category>
		<category><![CDATA[vzup2date issue]]></category>
		<category><![CDATA[vzup2date problem]]></category>
		<category><![CDATA[vzup2date update]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=1725</guid>
		<description><![CDATA[To secure the node its always better to update the templates for Virtuozzo, we can use the following simple command to update the templates for Virtuozzo Login in to the server as a root user and run the commnad [root@root]# vzup2date -? The question mark will show you the option available with the vzup2date command Usage: [...]]]></description>
			<content:encoded><![CDATA[<p>To secure the node its always better to update the templates for Virtuozzo, we can use the following simple command to update the templates for Virtuozzo</p>
<p>Login in to the server as a root user and run the commnad</p>
<p><strong>[root@root]# vzup2date -?</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 />
The question mark will show you the option available with the vzup2date command</p>
<blockquote><p><strong>Usage: vzup2date [OPTION...]</strong><br />
<strong>-s, &#8211;system update Virtuozzo itself</strong><br />
<strong>-t, &#8211;templates update OS and application templates for Virtuozzo</strong></p>
<p><strong>Help options:</strong><br />
<strong>-?, &#8211;help Show this help message</strong><br />
<strong>&#8211;usage Display brief usage message</strong></p></blockquote>
<p>Now run the vzup2date command with the -t option to update the templates for Virtuozzo</p>
<p><strong>[root@root]# vzup2date -t</strong></p>
<p>After running above command it will give you screen similar to the following screen</p>
<blockquote><p><strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; Welcome to system update &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</strong><br />
<strong>| |</strong><br />
<strong>| The Virtuozzo up-to-date utility will help you update your |</strong><br />
<strong>| Virtuozzo installation by means of latest Virtuozzo |</strong><br />
<strong>| packages located on the SWsoft website.After updating, you |</strong><br />
<strong>| will be able to find the update log in the |</strong><br />
<strong>| /var/log/vzup2date file. |</strong><br />
<strong>| |</strong><br />
<strong>| &#8212;&#8212;&#8211; &#8212;&#8212;&#8211; |</strong><br />
<strong>| | Quit | | Next | |</strong><br />
<strong>| &#8212;&#8212;&#8211; &#8212;&#8212;&#8211; |</strong><br />
<strong>| |</strong><br />
<strong>| |</strong><br />
<strong>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</strong></p></blockquote>
<p>Tab over to the next and press to get to the next page. On the next page you will be able to change the url that <strong>vzup2date</strong> is using for the update:</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; Repository &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
| |<br />
| In the fields below, provide the URL of the repository |<br />
| where the updated packages are located. These fields might |<br />
| already be filled in according to the information in the |<br />
| /etc/sysconfig/vzup2date/vzup2date.conf configuration |<br />
| file. However, you may change this information at your |<br />
| discretion. |<br />
| |<br />
| URL: https:// vzup2date.swsoft.com____________ |<br />
| Login: username________________________________ |<br />
| Password: ******__________________________________ |<br />
| Proxy: ________________________________________ |<br />
| Proxy login: ________________________________________ |<br />
| Proxy password: ________________________________________ |<br />
| |<br />
|[*] Save configuration |<br />
| |<br />
| &#8212;&#8212;&#8211; &#8212;&#8212;&#8211; &#8212;&#8212;&#8211; |<br />
| | Quit | | Back | | Next | |<br />
| &#8212;&#8212;&#8211; &#8212;&#8212;&#8211; &#8212;&#8212;&#8211; |<br />
| |<br />
| |<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Make sure that that the url listed is as above.Now select the templates you want to update, and letting it download them</p>
<p>If you are not sure about login details then check the file <strong>/etc/sysconfig/vzup2date/vzup2date.conf</strong> for the login details because all the login credentials are taken from this file.</p>
<p><strong></strong>We can also download the standard OS and application templates from the Parallels FTP server, if above <strong>vzup2date</strong> not working properly.</p>
<p><a onclick="var  x=&quot;.tl(&quot;;s_objectID=&quot;ftp://downloads.swsoft.com/templates/standard_1&quot;;return  this.s_oc?this.s_oc(e):true" href="ftp://downloads.swsoft.com/templates/standard">ftp://downloads.swsoft.com/templates/standard </a></p>
<p>The above command will ask you login details which you can collect from the Parallels sales representative.</p>
<p>Once rpm downloaded on the server install it by using the following command</p>
<blockquote><p><strong><code>[root@root]#rpm -ihv new_template_name.rpm</code></strong></p></blockquote>
<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/simple-command-to-update-templates-for-virtuozzo/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>Test php script to check the exec php function</title>
		<link>http://www.theperfectarts.com/2011/11/test-php-script-to-check-the-exec-php-function/</link>
		<comments>http://www.theperfectarts.com/2011/11/test-php-script-to-check-the-exec-php-function/#comments</comments>
		<pubDate>Sun, 20 Nov 2011 11:55:27 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Enable private PHP]]></category>
		<category><![CDATA[Linux Administrator Interview Questions]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[cehck php exec function]]></category>
		<category><![CDATA[how to check php exec disable]]></category>
		<category><![CDATA[how to check php exec function enable]]></category>
		<category><![CDATA[php exec function]]></category>
		<category><![CDATA[php exec function issue]]></category>
		<category><![CDATA[problem to chek exec function]]></category>
		<category><![CDATA[script to check exec function]]></category>
		<category><![CDATA[simple test script for exec function]]></category>
		<category><![CDATA[test exec function]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=1628</guid>
		<description><![CDATA[Simple php script to check if exec php function is enabled or not because many shared hosting provider by default disabled the exec php function to secure the server. You can refer the following script to check exec php function. Login in to the cPanel and create the new file test.php and insert the following [...]]]></description>
			<content:encoded><![CDATA[<p>Simple php script to check if exec php function is enabled or not because many shared hosting provider by default disabled the exec php function to secure the server. You can refer the following script to check exec php function.</p>
<p>Login in to the cPanel and create the new file test.php and insert the following code.</p>
<blockquote><p><strong>&lt;?php</strong><br />
<strong>echo exec(&#8216;whoami&#8217;);</strong><br />
<strong>?&gt;</strong></p></blockquote>
<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></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 />
Now browse the URL <strong>yourdomain.com/test.php</strong> , it will show your cPanel user name if exec php function is enabled on the server and if exec php function is disabled on your domain hosted server then you will receive the following error after browsing the URL yourdomain.com/test.php</p>
<p><strong>Warning: exec() has been disabled for security reasons in /home/cpanel_username/public_html/test.php on line 2</strong></p>
<p>You can contact your hosting provider and ask them to enable the exec function. If you have any query let me know at nsk.gunjan@gmail.com</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/test-php-script-to-check-the-exec-php-function/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Define wget download speed</title>
		<link>http://www.theperfectarts.com/2011/11/define-wget-download-speed/</link>
		<comments>http://www.theperfectarts.com/2011/11/define-wget-download-speed/#comments</comments>
		<pubDate>Fri, 18 Nov 2011 14:54:24 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Linux Administrator Interview Questions]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[define limit-rate wget]]></category>
		<category><![CDATA[limit-rate problem]]></category>
		<category><![CDATA[limit-rate speed]]></category>
		<category><![CDATA[limit-rate wget speed]]></category>
		<category><![CDATA[wget]]></category>
		<category><![CDATA[wget issue]]></category>
		<category><![CDATA[wget limit-rate]]></category>
		<category><![CDATA[wget limit-rate issue]]></category>
		<category><![CDATA[wget problem]]></category>
		<category><![CDATA[wget speed]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=1614</guid>
		<description><![CDATA[Some time while downloading files via wget we are facing the higher bandwidth usage issue therefore its always better to use the downloading speed to download the content constantly to avoid any higher and lower bandwidth usage issue. We can use the following &#8220;limit-rate&#8221; option in the wget command while downloading the files. Server@root[~]# wget [...]]]></description>
			<content:encoded><![CDATA[<p>Some time while downloading files via wget we are facing the higher bandwidth usage issue therefore its always better to use the downloading speed to download the content constantly to avoid any higher and lower bandwidth usage issue. We can use the following &#8220;limit-rate&#8221; option in the wget command while downloading the files.<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><strong>Server@root[~]# wget &#8211;limit-rate=40k url/file</strong></p>
<p>In above example the download speed is 40KB/Second</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/define-wget-download-speed/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Check RPM database update dates</title>
		<link>http://www.theperfectarts.com/2011/11/check-rpm-database-update-dates/</link>
		<comments>http://www.theperfectarts.com/2011/11/check-rpm-database-update-dates/#comments</comments>
		<pubDate>Thu, 17 Nov 2011 14:21:19 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Linux Administrator Interview Questions]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[check database update]]></category>
		<category><![CDATA[check RPM database]]></category>
		<category><![CDATA[check RPM update]]></category>
		<category><![CDATA[database date for rpm]]></category>
		<category><![CDATA[date for rpm databases]]></category>
		<category><![CDATA[problem to update RPM database]]></category>
		<category><![CDATA[RPM database issue]]></category>
		<category><![CDATA[RPM database update issue]]></category>
		<category><![CDATA[update date for RPM]]></category>
		<category><![CDATA[update RPM database]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=1606</guid>
		<description><![CDATA[Many time we are facing the problem with the RPM database and we are not sure when the last time we have updated the RPM databases, at that time we can use the following command to check the RPM database update dates root@server [~]# rpm -qa -last It will give you the result like root@server [...]]]></description>
			<content:encoded><![CDATA[<p>Many time we are facing the problem with the RPM database and we are not sure when the last time we have updated the RPM databases, at that time we can use the following command to check the RPM database update dates</p>
<p><strong>root@server [~]# rpm -qa -last</strong></p>
<p>It will give you the result like</p>
<p><strong>root@server [~]# rpm -qa -last<br />
libxml2-devel-2.6.26-2.1.12.el5_7.1 Thu 03 Nov 2011 04:38:06 AM GMT<br />
libxml2-2.6.26-2.1.12.el5_7.1 Thu 03 Nov 2011 04:38:00 AM GMT<br />
freetype-devel-2.2.1-28.el5_7.1 Thu 27 Oct 2011 04:38:19 AM BST<br />
freetype-2.2.1-28.el5_7.1 Thu 27 Oct 2011 04:38:16 AM BST<br />
libX11-devel-1.0.3-11.el5_7.1 Thu 06 Oct 2011 04:37:58 AM BST<br />
libX11-1.0.3-11.el5_7.1 Thu 06 Oct 2011 04:37:53 AM BST<br />
file-4.17-15.el5_3.1 Wed 05 Oct 2011 04:39:01 AM BST<br />
rpm-build-4.4.2.3-22.el5_7.2 Tue 04 Oct 2011 04:37:59 AM BST<br />
rpm-python-4.4.2.3-22.el5_7.2 Tue 04 Oct 2011 04:37:58 AM BST</strong></p>
<p>For example rpm-python-4.4.2.3-22.el5_7.2 is last updated on the date <strong>Tue 04 Oct 2011 04:37:58 AM BST</strong>&#8221;</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/11/check-rpm-database-update-dates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitor Mysql process</title>
		<link>http://www.theperfectarts.com/2011/11/monitor-mysql-process/</link>
		<comments>http://www.theperfectarts.com/2011/11/monitor-mysql-process/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 14:05:05 +0000</pubDate>
		<dc:creator>Gunjan</dc:creator>
				<category><![CDATA[Linux Administrator Interview Questions]]></category>
		<category><![CDATA[Mysql + phpmyadmin]]></category>
		<category><![CDATA[VPS]]></category>
		<category><![CDATA[check mysql cpu]]></category>
		<category><![CDATA[check mysql running process]]></category>
		<category><![CDATA[cpu usage for mysql]]></category>
		<category><![CDATA[issue with mysql]]></category>
		<category><![CDATA[monitor mysql command]]></category>
		<category><![CDATA[monitor mysql process]]></category>
		<category><![CDATA[monitor running process]]></category>
		<category><![CDATA[mysql pr]]></category>
		<category><![CDATA[mysql proc stat]]></category>
		<category><![CDATA[mysql process]]></category>
		<category><![CDATA[mysql procs]]></category>
		<category><![CDATA[mysql status]]></category>
		<category><![CDATA[mysqladmin proc]]></category>
		<category><![CDATA[mysqladmin stats]]></category>
		<category><![CDATA[proc mysqladmin]]></category>
		<category><![CDATA[running mysql]]></category>
		<category><![CDATA[solve mysql cpu issue]]></category>

		<guid isPermaLink="false">http://www.theperfectarts.com/?p=1603</guid>
		<description><![CDATA[In the daily Linux monitoring,we are facing the high mysql cpu usage problem but not sure which database or mysql query is using excessive CPU, at that time we can use the following commands to monitor the mysql process and optimize the offending database. server@root[~]#mysqladmin proc stat The above command will show you the current [...]]]></description>
			<content:encoded><![CDATA[<p>In the daily Linux monitoring,we are facing the high mysql cpu usage problem but not sure which database or mysql query is using excessive CPU, at that time we can use the following commands to monitor the mysql process and optimize the offending database.</p>
<p><strong>server@root[~]#mysqladmin proc stat</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></p>
<p>The above command will show you the current status for mysql process and if you want to check the continuously running mysql process then run the following command.</p>
<p><strong>server@root[~]#mysqladmin -i3 pr</strong></p>
<p>You can also install watchmysql to monitor the mysql<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></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/monitor-mysql-process/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

