<?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>eITWebguru &#187; Linux Virtuozzo</title>
	<atom:link href="http://eitwebguru.com/category/virtuozzo/linux-virtuozzo/feed/" rel="self" type="application/rss+xml" />
	<link>http://eitwebguru.com</link>
	<description></description>
	<lastBuildDate>Fri, 18 May 2012 04:27:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Install and Configure CSF on a VPS (Part-I Enable Firewall Modules)</title>
		<link>http://eitwebguru.com/install-and-configure-csf-on-a-vps-part-i-enable-firewall-modules/</link>
		<comments>http://eitwebguru.com/install-and-configure-csf-on-a-vps-part-i-enable-firewall-modules/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 22:57:23 +0000</pubDate>
		<dc:creator>Milind</dc:creator>
				<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[Linux Virtuozzo]]></category>
		<category><![CDATA[Virtuozzo]]></category>

		<guid isPermaLink="false">http://eitwebguru.com/?p=374</guid>
		<description><![CDATA[First of all, Happy New Year to all the reader as This is the Very First Post for this Year. Enabling IPTables Modules Today I will going to explain How to install and configure CSF on a VPS. As VPS is a Virtual Server which shares the resources from the Host server including Kernel Modules, [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p style="text-align: justify;"><strong><span style="font-family: Verdana; font-size: small;">First of all, Happy New Year to all the reader as This is the Very First Post for this Year. </span></strong></p>
<p><span id="more-374"></span></p>
<p style="text-align: justify;"><strong><span style="font-family: Verdana; font-size: small;">Enabling IPTables Modules</span></strong></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Today I will going to explain How to install and configure CSF on a VPS. As VPS is a Virtual Server which shares the resources from the Host server including Kernel Modules, before installation of any firewall on Linux VPS make sure to have some required modules enabled on the host server. Following is the List of modules which required on the host server.</span></p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 490px; height: 375px; text-align: justify; font-family: Verdana; font-size: small;" dir="ltr"><strong>ipt_MASQUERADE
ipt_helper
ipt_SAME
ipt_REDIRECT
ipt_state
ipt_TCPMSS
ipt_LOG
ipt_TOS
tun
iptable_nat
ipt_length
ipt_tcpmss
iptable_mangle
ipt_limit
ipt_tos
iptable_filter
ipt_helper
ipt_tos
ipt_ttl
ipt_REJECT</strong></pre>
<p style="text-align: justify;">
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">You can check the modules which are loaded on Host Server using command &#8220;lsmod&#8221; and if you get following for x_tables the you have all the modules configured otherwise you can enable them using &#8220;modprobe&#8221; command</span></p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 490px; height: 50px; text-align: justify; font-family: Verdana; font-size: small;" dir="ltr"><strong>x_tables               19204  <span style="color: #008000;">21</span> iptable_nat,xt_limit,xt_multiport,ipt_tos,ipt_TOS,ipt_REJECT,ipt_TCPMSS,xt_tcpmss,ipt_ttl,ipt_LOG,xt_length,xt_conntrack,xt_state,xt_helper,ipt_REDIRECT,ipt_recent,ipt_owner,ip_tables,ip6t_REJECT,xt_tcpudp,ip6_tables</strong></pre>
<p style="text-align: justify;">
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">You can copy and paste the following commands to enable all the required IPTables modules</span></p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 490px; height: 375px; text-align: justify; font-family: Verdana; font-size: small;" dir="ltr"><strong>modprobe ipt_MASQUERADE
modprobe ipt_helper
modprobe ipt_SAME
modprobe ipt_REDIRECT
modprobe ipt_state
modprobe ipt_TCPMSS
modprobe ipt_LOG
modprobe ipt_TOS
modprobe tun
modprobe iptable_nat
modprobe ipt_length
modprobe ipt_tcpmss
modprobe iptable_mangle
modprobe ipt_limit
modprobe ipt_tos
modprobe iptable_filter
modprobe ipt_helper
modprobe ipt_tos
modprobe ipt_ttl
modprobe ipt_REJECT</strong></pre>
<p><strong><span style="font-family: Verdana; font-size: small;">Enable Firewall Modules for VPS</span></strong></p>
<p><span style="font-family: Verdana; font-size: small;">Once the IPtables modules are enabled on Host server, execute following command from the shell (of HW Node) to enable modules for the VPS.</span></p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 490px; height: 40px; text-align: justify; font-family: Verdana; font-size: small;" dir="ltr"><strong>vzctl set VEID --iptables ipt_REJECT --iptables ipt_tos --iptables ipt_TOS --iptables ipt_LOG --iptables ip_conntrack --iptables ipt_limit --iptables ipt_multiport --iptables iptable_filter --iptables iptable_mangle --iptables ipt_TCPMSS --iptables ipt_tcpmss --iptables ipt_ttl --iptables ipt_length --iptables ipt_state --iptables iptable_nat --iptables ip_nat_ftp --save</strong></pre>
<p style="text-align: justify;">
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Or you can open VPS Configuration file i.e. <strong>/etc/vz/conf/VEID.conf</strong> and paste following in the last line of the file</span></p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 490px; height: 40px; text-align: justify; font-family: Verdana; font-size: small;" dir="ltr"><strong>IPTABLES="iptable_filter iptable_mangle ipt_limit ipt_multiport ipt_tos ipt_TOS ipt_REJECT ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_LOG ipt_length ip_conntrack ip_conntrack_ftp ip_conntrack_irc ipt_conntrack ipt_state ipt_helper iptable_nat ip_nat_ftp ip_nat_irc"</strong></pre>
<p style="text-align: justify;">
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Here, <strong>VEID</strong> is the <strong>VPS ID</strong> of the Server</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">In Next Part, I will tell how to install and configure CSF on different Control Panels. You can check the <strong><a href="http://eitwebguru.com/install-and-configure-csf-on-a-vps-part-ii/">Next Part here</a></strong><br />
</span></p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://eitwebguru.com/install-and-configure-csf-on-a-vps-part-i-enable-firewall-modules/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Enable Iptables/Firewall Modules for a VPS</title>
		<link>http://eitwebguru.com/enable-iptablesfirewall-modules-for-a-vps/</link>
		<comments>http://eitwebguru.com/enable-iptablesfirewall-modules-for-a-vps/#comments</comments>
		<pubDate>Tue, 24 Apr 2012 22:22:58 +0000</pubDate>
		<dc:creator>Milind</dc:creator>
				<category><![CDATA[Linux Virtuozzo]]></category>
		<category><![CDATA[Virtuozzo]]></category>
		<category><![CDATA[enable firewall modules]]></category>
		<category><![CDATA[enable kernal modules]]></category>
		<category><![CDATA[iptable_filter]]></category>
		<category><![CDATA[iptable_mangle]]></category>
		<category><![CDATA[iptable_nat]]></category>
		<category><![CDATA[ipt_helper]]></category>
		<category><![CDATA[ipt_length]]></category>
		<category><![CDATA[ipt_limit]]></category>
		<category><![CDATA[ipt_LOG]]></category>
		<category><![CDATA[ipt_MASQUERADE]]></category>
		<category><![CDATA[ipt_REDIRECT]]></category>
		<category><![CDATA[ipt_REJECT]]></category>
		<category><![CDATA[ipt_SAME]]></category>
		<category><![CDATA[ipt_state]]></category>
		<category><![CDATA[ipt_TCPMSS]]></category>
		<category><![CDATA[ipt_TOS]]></category>
		<category><![CDATA[ipt_ttl]]></category>
		<category><![CDATA[modprobe]]></category>

		<guid isPermaLink="false">http://eitwebguru.com/?p=172</guid>
		<description><![CDATA[Default firewall for Linux i.e. iptables is depends upon many kernel modules without which a server can&#8217;t be secured properly. Also the firewall configurations will give many errors while configuring it. So, it is required to have proper kernel modules enabled for a Server. In case of a VPS, Virtually Hosted server which shared resources [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Default firewall for Linux i.e. iptables is depends upon many kernel modules without which a server can&#8217;t be secured properly. Also the firewall configurations will give many errors while configuring it. So, it is required to have proper kernel modules enabled for a Server.</span></p>
<p><span id="more-172"></span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">In case of a VPS, Virtually Hosted server which shared resources and kernel of Host server it&#8217;s not possible to compile/enable kernel related modules for a VPS from it. So, to run iptables properly a VPS too have proper kernel modules enabled which can be enabled from the host server. Normally a Virtuozzo OR OpenVZ based kernel only support following iptables modules</span></p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 500px; height: 400px; text-align: justify; font-family: Verdana; font-size: small;" dir="ltr"><strong>ipt_MASQUERADE
ipt_helper
ipt_SAME
ipt_REDIRECT
ipt_state
ipt_TCPMSS
ipt_LOG
ipt_TOS
iptable_nat
ipt_length
ipt_tcpmss
iptable_mangle
ipt_limit
ipt_tos
iptable_filter
ipt_helper
ipt_tos
ipt_ttl
ipt_REJECT</strong></pre>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong><span style="font-family: Verdana; font-size: small;"><br />
ENABLE MODULES ON HOST SERVER</span></strong></span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">To enable these modules for a VPS you will first have to enable these modules on the host server using command modprobe . So, just copy and paste the following commands on the Shell of HOST SERVER</span></p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 500px; height: 400px; text-align: justify; font-family: Verdana; font-size: small;" dir="ltr"><strong>modprobe ipt_MASQUERADE
modprobe ipt_helper
modprobe ipt_SAME
modprobe ipt_REDIRECT
modprobe ipt_state
modprobe ipt_TCPMSS
modprobe ipt_LOG
modprobe ipt_TOS
modprobe iptable_nat
modprobe ipt_length
modprobe ipt_tcpmss
modprobe iptable_mangle
modprobe ipt_limit
modprobe ipt_tos
modprobe iptable_filter
modprobe ipt_helper
modprobe ipt_tos
modprobe ipt_ttl
modprobe ipt_REJECT</strong></pre>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><br />
Now make sure that all these modules are enabled on the server using command &#8220;<strong>lsmod</strong>&#8220;.</span></p>
<p style="text-align: justify;"><span style="text-decoration: underline;"><strong><span style="font-family: Verdana; font-size: small;">ENABLE MODULES FOR VPS</span></strong></span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Now the above mentioned modules can be enabled for a VPS using two ways i.e. <strong>by using command</strong> OR <strong>by adding rules manually</strong>.</span></p>
<p style="text-align: justify;"><strong><span style="font-family: Verdana; font-size: small;">1) By Command:</span></strong></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Execute following command from the host server to enable all the modules for the VPS</span></p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 500px; height: 45px; text-align: justify; font-family: Verdana; font-size: small;" dir="ltr"><strong>vzctl set VEID --iptables ipt_REJECT --iptables ipt_tos --iptables ipt_TOS --iptables ipt_LOG --iptables ip_conntrack --iptables ipt_limit --iptables ipt_multiport --iptables iptable_filter --iptables iptable_mangle --iptables ipt_TCPMSS --iptables ipt_tcpmss --iptables ipt_ttl --iptables ipt_length --iptables ipt_state --iptables iptable_nat --iptables ip_nat_ftp --save</strong></pre>
<p style="text-align: justify;"><strong><span style="font-family: Verdana; font-size: small;"><br />
2) Adding Rules manually:</span></strong></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Open the VPS configuration file which exists at <strong>/etc/vz/conf/veid.conf</strong> and paste following in the last line of the file.</span></p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 500px; height: 45px; text-align: justify; font-family: Verdana; font-size: small;" dir="ltr"><strong>IPTABLES="iptable_filter iptable_mangle ipt_limit ipt_multiport ipt_tos ipt_TOS ipt_REJECT ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_LOG ipt_length ip_conntrack ip_conntrack_ftp ip_conntrack_irc ipt_conntrack ipt_state ipt_helper iptable_nat ip_nat_ftp ip_nat_irc"</strong></pre>
<p style="text-align: justify;"><strong><span style="font-family: Verdana; font-size: small;"><br />
After adding rules reboot the VPS to apply/enable the modules.</span></strong></p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://eitwebguru.com/enable-iptablesfirewall-modules-for-a-vps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTTPD doesn&#8217;t start After Atmail Installation in Plesk</title>
		<link>http://eitwebguru.com/httpd-doesnt-start-after-atmail-installation-in-plesk/</link>
		<comments>http://eitwebguru.com/httpd-doesnt-start-after-atmail-installation-in-plesk/#comments</comments>
		<pubDate>Mon, 23 Apr 2012 21:55:51 +0000</pubDate>
		<dc:creator>Milind</dc:creator>
				<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[Linux Virtuozzo]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Plesk For Linux]]></category>
		<category><![CDATA[atmail/conf.d not found]]></category>
		<category><![CDATA[Syntax error on line 210]]></category>
		<category><![CDATA[Syntax error on line 6]]></category>
		<category><![CDATA[zzz_atmail_vhost.conf]]></category>

		<guid isPermaLink="false">http://eitwebguru.com/?p=581</guid>
		<description><![CDATA[After installation of Atmail Webmail Client, while restarting Apache it throws following Syntax Error: [root@server ~]# service httpd start Starting httpd: httpd: Syntax error on line 210 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.d/zzz_atmail_vhost.conf: Include directory &#8216;/etc/psa/webmail/atmail/conf.d&#8217; not found [FAILED] First we will have to check where atmail is installed. We can do [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">After installation of Atmail Webmail Client, while restarting Apache it throws following Syntax Error:</span></p>
<p><span id="more-581"></span></p>
<div style="background: url(/wp-content/themes/notepad_second/images/pre_code_bg_blk.png) repeat-y scroll 0% 0% transparent; width: 490px; height: 100px; overflow: auto; line-height: 20px; padding: 20px; font-family: Courier New; font-size: small; color: #ffffff;">[root@server ~]# service httpd start<br /> Starting httpd: httpd: Syntax error on line 210 of /etc/httpd/conf/httpd.conf: Syntax error on line 6 of /etc/httpd/conf.d/zzz_atmail_vhost.conf: Include directory &#8216;/etc/psa/webmail/atmail/conf.d&#8217; not found                                                           [<strong><span style="color: #ff0000;">FAILED</span></strong>]</div>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><br />First we will have to check where atmail is installed. We can do that by querying the RPM files using option &#8220;<strong>rpm -ql</strong>&#8220;</span></p>
<div style="background: url(/wp-content/themes/notepad_second/images/pre_code_bg_blk.png) repeat-y scroll 0% 0% transparent; width: 490px; height: 220px; overflow: auto; line-height: 20px; padding: 20px; font-family: Courier New; font-size: small; color: #ffffff;">[root@server ~]# rpm -ql psa-atmail-1.02-cos5.build92091210.17 | grep etc<br /> /etc/psa-webmail/atmail<br /> /etc/psa-webmail/atmail/atmail.conf<br /> /etc/psa-webmail/atmail/atmail_vhost.conf<br /> /etc/psa-webmail/atmail/conf.d<br /> /etc/psa-webmail/atmail/create_db.sql.in<br /> /etc/psa-webmail/atmailcom<br /> /etc/psa-webmail/atmailcom/atmailcom_vhost.conf<br /> /etc/psa-webmail/atmailcom/conf.d<br /> [root@server ~]#</div>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><br />The above output shows that the files are created in &#8220;<strong>/etc/psa-webmail/</strong>&#8221; directory instead of &#8220;<strong>/etc/psa/webmail/</strong>&#8220;</span></p>
<div style="background: url(/wp-content/themes/notepad_second/images/pre_code_bg_blk.png) repeat-y scroll 0% 0% transparent; width: 490px; height: 200px; overflow: auto; line-height: 20px; padding: 20px; font-family: Courier New; font-size: small; color: #ffffff;">[root@server ~]# ls -al /etc/psa-webmail/atmail<br /> total 28<br /> drwxr-xr-x 3 root root   4096 Dec 28 10:37 .<br /> drwxr-xr-x 5 root root   4096 Dec 28 10:37 ..<br /> -rw-r&#8211;r&#8211; 1 root root    122 Dec 10 11:54 atmail.conf<br /> -rw-r&#8212;&#8211; 1 root apache   14 Aug 19  2009 .atmail.shadow<br /> -rw-r&#8211;r&#8211; 1 root root   2932 Dec 10 11:54 atmail_vhost.conf<br /> drwxr-xr-x 2 root root   4096 Dec 10 11:54 conf.d<br /> -rw-r&#8211;r&#8211; 1 root root    200 Dec 10 11:54 create_db.sql.in<br /> [root@server etc]#</div>
<p><span style="font-family: Verdana; font-size: small;"><br />So, copy the file to relevant directory as in the conf file of httpd service</span></p>
<div style="background: url(/wp-content/themes/notepad_second/images/pre_code_bg_blk.png) repeat-y scroll 0% 0% transparent; width: 490px; height: 40px; overflow: auto; line-height: 20px; padding: 20px; font-family: Courier New; font-size: small; color: #ffffff;">[root@server ~]# cp -a /etc/psa-webmail/atmail /etc/psa/webmail/</div>
<p><span style="font-family: Verdana; font-size: small;"><br />After that we were able to start the httpd service successfully.</span></p>
<div style="background: url(/wp-content/themes/notepad_second/images/pre_code_bg_blk.png) repeat-y scroll 0% 0% transparent; width: 490px; height: 60px; overflow: auto; line-height: 20px; padding: 20px; font-family: Courier New; font-size: small; color: #ffffff;">[root@server etc]# /etc/init.d/httpd restart<br /> Stopping httpd:                                            [<span style="color: #ff0000;"><strong>FAILED</strong></span>]<br /> Starting httpd:                                            [ <span style="color: #339966;"><strong> OK</strong></span> ]</div>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://eitwebguru.com/httpd-doesnt-start-after-atmail-installation-in-plesk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to: Set Priotrities for YUM Repositories</title>
		<link>http://eitwebguru.com/how-to-set-priotrities-for-yum-repositories/</link>
		<comments>http://eitwebguru.com/how-to-set-priotrities-for-yum-repositories/#comments</comments>
		<pubDate>Sat, 24 Mar 2012 16:08:19 +0000</pubDate>
		<dc:creator>Milind</dc:creator>
				<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[Linux Virtuozzo]]></category>
		<category><![CDATA[how to YUM Repository]]></category>
		<category><![CDATA[Set Yum Repository Priority]]></category>
		<category><![CDATA[what is Yum Priority]]></category>

		<guid isPermaLink="false">http://eitwebguru.com/?p=646</guid>
		<description><![CDATA[Sometime when you have enabled many YUM Repositories like local repository, rpmforge, ATrpms for your server and it&#8217;s quite difficult to manage packages where you want that the package which you want to install too be searched on Local Repository first, then to CentOS Base, update and if it doens&#8217;t find the package here it [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Sometime when you have enabled many YUM Repositories like <strong>local repository, rpmforge</strong>, ATrpms for your server and it&#8217;s quite difficult to manage packages where you want that the package which you want to install too be searched on Local Repository first, then to CentOS Base, update and if it doens&#8217;t find the package here it will go for any other Third Party Repositories.</span></p>
<p><span id="more-646"></span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">This Task can be done by setting up Priority for the Yum Repositories. Following are the steps to set Priorities for YUM Repositories<br /></span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>1) Install yum-priorities</strong></span></p>
<p style="text-align: justify;"><strong></strong><span style="font-family: Verdana; font-size: small;">The yum-priorities is used to enforce ordered protection of repositories, by giving priorities to repositories. Packages from repositories with a lower priority will never be used to upgrade packages that were installed from a repository with a higher priority. The priorities are also in effect when a new package is installed &#8211; if a package is in more than one repository, it will be installed from the repository with the highest priority. This plugin is particularly useful for anyone who uses one or more third-party repositories, as these repositories may update system files, which can potentially compromise the stability of your CentOS installation. This Package can be installed using following YUM Command.</span></p>
<div style="background: url(/wp-content/themes/notepad_second/images/pre_code_bg_blk.png) repeat-y scroll 0% 0% transparent; width: 490px; height: 20px; overflow: auto; line-height: 20px; padding: 20px; font-family: Courier New; font-size: small; color: #ffffff;">[root@server ~]# yum install yum-priorities -y</div>
<p><span style="font-family: Verdana; font-size: small;"><strong><br />**using option -y</strong> with yum will allow yum to install package with taking permission from user.<br /></span></p>
<p><strong><span style="font-family: Verdana; font-size: small;">2) Applying Priorities</span></strong></p>
<p><span style="font-family: Verdana; font-size: small;">Priorities for a Repository need to be added in .repo file. Following is the syntax for setting Priority</span></p>
<div style="background: url(/wp-content/themes/notepad_second/images/pre_code_bg_blk.png) repeat-y scroll 0% 0% transparent; width: 490px; height: 20px; overflow: auto; line-height: 20px; padding: 20px; font-family: Courier New; font-size: small; color: #ffffff;">priority=<span style="text-decoration: underline;"><strong>[NUM]</strong></span></div>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><br />Here <strong>[NUM]</strong> will be the Priority. The Repository with higher priority will be used for installing any package. e.g. if you want your local repository should have highest priority than you can set highest priority for the same like below</span></p>
<div style="background: url(/wp-content/themes/notepad_second/images/pre_code_bg_blk.png) repeat-y scroll 0% 0% transparent; width: 490px; height: 120px; overflow: auto; line-height: 20px; padding: 20px; font-family: Courier New; font-size: small; color: #ffffff;">[localrepo]<br /> name = CentOS $releasever &#8211; MyLocalRepo<br /> baseurl = file:///opt/CENTOS/RPMS/<br /> enabled=1<br /> gpgcheck=0<br /> <span style="color: #ffffff;"><span style="text-decoration: underline;"><strong>priority=10</strong></span></span></div>
<p><span style="font-family: Verdana; font-size: small;"><br />All other repositories will have lesser value as compared to Local Repository.</span></p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://eitwebguru.com/how-to-set-priotrities-for-yum-repositories/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>FIX:- error while loading shared libraries: libdns.so.22</title>
		<link>http://eitwebguru.com/fix-error-while-loading-shared-libraries-libdns-so-22/</link>
		<comments>http://eitwebguru.com/fix-error-while-loading-shared-libraries-libdns-so-22/#comments</comments>
		<pubDate>Wed, 14 Mar 2012 13:21:05 +0000</pubDate>
		<dc:creator>Milind</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Linux Virtuozzo]]></category>
		<category><![CDATA[cannot open shared object file]]></category>
		<category><![CDATA[Dns Error]]></category>
		<category><![CDATA[Dns not starting]]></category>
		<category><![CDATA[error while loading shared libraries: libdns.so.22]]></category>
		<category><![CDATA[error while loading shared libraries: libisc.so.11]]></category>
		<category><![CDATA[libdns.so.22]]></category>
		<category><![CDATA[libisc.so.11]]></category>
		<category><![CDATA[named error]]></category>
		<category><![CDATA[named failed]]></category>
		<category><![CDATA[No such file or directory]]></category>

		<guid isPermaLink="false">http://eitwebguru.com/?p=244</guid>
		<description><![CDATA[Recently while restarting DNS service on Cpanel VPS it shows following errors: [root@support ~]# /etc/init.d/named start Starting named: /usr/sbin/named: error while loading shared libraries: libdns.so.22: cannot open shared object file: No such file or directory [FAILED] [root@support ~]# /etc/init.d/named start Starting named: /usr/sbin/named: error while loading shared libraries: libisc.so.11: cannot open shared object file: No [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Recently while restarting DNS service on Cpanel VPS it shows following errors:</span></p>
<p><span id="more-244"></span></p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 500px; height: 160px; text-align: justify; font-family: Verdana; font-size: small;" dir="ltr"><strong><span style="color: #000000;">[root@support ~]# /etc/init.d/named start
Starting named: /usr/sbin/named: <span style="color: #ff0000;">error while loading shared libraries: libdns.so.22: cannot open shared object file</span>: No such file or directory
[<span style="color: #ff0000;">FAILED</span>]

[root@support ~]# /etc/init.d/named start
Starting named: /usr/sbin/named: <span style="color: #ff0000;">error while loading shared libraries: libisc.so.11: cannot open shared object file</span>: No such file or directory
[<span style="color: #ff0000;">FAILED</span>]</span></strong></pre>
<p style="text-align: justify;">
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">We have checked and found that the OS template [CentOS 5.3] has been update to [CentOS 5.4] due to will all the binaries of the VPS has been updated as well. For temporary work around I have copied the libdns.so and libisc.so to libdns.so.22 and libisc.so.11. </span></p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 500px; height: 60px; text-align: justify; font-family: Verdana; font-size: small;" dir="ltr"><strong><span style="color: #000000;">[root@support ~]# cd /usr/lib
[root@support lib]# cp libdns.so libdns.so.22
[root@support lib]# cp libisc.so libisc.so.11</span></strong></pre>
<p style="text-align: justify;">
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">After that we were able to restart named server</span></p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 500px; height: 80px; text-align: justify; font-family: Verdana; font-size: small;" dir="ltr"><strong><span style="color: #000000;">[root@support lib]# service named restart
Stopping named:                                            [<span style="color: #ff0000;">FAILED</span>]
Starting named:                                             [  <span style="color: #00ff00;">OK </span> ]
[root@support lib]#</span></strong></pre>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://eitwebguru.com/fix-error-while-loading-shared-libraries-libdns-so-22/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How to Create Local Yum Repository</title>
		<link>http://eitwebguru.com/how-to-create-local-yum-repository/</link>
		<comments>http://eitwebguru.com/how-to-create-local-yum-repository/#comments</comments>
		<pubDate>Sat, 25 Feb 2012 09:55:28 +0000</pubDate>
		<dc:creator>Milind</dc:creator>
				<category><![CDATA[Linux Tips]]></category>
		<category><![CDATA[Linux Virtuozzo]]></category>
		<category><![CDATA[Create Local Yum Repository]]></category>
		<category><![CDATA[How to Create Local Yum Repository]]></category>
		<category><![CDATA[Yum Local Repository]]></category>

		<guid isPermaLink="false">http://eitwebguru.com/?p=248</guid>
		<description><![CDATA[If you have installed Linux (CentOS, Fedora etc.) on your System which doesn&#8217;t have internet connections in that case it&#8217;s very difficult to install packages i.e. everytime you will have to insert OS DVD and need to install packages or even if you copy all the RPMS to local system you will have to face [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">If you have installed Linux (CentOS, Fedora etc.) on your System which doesn&#8217;t have internet connections in that case it&#8217;s very difficult to install packages i.e. everytime you will have to insert OS DVD and need to install packages or even if you copy all the RPMS to local system you will have to face the dependencies problems. To fix this problem, we can create a local reposiorty of the RPMS which we have copied into the Local System. following are the steps to create a local repository</span></p>
<p><span id="more-248"></span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>1)</strong> Copy all the RPMS from the DVD to a particular folder lets say /root/os/RPMS</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>2)</strong> Install createrepo RPM from /root/os/RPMS directory using rpm command</span><br />
<span style="font-family: Verdana; font-size: small;"><br />
<strong>3)</strong> Now, we will have to create repo of the directory in which we have coied the RPMS. Following is the command to create the repo</span></p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 490px; height: 25px; text-align: justify; font-family: Verdana; font-size: small;" dir="ltr"><strong>[root@server ~] createrepo /root/os/RPMS</strong></pre>
<p style="text-align: justify;">
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Once the above command gets completed you will find repodata directory in /root/os/RPMS folder</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>4)</strong> configuing YUM to work with local repository. Create a new file in /etc/yum.repo.d/ or open /etc/yum.conf and paste following</span></p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 490px; height: 100px; text-align: justify; font-family: Verdana; font-size: small;" dir="ltr"><strong>[local repo]
name = OS $release - MyLocalRepo
baseurl = file:///root/os/RPMS/
enabled=1
gpgcheck=0</strong></pre>
<p><span style="font-family: Verdana; font-size: small;">Now Try to install any package using YUM</span></p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://eitwebguru.com/how-to-create-local-yum-repository/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Virtuozzo Backup Error: 307 Message processing was terminated because timeout was reached</title>
		<link>http://eitwebguru.com/virtuozzo-backup-error-307-message-processing-was-terminated-because-timeout-was-reached/</link>
		<comments>http://eitwebguru.com/virtuozzo-backup-error-307-message-processing-was-terminated-because-timeout-was-reached/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 02:09:26 +0000</pubDate>
		<dc:creator>Milind</dc:creator>
				<category><![CDATA[Linux Virtuozzo]]></category>
		<category><![CDATA[Virtuozzo]]></category>
		<category><![CDATA[#307 Message processing was terminated because timeout was reached waiting for a response]]></category>
		<category><![CDATA[307 Message processing was terminated because timeout was reached]]></category>
		<category><![CDATA[Message processing was terminated because timeout]]></category>
		<category><![CDATA[Parallels Power panel backup Error]]></category>
		<category><![CDATA[Virtuozzo backup error]]></category>

		<guid isPermaLink="false">http://eitwebguru.com/?p=389</guid>
		<description><![CDATA[Sometime whenever a user tries to take backup from Virtuozzo Power Panel or Parallels Power panel it gets failed and action logs shows following Error &#8220;#307 Message processing was terminated because timeout was reached waiting for a response&#8220; The above error shows that the timeout limit which is set in the Virtuozzo Configuration for backup [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Sometime whenever a user tries to take backup from Virtuozzo Power Panel or Parallels Power panel it gets failed and action logs shows following Error</span></p>
<p><span id="more-389"></span></p>
<p style="text-align: justify;"><span style="color: #ff0000;"><span style="font-family: Verdana; font-size: small;">&#8220;<strong>#307 Message processing was terminated because timeout was reached waiting for a response</strong>&#8220;</span></span></p>
<p style="text-align: justify;"><span style="color: #ff0000;"><span style="font-family: Verdana; font-size: small;"><a href="http://eitwebguru.com/wp-content/uploads/2010/01/vzbackup.png"><img class="aligncenter size-medium wp-image-390" src="http://eitwebguru.com/wp-content/uploads/2010/01/vzbackup-300x116.png" alt="vzbackup 300x116 Virtuozzo Backup Error: 307 Message processing was terminated because timeout was reached" width="300" height="116" title="Virtuozzo Backup Error: 307 Message processing was terminated because timeout was reached" /></a> </span></span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">The above error shows that the timeout limit which is set in the Virtuozzo Configuration for backup has been reached and the backup was not completed during that time frame. To increase Virtuozzo backup Timeout limit</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>1)</strong> Open file &#8220;<strong>/etc/sysconfig/vzagent/vzagent.conf</strong>&#8220;</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>2)</strong> Search For key word &#8220;<strong>backup</strong>&#8221; and Change it </span></p>
<pre style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; width: 490px; height: 200px; text-align: justify; font-family: Verdana; font-size: small;" dir="ltr"><strong><span style="text-decoration: underline;">FROM:</span></strong>
&lt; timeouts &gt;
&lt; backup &gt;3600&lt; / backup &gt;
&lt; search &gt;3600&lt; / search &gt;
&lt; / timeouts &gt;
<strong><span style="text-decoration: underline;">TO:</span></strong>
&lt; timeouts &gt;
&lt; backup &gt;18000&lt; / backup &gt;
&lt; search &gt;3600&lt; / search &gt;
&lt; / timeouts &gt;</pre>
<p style="text-align: justify;">
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">By deafult the limit which is set is 3600 seconds which is 1 Hour; Change it to the limit as per your requirement, here I have set it <strong>18000</strong> seconds which is near about 5 hours.</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>3)</strong> To apply this setting, restart service VE on the Host server. Service VE can be restarted using command &#8220;<strong>vzctl restart 1</strong>&#8221; (This will restart vzagent on the host)</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Now try to take backup from &#8220;Virtuozzo Power Panel or Parallels Power panel&#8221;</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><a href="http://eitwebguru.com/wp-content/uploads/2010/01/vzbackupsus.png"><img class="aligncenter size-medium wp-image-391" src="http://eitwebguru.com/wp-content/uploads/2010/01/vzbackupsus-300x129.png" alt="vzbackupsus 300x129 Virtuozzo Backup Error: 307 Message processing was terminated because timeout was reached" width="300" height="129" title="Virtuozzo Backup Error: 307 Message processing was terminated because timeout was reached" /></a> </span></p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://eitwebguru.com/virtuozzo-backup-error-307-message-processing-was-terminated-because-timeout-was-reached/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo: Remove domain Manually from Plesk</title>
		<link>http://eitwebguru.com/howto-remove-domain-manually-from-plesk/</link>
		<comments>http://eitwebguru.com/howto-remove-domain-manually-from-plesk/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 21:58:06 +0000</pubDate>
		<dc:creator>Milind</dc:creator>
				<category><![CDATA[Linux Virtuozzo]]></category>
		<category><![CDATA[Plesk]]></category>
		<category><![CDATA[Plesk For Linux]]></category>
		<category><![CDATA[Plesk For Windows]]></category>
		<category><![CDATA[/tmp/.s.PGSQL.5432]]></category>
		<category><![CDATA[Connection to the database server]]></category>
		<category><![CDATA[delete domain manually]]></category>
		<category><![CDATA[Plesk domain removal]]></category>

		<guid isPermaLink="false">http://eitwebguru.com/?p=568</guid>
		<description><![CDATA[While deleting one domain from Plesk it was throwing following error Error: Connection to the database server has failed because of network problems: could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket &#8220;/tmp/.s.PGSQL.5432&#8243;? When we checked the domain on server (from shell) [...]]]></description>
			<content:encoded><![CDATA[<!-- google_ad_section_start --><p><span style="font-family: Verdana; font-size: small;">While deleting one domain from Plesk it was throwing following error</span></p>
<p><span id="more-568"></span></p>
<div style="background: url(/wp-content/themes/notepad_second/images/pre_code_bg_blk.png) repeat-y scroll 0% 0% transparent; width: 490px; height: 130px; overflow: auto; line-height: 20px; padding: 20px; font-family: Courier New; font-size: small; color: #ffffff;"><strong><span style="color: #ff0000;">Error: Connection to the database server has failed because of network problems:</span></strong>
<p><strong><span style="color: #ff0000;">could not connect to server: No such file or directory<br /> Is the server running locally and accepting<br /> connections on Unix domain socket &#8220;/tmp/.s.PGSQL.5432&#8243;?</span></strong></p>
</div>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">When we checked the domain on server (from shell) we have found that all physical Address (<strong>/var/www/vhost/domain.com</strong>) of the domain has been deleted but still Plesk shows the domain.</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;">Following are the steps to remove the domain from Plesk manually.</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>1)</strong> Connect the server using SSH</span></p>
<p style="text-align: justify;"><span style="font-family: Verdana; font-size: small;"><strong>2) </strong>Login into MySQL Prompt as Plesk admin</span></p>
<div style="background: url(/wp-content/themes/notepad_second/images/pre_code_bg_blk.png) repeat-y scroll 0% 0% transparent; width: 490px; height: 40px; overflow: auto; line-height: 20px; padding: 20px; font-family: Courier New; font-size: small; color: #ffffff;">[root@server ~]# mysql -uadmin -p`cat /etc/psa/.psa.shadow` -Dpsa</div>
<p><span style="font-family: Verdana; font-size: small;"><br /><strong>3)</strong> Delete the DNS Zone of the domain</span></p>
<div style="background: url(/wp-content/themes/notepad_second/images/pre_code_bg_blk.png) repeat-y scroll 0% 0% transparent; width: 490px; height: 106px; overflow: auto; line-height: 20px; padding: 20px; font-family: Courier New; font-size: small; color: #ffffff;">mysql&gt; delete from dns_zone where name=&#8217;domain.com&#8217;;<br /> Query OK, 1 row affected (0.09 sec)<br /> 
<p>mysql&gt; delete from dns_recs where host=&#8217;domain.com.&#8217;;<br /> Query OK, 8 rows affected (0.03 sec)</p>
</div>
<p><span style="font-family: Verdana; font-size: small;"><br />You can verify if any records still persists using following commands</span></p>
<div style="background: url(/wp-content/themes/notepad_second/images/pre_code_bg_blk.png) repeat-y scroll 0% 0% transparent; width: 490px; height: 106px; overflow: auto; line-height: 20px; padding: 20px; font-family: Courier New; font-size: small; color: #ffffff;">mysql&gt; select * from dns_zone where name=&#8217;domain.com&#8217;;<br /> Empty set (0.00 sec)
<p>mysql&gt; select * from dns_recs where host=&#8217;domain.com.&#8217;;<br /> Empty set (0.00 sec)</p>
</div>
<p><span style="font-family: Verdana; font-size: small;"><strong><br />4)</strong> Now delete the Domain from Domains table which will remove it from Plesk Domains List</span></p>
<div style="background: url(/wp-content/themes/notepad_second/images/pre_code_bg_blk.png) repeat-y scroll 0% 0% transparent; width: 490px; height: 40px; overflow: auto; line-height: 20px; padding: 20px; font-family: Courier New; font-size: small; color: #ffffff;">mysql&gt; delete from domains where name=&#8217;domain.com&#8217;;<br /> Query OK, 1 row affected (0.06 sec)</div>
<p><span style="font-family: Verdana; font-size: small;"><br />Verify it using select Command.</span></p>
<div style="background: url(/wp-content/themes/notepad_second/images/pre_code_bg_blk.png) repeat-y scroll 0% 0% transparent; width: 490px; height: 40px; overflow: auto; line-height: 20px; padding: 20px; font-family: Courier New; font-size: small; color: #ffffff;">mysql&gt; select * from domains where name=&#8217;domain.com&#8217;;<br /> Empty set (0.00 sec)</div>
<p> </p>
<p style="text-align: justify;"><span style="color: #800000;"><strong><span style="font-family: Verdana; font-size: small;"><span style="text-decoration: underline;">NOTE:</span> <em>PLEASE Make Sure To Verify The DOMAIN NAME before you make any changes as it might delete some other domain. Also the changes made are irreversible.</em></span></strong></span></p>
<!-- google_ad_section_end -->]]></content:encoded>
			<wfw:commentRss>http://eitwebguru.com/howto-remove-domain-manually-from-plesk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

