<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title><![CDATA[WebHostRepo Blog]]></title>
    <link>http://www.webhostrepo.com/blog/</link>
    <description><![CDATA[WebHostRepo Blog]]></description>
    <pubDate>Mon, 20 May 2013 04:08:05 +0000</pubDate>
    <image>
      <url>http://www.webhostrepo.com/skin/frontend/base/default/rss.gif</url>
      <title><![CDATA[WebHostRepo Blog]]></title>
      <link>http://www.webhostrepo.com/blog/</link>
    </image>
    <generator>Zend_Feed</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <item>
      <title><![CDATA[How to install ConfigServer Mail Queues (cmq)]]></title>
      <link>http://www.webhostrepo.com/blog/configserver-mail-queues/</link>
      <description><![CDATA[<p><span style="font-family: verdana,geneva; font-size: small;">The product provides you with a full featured interface to the cPanel exim email queues from within WHM.</span><br /><span style="font-family: verdana,geneva; font-size: small;">The ConfigServer Mail Queues can be an essential tool for:</span><br /><br /><span style="font-family: verdana,geneva; font-size: small;">1&nbsp; Determining why inbound or outbound email delivery is failing</span><br /><span style="font-family: verdana,geneva; font-size: small;">2&nbsp; Deleting bounce emails</span><br /><span style="font-family: verdana,geneva; font-size: small;">3&nbsp; Deleting frozen (undeliverable) emails</span><br /><span style="font-family: verdana,geneva; font-size: small;">4&nbsp; Forcing queue runs (especially useful for Smart Router emails to Exchange servers that are intermittently online)</span><br /><span style="font-family: verdana,geneva; font-size: small;">5&nbsp; Integrates with MailScanner, if installed, to offer views/deletion of email in both the Pending and Delivery queues</span><br /><span style="font-family: verdana,geneva; font-size: small;">6&nbsp; Searching for and viewing/deleting emails to/from specific domains and addresses</span><br /><span style="font-family: verdana,geneva; font-size: small;">7&nbsp; Viewing the email history from the exim mail logs for specific emails</span><br /><span style="font-family: verdana,geneva; font-size: small;">8&nbsp; Retry delivery for specific emails</span><br /><br /><span style="font-family: verdana,geneva; font-size: small;"><strong>Installation </strong></span><br /><br /><span style="font-family: verdana,geneva; font-size: small;">Go to /usr/local/src folder and download the cmq tar file using the below command.</span><br /><br /></p>
<div class="codeheader"><span style="font-family: verdana,geneva; font-size: small;">Code: <a class="codeoperation">[Select]</a></span></div>
<pre style="margin: 0; padding: 0;"><span style="font-family: verdana,geneva; font-size: small;"><code class="bbc_code">wget http://www.configserver.com/free/cmq.tgz</code></span></pre>
<p><br /><span style="font-family: verdana,geneva; font-size: small;">Untar the file using the below command</span><br /><br /></p>
<div class="codeheader"><span style="font-family: verdana,geneva; font-size: small;">Code: <a class="codeoperation">[Select]</a></span></div>
<pre style="margin: 0; padding: 0;"><span style="font-family: verdana,geneva; font-size: small;"><code class="bbc_code">tar -xzf cmq.tgz</code></span></pre>
<p><br /><span style="font-family: verdana,geneva; font-size: small;">cd into the directory created and run the install script:</span><br /><br /></p>
<div class="codeheader"><span style="font-family: verdana,geneva; font-size: small;">Code: <a class="codeoperation">[Select]</a></span></div>
<pre style="margin: 0; padding: 0;"><span style="font-family: verdana,geneva; font-size: small;"><code class="bbc_code">cd cmq/<br />sh install.sh</code></span></pre>
<p><br /><span style="font-family: verdana,geneva; font-size: small;">Login to WHM and scroll to the bottom of the left hand menu and you should see &ldquo;ConfigServer Mail Queues&rdquo;</span><br /><br /><span style="font-family: verdana,geneva; font-size: small;"><strong>Uninstall</strong></span><br /><br /><span style="font-family: verdana,geneva; font-size: small;">Delete the below files.</span><br /><br /></p>
<div class="codeheader"><span style="font-family: verdana,geneva; font-size: small;">Code: <a class="codeoperation">[Select]</a></span></div>
<pre style="margin: 0; padding: 0;"><span style="font-family: verdana,geneva; font-size: small;"><code class="bbc_code">rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/addon_cmq.cgi<br />rm -fv /usr/local/cpanel/whostmgr/docroot/cgi/cmqversion.txt<br />rm -Rfv /usr/local/cpanel/whostmgr/docroot/cgi/cmq/</code></span></pre>]]></description>
      <pubDate>Thu, 09 May 2013 06:12:37 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[ Checking and Repairing Unix File system with fsck ]]></title>
      <link>http://www.webhostrepo.com/blog/unix-filesytem-check/</link>
      <description><![CDATA[<p><span style="font-family: verdana,geneva; font-size: small;">&nbsp;<strong>FSCK </strong>&nbsp; &nbsp;</span><br /><span style="font-family: verdana,geneva; font-size: small;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; --------</span><br /><span style="font-family: verdana,geneva; font-size: small;">&nbsp;fsck is a Unix utility for checking and repairing file system inconsistencies . File system can become inconsistent due to several reasons and the most common is abnormal shutdown due to hardware failure , power failure or switching off the system without proper shutdown. Due to these reasons the super-block in a file system is not updated and has mismatched information relating to system data blocks, free blocks and inodes .</span><br /><br /><span style="font-family: verdana,geneva; font-size: small;"><strong>fsck &ndash; Modes of operation :</strong></span><br /><br /><span style="font-family: verdana,geneva; font-size: small;"><strong>Interactive</strong> :- fsck examines the file system and stops at each error it finds in the file system and gives the problem description and ask for user response whether to correct the problem or continue without making any change to the file system.</span><br /><br /><span style="font-family: verdana,geneva; font-size: small;"><strong>Non interactive</strong> :- fsck tries to repair all the problems it finds in a file system without stopping for user response useful in case of a large number of inconsistencies in a file system but has the disadvantage of removing some useful files which are detected to be corrupt .</span><br /><br /><span style="font-family: verdana,geneva; font-size: small;">If file system is found to have problem at the booting time non interactive fsck is run and all errors which are considered safe to correct are corrected. But if still file system has problems the system boots in single user mode asking for user to manually run the fsck to correct the problems in file system.</span><br /><br /><span style="font-family: verdana,geneva; font-size: small;"><strong>Running fsck</strong> :</span><br /><br /><span style="font-family: verdana,geneva; font-size: small;">fsck should always be run in a single user mode which ensures proper repair of file system . If it is run in a busy system where the file system is changing constantly fsck may see changes as inconsistencies and may corrupt the file system .</span><br /><br /><span style="font-family: verdana,geneva; font-size: small;">If the system can not be brought in a single user mode fsck should be run on the partitions ,other than root &amp; user , after unmounting them . Root &amp; user partitions can not be unmounted . If the system fails to come up due to root/user files system corruption the system can be booted with CD and root/user partitions can be repaired using fsck.</span><br /><br /><span style="font-family: verdana,geneva; font-size: small;"><strong>fsck phases</strong></span><br /><br /><span style="font-family: verdana,geneva; font-size: small;">fsck checks the file system in a series of 5 pages and checks a specific functionality of file system in each phase.</span><br /><br /></p>
<div class="codeheader"><span style="font-family: verdana,geneva; font-size: small;">Code: <a class="codeoperation">[Select]</a></span></div>
<pre style="margin: 0; padding: 0;"><span style="font-family: verdana,geneva; font-size: small;"><code class="bbc_code">** phase 1 &ndash; Check Blocks and Sizes<br />** phase 2 &ndash; Check Pathnames<br />** phase 3 &ndash; Check Connectivity<br />** phase 4 &ndash; Check Reference Counts<br />** phase 5 &ndash; Check Cylinder Groups</code></span></pre>
<p><br /><span style="font-family: verdana,geneva; font-size: small;"><strong>Procedure</strong></span><br /><span style="font-family: verdana,geneva; font-size: small;">=======</span><br /><span style="font-family: verdana,geneva; font-size: small;">1) Take system down to runlevel one (make sure you run all command as root user):</span><br /><br /></p>
<div class="codeheader"><span style="font-family: verdana,geneva; font-size: small;">Code: <a class="codeoperation">[Select]</a></span></div>
<pre style="margin: 0; padding: 0;"><span style="font-family: verdana,geneva; font-size: small;"><code class="bbc_code"># init 1</code></span></pre>
<p><br /><span style="font-family: verdana,geneva; font-size: small;">2)<strong>Unmount</strong> file system, for example if it is /home (<strong>/dev/sda3</strong>) file system then type command:</span><br /><br /></p>
<div class="codeheader"><span style="font-family: verdana,geneva; font-size: small;">Code: <a class="codeoperation">[Select]</a></span></div>
<pre style="margin: 0; padding: 0;"><span style="font-family: verdana,geneva; font-size: small;"><code class="bbc_code"># umount /home</code></span></pre>
<p><br /><span style="font-family: verdana,geneva; font-size: small;">3) Now run fsck on the partition:</span><br /><br /></p>
<div class="codeheader"><span style="font-family: verdana,geneva; font-size: small;">Code: <a class="codeoperation">[Select]</a></span></div>
<pre style="margin: 0; padding: 0;"><span style="font-family: verdana,geneva; font-size: small;"><code class="bbc_code"># fsck -fyC /dev/sda3<br /><br />y- Display completion/progress bars for those filesystem checkers (currently only for ext2 and ext3) which support them<br />C - to fix any detected filesystem corruption automatically</code></span></pre>
<p><br /><span style="font-family: verdana,geneva; font-size: small;">4) Once fsck finished, remount the file system:</span><br /><br /></p>
<div class="codeheader"><span style="font-family: verdana,geneva; font-size: small;">Code: <a class="codeoperation">[Select]</a></span></div>
<pre style="margin: 0; padding: 0;"><span style="font-family: verdana,geneva; font-size: small;"><code class="bbc_code"># mount /home</code></span></pre>
<p><br /><span style="font-family: verdana,geneva; font-size: small;">5) Go to multiuser mode</span><br /><br /></p>
<div class="codeheader"><span style="font-family: verdana,geneva; font-size: small;">Code: <a class="codeoperation">[Select]</a></span></div>
<pre style="margin: 0; padding: 0;"><span style="font-family: verdana,geneva; font-size: small;"><code class="bbc_code"># init 3</code></span></pre>
<p><br /><span style="font-family: verdana,geneva; font-size: small;"><strong>Additional examples<br />----------------------<br /></strong></span><br /><span style="font-family: verdana,geneva; font-size: small;">1. Run through the /etc/fstab file and try to check all file systems in one run.</span><br /><br /></p>
<div class="codeheader"><span style="font-family: verdana,geneva; font-size: small;">Code: <a class="codeoperation">[Select]</a></span></div>
<pre style="margin: 0; padding: 0;"><span style="font-size: small;"><code class="bbc_code"><span style="font-family: verdana,geneva;">#fsck -A</span> </code></span></pre>]]></description>
      <pubDate>Wed, 08 May 2013 10:09:27 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[How to install VNC server on CentOS 6]]></title>
      <link>http://www.webhostrepo.com/blog/how-to-install-VNC-in-Centos/</link>
      <description><![CDATA[<p><span style="font-family: verdana,geneva;"><strong>VNC (Virtual Network Computing</strong> <strong></strong>) is a graphical desktop sharing system that uses the Remote Frame Buffer protocol to remotely control another coumputer on a network.</span></p>
<p><span style="font-family: verdana,geneva; font-size: small;">To run the VNC Server on CentOS, we have to install these required packages:</span></p>
<div class="codeheader">Code: <a class="codeoperation">[Select]</a></div>
<pre style="margin: 0; padding: 0;"><code class="bbc_code">yum groupinstall Desktop<br />yum install tigervnc-server<br />yum install xorg-x11-fonts-Type1<br />yum install vnc</code></pre>
<p><span style="font-family: verdana,geneva; font-size: small;"><br /><strong>To start VNC Server on boot</strong><br /><br /></span></p>
<div class="codeheader">Code: <a class="codeoperation">[Select]</a></div>
<pre style="margin: 0; padding: 0;"><code class="bbc_code">chkconfig vncserver on</code></pre>
<p><span style="font-family: verdana,geneva; font-size: small;"><br /><strong>To setup users&rsquo; VNC password:</strong><br /><br /></span></p>
<div class="codeheader">Code: <a class="codeoperation">[Select]</a></div>
<pre style="margin: 0; padding: 0;"><code class="bbc_code">vncpasswd</code></pre>
<p><span style="font-family: verdana,geneva; font-size: small;"><br /><strong>Edit the /etc/sysconfig/vncservers file:</strong><br /><br /></span></p>
<div class="codeheader">Code: <a class="codeoperation">[Select]</a></div>
<pre style="margin: 0; padding: 0;"><code class="bbc_code">nano /etc/sysconfig/vncservers</code></pre>
<p><span style="font-family: verdana,geneva; font-size: small;"><br /><strong>Add the following to the end of the file:</strong><br /><br /></span></p>
<div class="codeheader">Code: <a class="codeoperation">[Select]</a></div>
<pre style="margin: 0; padding: 0;"><code class="bbc_code">VNCSERVERS="1:arbab"<br />VNCSERVERARGS[1]="-geometry 1024x600"<br /></code></pre>
<p><span style="font-family: verdana,geneva; font-size: small;"><br /><strong>The iptables rules need to be amended to open the VNC ports:<br /></strong><br /></span></p>
<div class="codeheader">Code: <a class="codeoperation">[Select]</a></div>
<pre style="margin: 0; padding: 0;"><code class="bbc_code">iptables -I INPUT 5 -m state --state NEW -m tcp -p tcp -m multiport --dports 5901:5903,6001:6003 -j ACCEPT<br />service iptables save<br />service iptables restart<br /></code></pre>
<p><span style="font-family: verdana,geneva; font-size: small;"><strong>Restart the VNC Server:</strong><br /><br /></span></p>
<div class="codeheader">Code: <a class="codeoperation">[Select]</a></div>
<pre style="margin: 0; padding: 0;"><code class="bbc_code">service vncserver restart</code></pre>
<p><span style="font-family: verdana,geneva; font-size: small;"><br /><strong>Now kill the VNC Server:</strong><br /><br /></span></p>
<div class="codeheader">Code: <a class="codeoperation">[Select]</a></div>
<pre style="margin: 0; padding: 0;"><code class="bbc_code">vncserver -kill :1</code></pre>
<p><span style="font-family: verdana,geneva; font-size: small;"><br /><strong>Edit the xstartup file in .vnc directory:<br /></strong><br /></span></p>
<div class="codeheader">Code: <a class="codeoperation">[Select]</a></div>
<pre style="margin: 0; padding: 0;"><code class="bbc_code">nano .vnc/xstartup<br /></code></pre>
<p><span style="font-family: verdana,geneva; font-size: small;"><strong>Comment the last line and run the Gnome:</strong><br /><br /></span></p>
<div class="codeheader">Code: <a class="codeoperation">[Select]</a></div>
<pre style="margin: 0; padding: 0;"><code class="bbc_code">#twm &amp; <br />exec gnome-session &amp;</code></pre>
<p><span style="font-family: verdana,geneva; font-size: small;"><br /><strong>Restart the service:</strong><br /><br /></span></p>
<div class="codeheader">Code: <a class="codeoperation">[Select]</a></div>
<pre style="margin: 0; padding: 0;"><code class="bbc_code">service vncserver restart</code></pre>
<p><span style="font-family: verdana,geneva; font-size: small;"><br />Now, download VNCViewer onto our desktop computer from which we want to access the shared desktop. <br />Connect using ServerIP/Name:1 (:1 is for the VNC server window)<br /><br /><a class="bbc_link" href="http://www.realvnc.com/download/viewer/" target="_blank">http://www.realvnc.com/download/viewer/<br /></a><br /><br />Enter the password that we created using the vncpasswd command:<br /><br /><strong>Ability to connect for multiple users:<br /></strong><br />Create a local user, using the following command:<br /><br /></span></p>
<div class="codeheader">Code: <a class="codeoperation">[Select]</a></div>
<pre style="margin: 0; padding: 0;"><code class="bbc_code">adduser ali</code></pre>
<p><span style="font-family: verdana,geneva; font-size: small;"><br /><strong>Create a password for newly created user:</strong><br /><br /></span></p>
<div class="codeheader">Code: <a class="codeoperation">[Select]</a></div>
<pre style="margin: 0; padding: 0;"><code class="bbc_code">passwd ali</code></pre>
<p><span style="font-family: verdana,geneva; font-size: small;"><br /><strong>Switch to the newly created user and run vncpasswd command for it:<br /><br />su ali</strong><br /></span></p>
<div class="codeheader">Code: <a class="codeoperation">[Select]</a></div>
<pre style="margin: 0; padding: 0;"><code class="bbc_code">vncpasswd</code></pre>
<p><span style="font-family: verdana,geneva; font-size: small;"><br /><strong>Edit the /etc/sysconfig/vncservers file:</strong><br /><br /></span></p>
<div class="codeheader">Code: <a class="codeoperation">[Select]</a></div>
<pre style="margin: 0; padding: 0;"><code class="bbc_code">nano /etc/sysconfig/vncservers</code></pre>
<p><span style="font-family: verdana,geneva; font-size: small;"><br /><strong>Add these lines for new user:</strong><br /><br /></span></p>
<div class="codeheader">Code: <a class="codeoperation">[Select]</a></div>
<pre style="margin: 0; padding: 0;"><code class="bbc_code">VNCSERVERS="1:arbab 2:ali"<br />VNCSERVERARGS[1]="-geometry 1024x600"<br />VNCSERVERARGS[2]="-geometry 1024x600"</code></pre>
<p><span style="font-family: verdana,geneva; font-size: small;"><br /><strong>Restart the VNC service:</strong><br /><br /></span></p>
<div class="codeheader">Code: <a class="codeoperation">[Select]</a></div>
<pre style="margin: 0; padding: 0;"><code class="bbc_code">service vncserver restart</code></pre>
<p><span style="font-family: verdana,geneva; font-size: small;"><br /><strong>Kill the vncserver session for new user and edit the xstartup file:</strong><br /><br /></span></p>
<div class="codeheader">Code: <a class="codeoperation">[Select]</a></div>
<pre style="margin: 0; padding: 0;"><code class="bbc_code">su ali<br />vncserver -kill :2<br />cd ~<br />nano .vnc/xstartup<br /></code></pre>
<p><span style="font-family: verdana,geneva; font-size: small;"><strong>Modify the file so it looks like this:<br /></strong><br /></span></p>
<div class="codeheader">Code: <a class="codeoperation">[Select]</a></div>
<pre style="margin: 0; padding: 0;"><code class="bbc_code">#twm &amp; <br />exec gnome-session &amp;<br /></code></pre>
<p><span style="font-family: verdana,geneva; font-size: small;"><strong>Restart the VNC service:<br /></strong><br /></span></p>
<div class="codeheader">Code: <a class="codeoperation">[Select]</a></div>
<pre style="margin: 0; padding: 0;"><code class="bbc_code">service vncserver restart</code></pre>
<p><span style="font-family: verdana,geneva; font-size: small;"><br />Connect with newly created user using centos:2, Where centos is my server name:<br /><br />Enter the password that we created using the vncpasswd command:<br /></span></p>
<p><span style="font-family: verdana,geneva; font-size: small;"><br /></span></p>]]></description>
      <pubDate>Wed, 08 May 2013 08:43:35 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[How to configure IPV6 in Ubuntu]]></title>
      <link>http://www.webhostrepo.com/blog/how-to-configure-ipv6-in-ubuntu/</link>
      <description><![CDATA[<p><span style="font-size: small; font-family: verdana,geneva;"><strong><span class="bbc_u">Below post explains steps involved in configuring IPv6 networking in an Ubuntu server</span></strong></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong><br /></strong></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>1. First backup current network configuration</strong></span></p>
<blockquote>
<p><br /><span style="font-size: small; font-family: verdana,geneva;">#cp /etc/network/interfaces /etc/network/interfaces.backup</span></p>
</blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong><br /></strong></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>How to delete an ipv6 address</strong> :&nbsp; #ifconfig eth0 inet6 del 2604:2881::8fe5:27e2/64</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>How to add an ipv6 address</strong> :&nbsp; #ifconfig eth0 inet6 add 2604:2881::8fe5:27e2/64</span><br /><br /></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>2. Add an IPv6 route through gateway</strong></span><br /><br /></p>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">#route -A inet6 add 2604:2880::8fe5:27e2/64 gw &lt;gateway ip&gt;</span><br /><span style="font-size: small; font-family: verdana,geneva;">OR</span><br /><span style="font-size: small; font-family: verdana,geneva;">#ip -6 route add 2604:2880::8fe5:27e2/64 via &lt;gateway ip&gt;</span><br /><span style="font-size: small; font-family: verdana,geneva;">#/etc/init.d/networking restart</span><br /><br /></p>
</blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>to see the new ipv6 address :</strong></span></p>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">#ip -6 address show eth0</span></p>
</blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>to see ipv6 route :</strong></span></p>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;"># ip -6 route show dev eth0</span></p>
</blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong><span class="bbc_u">To <strong>Permanently</strong> add IPV6</span></strong> to the server, follow the below steps:</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">Append the below lines in "/etc/network/interfaces" file.</span></p>
<p>&nbsp;</p>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">#vi /etc/network/interfaces</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;"><em>iface eth0 inet6 static<br />pre-up modprobe ipv6<br />address 2604:2880::8fe5:27e2/64<br />netmask 64<br />gateway 2247:f0d0:2001:000a:f0d0:2001::1<br />dns-nameservers 2001:4860:4860::8888 2001:4860:4860::8844</em></span></p>
</blockquote>
<p><br /><span style="font-size: small; font-family: verdana,geneva;">If ipv6 nameserver IPs are not there in /etc/resolv.conf then add Google Public DNS IPv6 addresses </span><br /><br /></p>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;"><em>nameserver 2001:4860:4860::8888<br />nameserver 2001:4860:4860::8844</em></span></p>
</blockquote>
<p>&nbsp;</p>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">#route -A inet6 add 2604:2880::8fe5:27e2/64 gw 2247:f0d0:2001:000a:f0d0:2001::1</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">#/etc/init.d/networking restart</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><br /></span></p>
</blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>To test ipv6 connectivity :</strong></span></p>
<blockquote>
<p><br /><span style="font-size: small; font-family: verdana,geneva;">#ping6 google.com</span></p>
</blockquote>]]></description>
      <pubDate>Wed, 13 Feb 2013 10:10:40 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[Apache htaccess rewrite rules. Tips and tricks]]></title>
      <link>http://www.webhostrepo.com/blog/apache-rewrite-rules-tips-and-tricks/</link>
      <description><![CDATA[<p><span style="font-size: small; font-family: verdana,geneva;">Below, we will see on how to write rewrite rules with some examples and common rewrite conditions.</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">(1) Redirect site from http to https :</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">add the below in .htaccess file in public_html</span><br /><br /></p>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">RewriteEngine On</span><br /><span style="font-size: small; font-family: verdana,geneva;">RewriteCond %{HTTPS} off</span><br /><span style="font-size: small; font-family: verdana,geneva;">RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}</span><br /><br /></p>
</blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">(2) Redirecting a domain to another domain via .htaccess</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">Example :- redirect domain.com to google.com</span><br /><br /></p>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">RewriteEngine on</span><br /><span style="font-size: small; font-family: verdana,geneva;">RewriteCond %{HTTP_HOST} ^domain\.com$ [OR]</span><br /><span style="font-size: small; font-family: verdana,geneva;">RewriteCond %{HTTP_HOST} ^www\.domain\.com$</span><br /><span style="font-size: small; font-family: verdana,geneva;">RewriteRule ^/?$ &ldquo;http\:\/\/www\.google\.com\/&rdquo; [R=301,L]</span><br /><br /><br /></p>
</blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">(3)&nbsp; Redirect users to access the site with WWW</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">example :- redirect domain.com to www.domain.com</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">add the below in .htaccess file</span><br /><br /></p>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">RewriteEngine on</span><br /><span style="font-size: small; font-family: verdana,geneva;">RewriteCond %{HTTP_HOST} ^domain\.com$ [NC]</span><br /><span style="font-size: small; font-family: verdana,geneva;">RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]</span></p>
</blockquote>
<p><br /><span style="font-size: small; font-family: verdana,geneva;">(4)&nbsp; Redirect page to another page within public_html</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">example1 :- to redirect home.html to index.php</span><br /><br /></p>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">RewriteEngine on</span><br /><span style="font-size: small; font-family: verdana,geneva;">RewriteRule ^home.html$ index.php</span></p>
</blockquote>
<p><br /><span style="font-size: small; font-family: verdana,geneva;">example2 :-&nbsp; rewrite site&nbsp; http://domain.com/kb/index.php&nbsp; to&nbsp;&nbsp; http://domain.com/blog/index.html</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">go to kb directory and create a .htaccess file</span></p>
<blockquote>
<p><br /><span style="font-size: small; font-family: verdana,geneva;">#cd public_html/kb</span><br /><span style="font-size: small; font-family: verdana,geneva;">#touch .htaccess</span><br /><span style="font-size: small; font-family: verdana,geneva;">#vi .htaccess</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">RewriteEngine on</span><br /><span style="font-size: small; font-family: verdana,geneva;">RewriteRule ^index.php$ /blog/index.html</span></p>
</blockquote>]]></description>
      <pubDate>Wed, 13 Feb 2013 09:55:56 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[How to correct timezones in Openvz and virtuozzo nodes]]></title>
      <link>http://www.webhostrepo.com/blog/how-to-correct-time-zones-in-openvz-virtuozzo-nodes/</link>
      <description><![CDATA[<p><span style="font-size: small; font-family: verdana,geneva;">The following post describes on how to set your timezone in openvz nodes. First we need to check the if the hardware node has the correct time/date. Else please use below commands to update the timezone on the HW node</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">&nbsp;</span></p>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>rdate -p rdate.cpanel.net</strong></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>rdate -s rdate.cpanel.net</strong></span></p>
</blockquote>
<p>&nbsp;</p>
<p><span style="font-size: small; font-family: verdana,geneva;">-p Print the time returned by the remote machine. </span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">-s Set the system time to the returned time</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">&nbsp;</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">Now on the subnode run the below commands</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">&nbsp;</span></p>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>rm -f /etc/localtime</strong></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>ln -s /usr/share/zoneinfo/{desired-timezone} /etc/localtime</strong></span></p>
</blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">&nbsp;</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">Use the command <strong>date</strong> to verify its working.</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">&nbsp;</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">If you want to set the time in an OpenVZ sub node from main node, execute the following command on the HW node:</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><br /></span></p>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>vzctl set VZID --capability sys_time:on --save</strong></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>vzctl restart VZID</strong></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>vzctl enter VEID<br /></strong></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>date (to check the time)</strong></span></p>
</blockquote>]]></description>
      <pubDate>Wed, 07 Nov 2012 09:13:55 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[BIND configuration file blank in zpanel]]></title>
      <link>http://www.webhostrepo.com/blog/named-file-blank-in-zpanel/</link>
      <description><![CDATA[<p><span style="font-size: small; font-family: verdana,geneva;">When we add additional domains in zpanel, sometimes the <strong>named.conf</strong> may go blank. Actually it is a bug in zpanel.</span></p>
<p>&nbsp;</p>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">Go to zpanel &gt; Admin &gt; moduleAdmin &gt;DNS config &gt;Tools &gt; Force Records Update on Next Daemon Run</span></p>
</blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">&nbsp;</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">Then run the daemon by going to </span></p>
<p>&nbsp;</p>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">Admin &gt; Zpanelconfig&gt; Run Daemon now option in the top bottom of it.</span></p>
</blockquote>
<p>&nbsp;</p>
<p><span style="font-size: small; font-family: verdana,geneva;">Also location of named.conf in zpanel is <strong>/etc/zpanel/configs/bind/etc/named.conf</strong> and <strong>/etc/zpanel/panel/local/zpanel/etc/build/config_packs/centos_6_2/bind/etc/named.conf</strong></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small; font-family: verdana,geneva;">The location of zone files is <strong>/etc/zpanel/configs/bind/zones</strong></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">&nbsp;</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">All zone files and dns files should have user and group as apache.</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">&nbsp;</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">To avoid the named.conf going blank while adding new domains, do the following:</span></p>
<p>&nbsp;</p>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">1) Log into zpanel</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">2) Go into the Module Admin</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">3) Click the DNS Config link</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">4) Edit this config option in the general tab:</span></p>
</blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">&nbsp;</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">Named CheckZone</span></p>
<p>&nbsp;</p>
<p><span style="font-size: small; font-family: verdana,geneva;">FROM</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><br /></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>named-checkzone</strong></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>named-checkconf</strong></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>named-compilezone</strong></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">&nbsp;</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">TO</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><br /></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>/usr/sbin/named-checkzone</strong></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>/usr/sbin/named-checkconf</strong></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>/usr/sbin/named-compilezone</strong></span></p>]]></description>
      <pubDate>Wed, 07 Nov 2012 09:04:16 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[Linux core dumps doesn't work]]></title>
      <link>http://www.webhostrepo.com/blog/how-to-enable-core-dumps-in-linux/</link>
      <description><![CDATA[<p><span style="font-size: small; font-family: verdana,geneva;">Core dumps are very useful for debugging applications which doesn't have their own error log file. It is disabled by default for normal users. You can enable it by adjusting some kernel parameters in /etc/sysctl.conf file.</span><br /><br /><span style="font-size: small; font-family: verdana,geneva; color: #ff0000;">kernel.core_uses_pid = 1 </span><br /><span style="font-size: small; font-family: verdana,geneva; color: #ff0000;">kernel.core_pattern = core.%%.%e.%p.%.%u.%g.%t.%h.%e.%c</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">%% a single % character </span><br /><span style="font-size: small; font-family: verdana,geneva;">%p PID of dumped process </span><br /><span style="font-size: small; font-family: verdana,geneva;">%u UID of dumped process </span><br /><span style="font-size: small; font-family: verdana,geneva;">%g GID of dumped process </span><br /><span style="font-size: small; font-family: verdana,geneva;">%s number of the signal causing dump </span><br /><span style="font-size: small; font-family: verdana,geneva;">%t time of dump, expressed as seconds </span><br /><span style="font-size: small; font-family: verdana,geneva;">%h hostname </span><br /><span style="font-size: small; font-family: verdana,geneva;">%e executable filename (without path prefix) </span><br /><span style="font-size: small; font-family: verdana,geneva;">%c core file size soft resource limit of crashing process</span></p>
<p><br /><span style="font-size: small; font-family: verdana,geneva;">Enable the core patterns you need and run the below command to reflect the changes.</span><br /><br /><span style="font-size: small; font-family: verdana,geneva; color: #ff0000;">sysctl -p</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">In most Linux distributions, core dump file size defaults to '0' which disables the core dump generation. You can check the same using the below command:</span><br /><br /><strong><span style="font-size: small; font-family: verdana,geneva;">root@whr [~]# ulimit -a</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">core file size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (blocks, -c) 0</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">data seg size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (kbytes, -d) unlimited</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">scheduling priority&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (-e) 0</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">file size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (blocks, -f) unlimited</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">pending signals&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (-i) 57344</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">max locked memory&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (kbytes, -l) 32</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">max memory size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (kbytes, -m) unlimited</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">open files&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (-n) 1024</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">pipe size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (512 bytes, -p) 8</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">POSIX message queues&nbsp;&nbsp;&nbsp;&nbsp; (bytes, -q) 819200</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">real-time priority&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (-r) 0</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">stack size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (kbytes, -s) 10240</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">cpu time&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (seconds, -t) unlimited</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">max user processes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (-u) 57344</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">virtual memory&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (kbytes, -v) unlimited</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">file locks&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (-x) unlimited</span></strong><br /><br /><span style="font-size: small; font-family: verdana,geneva;">For the SSH session you are in, you can enable core dumps using the below command:</span><br /><br /><span style="font-size: small; font-family: verdana,geneva; color: #ff0000;">ulimit -c unlimited</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">Check the results again and you will see that file size is now unlimited. But as mentioned earlier, it will only be unlimited for the current SSH session.</span></p>
<p><br /><strong><span style="font-size: small; font-family: verdana,geneva;">root@whr[~]# ulimit -a</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">core file size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (blocks, -c) unlimited</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">data seg size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (kbytes, -d) unlimited</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">scheduling priority&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (-e) 0</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">file size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (blocks, -f) unlimited</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">pending signals&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (-i) 57344</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">max locked memory&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (kbytes, -l) 32</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">max memory size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (kbytes, -m) unlimited</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">open files&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (-n) 1024</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">pipe size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (512 bytes, -p) 8</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">POSIX message queues&nbsp;&nbsp;&nbsp;&nbsp; (bytes, -q) 819200</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">real-time priority&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (-r) 0</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">stack size&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (kbytes, -s) 10240</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">cpu time&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (seconds, -t) unlimited</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">max user processes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (-u) 57344</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">virtual memory&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (kbytes, -v) unlimited</span></strong><br /><strong><span style="font-size: small; font-family: verdana,geneva;">file locks&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; (-x) unlimited</span></strong><br /><br /><span style="font-size: small; font-family: verdana,geneva;">To enable it for all users on all sessions, you need to set that in /etc/security/limits.conf file.</span><br /><br /><span style="font-size: small; font-family: verdana,geneva; color: #ff0000;">echo "*&nbsp; soft&nbsp; core&nbsp; unlimited" &gt;&gt; /etc/security/limits.conf</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">If you are on a OpenVz/Virtuozzo node, make sure this is enabled in the main node. Enjoy dumping!!</span></p>]]></description>
      <pubDate>Tue, 04 Sep 2012 03:15:27 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[Running PHP 5.3 along with PHP 5.2.x in cPanel servers]]></title>
      <link>http://www.webhostrepo.com/blog/running-two-php5-versions-in-a-cpanel-server/</link>
      <description><![CDATA[<p><span style="font-size: small; font-family: verdana,geneva;"><strong>Running PHP 5.3 along with PHP 5.2.X</strong></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>Pre-requisists:</strong></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>&nbsp;</strong></span></p>
<ul>
<li><span style="font-size: small; font-family: verdana,geneva;"> MySQL version must be upgraded to 5.1</span></li>
</ul>
<ol> </ol> 
<ul>
<li><span style="font-size: small; font-family: verdana,geneva;">PHP 5.2 version should be atleast 5.2.17</span></li>
</ul>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>&nbsp;</strong></span></p>
<div>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>Build PHP:</strong><strong>&nbsp;</strong></span></p>
</div>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">mkdir /usr/local/buildphp53</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">cd /usr/local/buildphp53</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">wget <a href="http://us3.php.net/get/php-5.3.13.tar.gz/from/us.php.net/mirror" target="_blank">http://us3.php.net/get/php-5.3.13.tar.gz/from/us.php.net/mirror</a></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">tar --strip-components=1 -zxvf php-5.3*</span><br /> <br /><span style="font-size: small; font-family: verdana,geneva;">./configure --prefix=/usr/local/php53 --enable-cgi --enable-bcmath --enable-calendar --with-mysql=mysqlnd --with-mysqli=mysqlnd and --with-pdo-mysql=mysqlnd --enable (all the modules you need)</span><br /> <br /><span style="font-size: small; font-family: verdana,geneva;">&nbsp; &nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">/usr/bin/make</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">/usr/bin/make install</span></p>
<p>&nbsp;</p>
</blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>Extra configurations required</strong></span></p>
<p>&nbsp;</p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>For Apache:</strong></span></p>
<p>&nbsp;</p>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>&nbsp;</strong><em>vi /usr/local/apache/conf/includes/pre_virtualhost_global.conf</em></span></p>
</blockquote>
<p>&nbsp;</p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>Add the following lines to the above file and save</strong></span></p>
<blockquote>
<p>&nbsp;</p>
<p><span style="font-size: small; font-family: verdana,geneva;"><em>Action application/x-httpd-php53 /cgi-sys/php53</em></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><em>&nbsp;</em><em>AddType application/x-httpd-php53 .php53</em></span></p>
<p>&nbsp;</p>
</blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>&nbsp;To make cPanel skip the .htacces scan and remove the mime types, do the &nbsp;following </strong></span></p>
<blockquote>
<p>&nbsp;</p>
<p><span style="font-size: small; font-family: verdana,geneva;"><em>/usr/local/cpanel/bin/apache_conf_distiller --update</em></span></p>
<p><br /><span style="font-size: small; font-family: verdana,geneva;"><em>touch /var/cpanel/easy_skip_update_php_mime_types</em>&nbsp;</span></p>
</blockquote>
<blockquote><br /></blockquote>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">vi /usr/local/cpanel/cgi-sys/php53</span></p>
</blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">&nbsp;<strong>&nbsp;</strong></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>Add the following contents to the above file and save</strong>&nbsp;</span></p>
<blockquote>
<p>&nbsp;</p>
<p><span style="font-size: small; font-family: verdana,geneva;"><em>#!/bin/sh</em></span><br /><span style="font-size: small; font-family: verdana,geneva;"><em>&nbsp;</em><em>exec /usr/local/php53/bin/php-cgi</em></span></p>
</blockquote>
<p>&nbsp;</p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>Setting Permissions</strong></span></p>
<p>&nbsp;</p>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;"><em>chown root:wheel /usr/local/cpanel/cgi-sys/php53</em></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><em>chmod +x /usr/local/cpanel/cgi-sys/php53</em></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><em><br /></em></span></p>
</blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>&nbsp;Soft-linking for command-line executions:</strong></span></p>
<p>&nbsp;</p>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong><em>&nbsp;</em></strong><em>ln -s /usr/local/php53/bin/php-cgi /usr/local/bin/php53</em></span></p>
</blockquote>
<p>&nbsp;</p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>&nbsp;Copying php.ini from build folder</strong><strong>&nbsp;</strong></span></p>
<blockquote>
<p>&nbsp;</p>
<p><span style="font-size: small; font-family: verdana,geneva;"><em>mv /usr/local/buildphp53/php.ini-production /usr/local/php53/lib/php.ini</em></span></p>
</blockquote>
<p>&nbsp;</p>
<p><span style="font-size: small; font-family: verdana,geneva;"><em><strong>&nbsp;</strong></em></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>You need to restart httpd after the configuration</strong><strong>&nbsp;</strong></span></p>
<blockquote>
<p>&nbsp;</p>
<p><span style="font-size: small; font-family: verdana,geneva;"><em>/etc/init.d/httpd restart</em></span></p>
</blockquote>
<p>&nbsp;</p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>&nbsp;Now everything is set. If you want to enable php5.3 for a particular account, create a .htaccess file as mentioned below.</strong><strong>&nbsp;</strong></span></p>
<blockquote>
<p>&nbsp;</p>
<p><span style="font-size: small; font-family: verdana,geneva;"><em>nano -w /home/$username/public_html/.htaccess</em></span></p>
</blockquote>
<p>&nbsp;</p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>Add the following line to it</strong></span></p>
<blockquote>
<p>&nbsp;</p>
<p><span style="font-size: small; font-family: verdana,geneva;"><em>AddHandler application/x-httpd-php53 .php</em></span></p>
</blockquote>
<p>&nbsp;</p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>&nbsp;Correct the permissions;</strong></span></p>
<blockquote>
<p>&nbsp;</p>
<p><span style="font-size: small; font-family: verdana,geneva;"><em>chown $username:$username /home/$username/public_html/.htaccess</em></span><br /><span style="font-size: small; font-family: verdana,geneva;"><em>&nbsp;</em></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><em>chmod 644 /home/$username/public_html/.htaccess</em></span></p>
<p>&nbsp;</p>
</blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">&nbsp;<strong>Things you should remember while installing/enabling a new module to new custom build php 5.3</strong></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>&nbsp;</strong></span></p>
<ul>
<li>&nbsp; <span style="font-size: small; font-family: verdana,geneva;">Make sure that you do things related to php5.3 . For eg, if you have to do a &ldquo;phpize&rdquo;, you have to do it like this in command-line.</span></li>
</ul>
<ol> </ol>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;"><em>&nbsp; </em></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><em>/usr/local/php53/bin/phpize</em></span></p>
</blockquote>
<p>&nbsp;</p>
<ul>
<li> <span style="font-size: small; font-family: verdana,geneva;">If you want to run ./configure, select the correct php-config path. See the example given below.</span></li>
</ul>
<ol> </ol>
<p><span style="font-size: small; font-family: verdana,geneva;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <em>&nbsp;</em></span></p>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;"><em>./configure&nbsp; --with-php-config=/usr/local/php53/bin/php-config</em></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><em><br /></em></span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><em>&nbsp;</em>That's all.</span></p>
</blockquote>]]></description>
      <pubDate>Tue, 24 Jul 2012 11:55:35 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[Tweak sysctl parameters to prevent DDOS and SYN flood attacks]]></title>
      <link>http://www.webhostrepo.com/blog/tweak-kernel-parameters-to-prevent-ddos-and-syn-flood-attacks/</link>
      <description><![CDATA[<p><span style="font-size: small; font-family: verdana,geneva;">Below are some of the kernel values which could mitigate DDOS and SYN floods to a large extend. You can add these values to /etc/sysctl.conf file or use "sysctl -w" to make online changes.</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">sysctl -w net.ipv4.netfilter.ip_conntrack_tcp_timeout_syn_recv=45</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">sysctl -w net.ipv4.netfilter.ip_conntrack_tcp_timeout_established=332000</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">sysctl -w net.ipv4.tcp_fin_timeout=15</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">sysctl -w net.ipv4.tcp_synack_retries=5</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">sysctl -w net.ipv4.tcp_fin_timeout=15</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">sysctl -w net.ipv4.tcp_keepalive_time=1500</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">sysctl -w net.ipv4.tcp_sack=0</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">sysctl -w net.ipv4.tcp_max_tw_buckets=1440000</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">sysctl -w net.ipv4.tcp_max_syn_backlog=2048</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">sysctl -w net.ipv4.tcp_max_syn_backlog=4096</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">sysctl -w net.ipv4.tcp_fin_timeout=20</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">sysctl -w net.ipv4.tcp_keepalive_time=1800</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">sysctl -w net.ipv4.tcp_fin_timeout=20</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">sysctl -w net.ipv4.tcp_keepalive_time=1800</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">sysctl -w net.ipv4.tcp_keepalive_intvl=40</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">sysctl -w net.ipv4.tcp_tw_recycle=1</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">sysctl -w net.ipv4.tcp_tw_reuse=1</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">sysctl -w net.ipv4.tcp_max_syn_backlog=4096</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">sysctl -w net.ipv4.inet_peer_gc_maxtime=240</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">sysctl -w net.ipv4.inet_peer_maxttl=500</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">sysctl -w net.ipv4.inet_peer_minttl=80</span></p>
<p>&nbsp;</p>
<p><span style="font-size: small; font-family: verdana,geneva;">We will be adding more sysctl tweaks soon.</span></p>]]></description>
      <pubDate>Sat, 30 Jun 2012 16:01:32 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[What is a DDOS attack and how to mitigate it]]></title>
      <link>http://www.webhostrepo.com/blog/what-is-a-ddos-attack-and-steps-to-prevent-it/</link>
      <description><![CDATA[<p><span style="font-size: small; font-family: verdana,geneva;"><strong>DDOS </strong>is short term for <em>Distributed Denial of Service </em>where multiple infected systems target a particular site or server causing the legitimate requests fail (denial of service).</span></p>
<p><br /><span style="font-size: small; font-family: verdana,geneva;">If the DDOS attack is large, there is nothing you could do to fully mitigate it. But the first thing you should do is to understand the nature of the DDOS attack and the targeted site/service. </span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">Finding the target will really help if the site is hosted in a shared server. One of the effective way to mitigate the DDOS attack is to use a hardware firewall along with the software firewall. </span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">Popular data centers like <strong>SoftLayer/The Planet, DedicatedNow</strong> use <strong>Cisco, Riorey</strong> respetively for large DDOS attacks and are quite effective (as far as I have experienced). If the attack prevails for a long time and if it reaches the threshold value, it would be better to null-route the IP under attack for a period of 4-5 hours.</span></p>
<p><br /><span style="font-size: small; font-family: verdana,geneva;">Another suggested method is to increase the port speed of your server to a higher one, say if your current port speed is 10Mbps or 100Mbps, upgrade to 1000Mbps.</span></p>
<p><br /><span style="font-size: small; font-family: verdana,geneva;">Here we will be discussing steps to mitigate it in a LAMP server using some Apache settings/modules, software firewalls and TCP/IP tweaks. </span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><span style="background-color: #33cccc;"><a title="Apache module tweaks" href="http://www.webhostrepo.com/blog/how-to-configure-apache-for-maximum-performance/" target="_blank">Click here to find Apache module tweaks </a></span>and <span style="background-color: #33cccc;"><a title="Kernel tweaks to prevent SYN flood attack" href="http://www.webhostrepo.com/blog/tweak-kernel-parameters-to-prevent-ddos-and-syn-flood-attacks" target="_self">Click here to find kernel tweaks</a></span> to mitigate DDOS and SYN floods.</span></p>
<p><strong>* Product names, logos, brands, and other trademarks featured or referred within the page are the property of their respective trademark holders. These trademark holders are not affiliated with webhostrepo.com or our products.</strong></p>]]></description>
      <pubDate>Wed, 27 Jun 2012 20:01:31 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[How to calculate Apache MaxClients value and MySQL memory usage]]></title>
      <link>http://www.webhostrepo.com/blog/how-to-calculate-apache-maxclients-value-and-mysql-memory-usage/</link>
      <description><![CDATA[<p><span style="font-size: small; font-family: verdana,geneva;">Theoretically, <strong>MaxClients = (Total Memory - Operating System Memory - MySQL memory) / Size Per Apache process</strong>.</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">Assume we have a server with 2GB memory</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">Total memory: is the available physical RAM in the server. In this case 2GB.</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">Operating System Memory: Stop Apache and MySQL in the server to calculate the actual memory used by OS (rough figure) using the below command:</span></p>
<blockquote>
<p><strong><span style="font-size: small; font-family: verdana,geneva;">ps aux | awk '{sum1 +=$4}; END {print sum1}'</span></strong></p>
</blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">In our test VPS:</span></p>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">root@whr [~]# ps aux | awk '{sum1 +=$4}; END {print sum1}'</span><br /><span style="font-size: small; font-family: verdana,geneva;"> 37.2</span></p>
</blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">Then restart Apache and MySQL and wait for a while to get the apt results for Apache and MySQL memory utilization.</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">Now we will see steps to calculate the MySQL memory utilization:</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">MySQL memory:</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">You will come across a lot of calculations for MySQL usage, but the one I found somewhere near was:</span></p>
<blockquote>
<p><strong><span style="font-size: small; font-family: verdana,geneva;">mysql_memory= (key_buffer_size + query_cache_size + innodb_buffer_pool_size + innodb_additional_mem_pool_size + innodb_log_buffer_size + max_connections + tmp_table_size) x (sort_buffer_size + read_buffer_size + join_buffer_size + read_rnd_buffer_size + thread_stack + binlog_cache_size)</span></strong></p>
</blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">In test VPS the default values were:</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">64+64+8+1+1+150+32 * 2+.128+.256+.128+.196+0 = 866.56MB used by MySQL</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">Size per Apache process: Normally between 20-25MB if you run dynamic websites.</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">MaxClients is, 2048 - (37.2+ 866.56)/20 ~= 57.</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">If you increase this value, you will see your server swapping often, so either maintain this value for MaxClients or increase the physical memory (RAM).</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><br /></span></p>]]></description>
      <pubDate>Wed, 27 Jun 2012 19:50:38 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[How to configure Apache for maximum performance]]></title>
      <link>http://www.webhostrepo.com/blog/how-to-configure-apache-for-maximum-performance/</link>
      <description><![CDATA[<p><span style="font-size: small; font-family: verdana,geneva;">The default settings need not be changed if the websites receive normal traffic. But once the traffic increases you would need to change the default settings and one should know what values need to be changed and why. Below guide will help you understand most of the Apache directives and what needs to be tweaked.</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">The first thing to do is to use a tool like "ab" for performance benchmarking:</span></p>
<blockquote>
<pre class="programlisting"><span style="font-size: small; font-family: verdana,geneva;">ab -n 500 -c 10 <a class="bbc_url" title="External link" href="http://www.example.com/test.html">http://www.domain.com/index.html</a></span></pre>
</blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">where n is: number of requests and c is the concurrency level. Run the command before and after the performance tuning and analyze the output. You need to check if the time taken by the webserver to deliver the result has improved.</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">1. Apache modules and settings</span></p>
<p><br /><strong><span style="font-size: small; font-family: verdana,geneva;">a) mod_reqtimeout</span></strong></p>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">Syntax: </span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">RequestReadTimeout [header=timeout[-maxtimeout][,MinRate=rate] [body=timeout[-maxtimeout][,MinRate=rate]</span></p>
</blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">As seen above, time outs can be set for both request header and body from the client. Set this to a low value to make sure both header and body times out after the configured time.</span></p>
<p><br /><strong><span style="font-size: small; font-family: verdana,geneva;">b) TimeOut</span></strong></p>
<p><span style="font-size: small; font-family: verdana,geneva;">This directive defines the time that Apache process will wait for I/O. The default value is set to 60 seconds and you should lower it to say 10-20 seconds in case of DDOS attacks. Some cgi scripts that need more execution time may face issues due to this.</span></p>
<p><br /><strong><span style="font-size: small; font-family: verdana,geneva;">c) KeepAlive and KeepAliveTimeout</span></strong></p>
<p><span style="font-size: small; font-family: verdana,geneva;">Most of the webhosts disable KeepAlive during DDOS but doing so affects the server's performance again. A better idea would be to decrease the KeepAliveTimeout to 2 (default 5) and still have the KeepAlive enabled.</span></p>
<p><br /><strong><span style="font-size: small; font-family: verdana,geneva;">d) LimitRequestBody</span></strong></p>
<p><span style="font-size: small; font-family: verdana,geneva;">This defines the allowed size of message body to be allowed. During DDOS attacks, set this server-wide. The default value is 0 which means unlimited. Set that to 100MB and see if improves the performance.</span></p>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">Syntax: </span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">LimitRequestBody value</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">LimitRequestBody 102400000</span></p>
</blockquote>
<p><strong><span style="font-size: small; font-family: verdana,geneva;">e) LimitRequestFields</span></strong></p>
<p><span style="font-size: small; font-family: verdana,geneva;">This directive limits the request header fields from the client. Set this to a value between 40-50</span><br /><span style="font-size: small; font-family: verdana,geneva;">LimitRequestFields 40 (default is 100)</span></p>
<p><strong><span style="font-size: small; font-family: verdana,geneva;">f)&nbsp; LimitRequestFieldSize</span></strong></p>
<p><span style="font-size: small; font-family: verdana,geneva;">This limits the size of the HTTP request header allowed from the client. Default is 8190 and is hard coded when it is recompiled. Decrease this value to half.</span></p>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">LimitRequestFieldSize 4095</span></p>
</blockquote>
<p><strong><span style="font-size: small; font-family: verdana,geneva;">g)&nbsp; LimitRequestLine</span></strong></p>
<p><span style="font-size: small; font-family: verdana,geneva;">This limits the size of the HTTP request line that will be accepted from the client.</span></p>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">LimitRequestLine 4095 (default is 8190)</span></p>
</blockquote>
<p><strong><span style="font-size: small; font-family: verdana,geneva;">h)&nbsp; LimitXMLRequestBody</span></strong></p>
<p><span style="font-size: small; font-family: verdana,geneva;">This limits the size of an XML type body request.</span></p>
<blockquote>
<p><span style="font-size: small; font-family: verdana,geneva;">LimitXMLRequestBody 500000 (defaults to 1000000)</span></p>
</blockquote>
<p><strong><span style="font-size: small; font-family: verdana,geneva;">i) MaxRequestWorkers</span></strong></p>
<p><span style="font-size: small; font-family: verdana,geneva;">A webserver should never use SWAP as doing so further decreases the server's performance and increases the server load drastically. You should regulate this directive to make sure that Apache doesn't spawn so many child processes as it starts swapping.</span></p>
<p><strong><span style="font-size: small; font-family: verdana,geneva;">j) ServerLimit</span></strong></p>
<p><span style="font-size: small; font-family: verdana,geneva;">It is the upper limit for the number of connections configured for Apache.</span></p>
<p><strong><span style="font-size: small; font-family: verdana,geneva;">k) MaxClients</span></strong></p>
<p><span style="font-size: small; font-family: verdana,geneva;">It is the maximum number of simultaneous connections that will be processed by Apache web server. This value should never exceed the #ServerLimit set. Extra care should be taken into consideration while setting the MaxClients value as any slight variation could badly affect the overall server's performance.</span></p>
<p><span style="background-color: #33cccc;"><a title="How to calculate Apache MaxClients value and MySQL memory usage" href="http://www.webhostrepo.com/blog/how-to-calculate-apache-maxclients-value-and-mysql-memory-usage" target="_blank"><span style="font-size: small; font-family: verdana,geneva;">Click here to know how to calculate the Apache MaxClients value</span></a></span></p>]]></description>
      <pubDate>Wed, 27 Jun 2012 19:32:33 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[FFmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file]]></title>
      <link>http://www.webhostrepo.com/blog/ffmpeg-error-while-loading-shared-libraries-libavdevice-so-52-cannot-open-shared-object-file/</link>
      <description><![CDATA[<p><span style="font-family: verdana,geneva; font-size: small;">Getting the error when running the command </span></p>
<p><span style="font-family: verdana,geneva; font-size: small;">&gt;&gt; ffmpeg </span></p>
<p><span style="font-family: verdana,geneva; font-size: small;">ffmpeg: error while loading shared libraries: libavdevice.so.52:     cannot open shared object file </span><br /><br /><span style="font-family: verdana,geneva; font-size: small;"> Which means the file is either missing or the server was unable to     locate the libraries path, </span><br /><br /><span style="font-family: verdana,geneva; font-size: small;"> Locate the file using </span></p>
<p><span style="font-family: verdana,geneva; font-size: small;">&gt;&gt; find / -iname         libavdevice.so.52 </span></p>
<p><span style="font-family: verdana,geneva; font-size: small;">If you get an output, enter the location of the library to the     ld.so.conf     file.</span></p>
<p><span style="font-family: verdana,geneva; font-size: small;">&gt;&gt; vi /etc/ld.so.conf </span></p>
<p><span style="font-family: verdana,geneva; font-size: small;"> Say, if the library is located at /opt/lib/libavdevice.so.52.so, add     /opt/lib to ld.so.conf file.</span><br /><br /><span style="font-family: verdana,geneva; font-size: small;"> After adding the path to the library, run the below command to make     sure the system takes the library path. </span><br /><br /><span style="font-family: verdana,geneva; font-size: small;"> &gt;&gt; ldconfig -v</span></p>]]></description>
      <pubDate>Wed, 27 Jun 2012 19:03:35 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[Database size doesn't get updated in cPanel.]]></title>
      <link>http://www.webhostrepo.com/blog/database-size-doesnot-get-updated-in-cpanel/</link>
      <description><![CDATA[<p><span style="font-family: verdana,geneva; font-size: small;">If the database inside the cPanel shows 0 mb, it is because the     database cache file of the user is not updated. </span><br /><br /><span style="font-family: verdana,geneva; font-size: small;"> To fix this, login to server     via SSH and edit the below file:</span></p>
<p><br /><span style="font-family: verdana,geneva; font-size: small;"> vi         /var/cpanel/cpanel.config </span></p>
<blockquote style="color: #000000;"></blockquote>
<p><br /><span style="font-family: verdana,geneva; font-size: small;"> check disk_usage_include_sqldbs=0 and change it to     disk_usage_include_sqldbs=1, if the line noe found, simply add it to     the bottom. </span><br /><br /><span style="font-family: verdana,geneva; font-size: small;"> You can do the same via WHM &gt;&gt; Main &gt;&gt; Server     Configuration &gt;&gt; Tweak Settings &gt;&gt; SQL &gt;&gt; </span></p>
<div id="label-disk_usage_include_sqldbs"><span style="font-family: verdana,geneva; font-size: small;">Include databases in disk       usage calculations &gt;&gt; Set that to On.</span><br /><br /><span style="font-family: verdana,geneva; font-size: small;"> Then run the below command:</span></div>
<p><span style="font-family: verdana,geneva; font-size: small;"> /scripts/update_db_cache </span></p>
<blockquote style="color: #000000;"></blockquote>
<p>&nbsp;</p>]]></description>
      <pubDate>Wed, 27 Jun 2012 18:57:40 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[How to Manage a Team Efficiently]]></title>
      <link>http://www.webhostrepo.com/blog/how-to-manage-a-team-efficiently/</link>
      <description><![CDATA[<p><span style="font-family: verdana,geneva;">Any management likes to have a formula for managing the team efficiently. No matter how big or small your team is but no one has yet found out a single way.</span></p>
<p><span style="font-family: verdana,geneva;">Often the stepping stone for a successful team management is to have a learning curve for both the team members and leaders. Learning curve could be any factor that enables to contribute towards desirable outcome or it could be what not to do...</span></p>
<p><span style="font-family: verdana,geneva;">Team can be anywhere: at your family, at your office, in a play ground or it could a team party&hellip;</span><br /><span style="font-family: verdana,geneva;"> Where ever it is, every one will work towards a common goal but with different strategies and tactics. Depends upon what coin is you in the plot then- Plan Act and Review. &hellip;</span></p>
<p><span style="font-family: verdana,geneva;">In short Successful team will have a definite Planning they will Act willingly and timely fashion and learn through Review's and feed backs.</span></p>]]></description>
      <pubDate>Tue, 26 Jun 2012 05:57:50 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[unable to access exe file in IIS]]></title>
      <link>http://www.webhostrepo.com/blog/unable-to-access-exe-file-in-iis/</link>
      <description><![CDATA[<p><span style="font-family: verdana,geneva; font-size: small;">How to make exe file downloadable while accessing via URL in IIS<br /> </span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><strong>Issue</strong></span><strong>:</strong></p>
<p><span style="font-family: verdana,geneva; font-size: small;"><a class="moz-txt-link-freetext" href="http://domain.com/sample.exe" target="_blank">http://domain.com/sample.exe</a> shows 404 error.</span><br /><br /><span style="font-family: verdana,geneva; font-size: small;">Add the following lines to your web.config file inside     &lt;system.webServer&gt; tag </span><br /><br /><span style="font-family: verdana,geneva; font-size: small;"> &lt;system.webServer&gt; </span><br /><br /><span style="font-family: verdana,geneva; font-size: small;"> &lt;handlers&gt; </span><br /><span style="font-family: verdana,geneva; font-size: small;"> &lt;add name=&rdquo;Client exe" path="*.exe" verb="*"     modules="StaticFileModule" resourceType="File" /&gt; </span><br /><span style="font-family: verdana,geneva; font-size: small;"> &lt;/handlers&gt; </span><br /><br /><span style="font-family: verdana,geneva; font-size: small;"> &lt;/system.webServer&gt; </span><br /><br /><span style="font-family: verdana,geneva; font-size: small;">If you have local/remote access to IIS manager, you can add mimetype via IIS. </span></p>
<p><span style="font-family: verdana,geneva; font-size: small;">If you have     WebSitepanel control panel, you can do that via control panel &gt;&gt; Websites &gt;&gt; websites     properties &gt;&gt; Mime &gt;&gt; on the "Extensions" field add .exe     and on "MIME-Type" add application/octet-stream</span></p>
<p><span style="font-family: verdana,geneva; font-size: small;"><strong>Done</strong><br /></span></p>]]></description>
      <pubDate>Tue, 19 Jun 2012 13:50:38 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[Life time 50 percent discount for WHMCS customers]]></title>
      <link>http://www.webhostrepo.com/blog/life-time-50-percent-discount/</link>
      <description><![CDATA[<p><span style="font-size: small; font-family: verdana,geneva;">We are now offering flat <strong>50%</strong> life time discounts for new clients who are already using <strong>WHMCS </strong>as their billing software. This huge offer is made to promote and support using this great billing/support panel. </span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">Also note that it was the <strong>WHMCS</strong> main server that was hacked as a result of <em>social engineering</em> while the software as such is not open to any sort of vulnerability.</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">We can however apply patches to your existing <strong>WHMCS</strong> if required and also secure the admin portal without any additional fee.</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">If you are running <strong>WHMCS</strong>, use the coupon code <strong>WHMCS50</strong> while ordering. This offer/coupon code is valid only till <strong>05/31/2012</strong>.</span></p>
<p>&nbsp;</p>
<p><strong><span style="font-size: small; font-family: verdana,geneva;">New Update:</span></strong></p>
<div class="commentContent"><span style="font-size: small; font-family: verdana,geneva;">Make sure that you have applied the patch mentioned @WHT </span><a title="WHMCS patch for 4.0 and later versions" href="http://goo.gl/IMndE" target="_blank"><span style="font-size: small; font-family: verdana,geneva;">http://goo.gl/IMndE</span></a></div>]]></description>
      <pubDate>Tue, 29 May 2012 19:25:02 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[WHRSS partners with VisionHelpdesk]]></title>
      <link>http://www.webhostrepo.com/blog/whrss-partners-with-vision-helpdesk/</link>
      <description><![CDATA[<p><span style="font-size: small; font-family: verdana,geneva;">WebHostRepo Software Solutions (Myloth Technologies Pvt Ltd) is proud to announce our new partnership with <strong>Vision Helpdesk</strong>, one of the leading helpdesk softwares to offer our clients this awesome helpdesk software absolutely <strong>free for 1 year</strong>.</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;"><a title="Vision helpdesk" href="http://www.thevisionworld.com/" target="_blank"><strong>Vision Helpdesk</strong></a> is newly released software, owned and operated by <a title="ThinkSoftwares.net" href="http://thinksoftwares.net/" target="_blank">ThinkSoftwares.net</a>. The helpdesk software offers effective methods for managing emails, troubleshooting, news, downloads, and more. </span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">We believe that with this new partnership, we would be able to provide our existing and new potential webhosting customers with a highly featured helpdesk software free for one year.</span></p>
<p><span style="font-size: small; font-family: verdana,geneva;">If you are an existing customer of ours and are planning to switch to Vision Helpdesk from the below helpdesk softwares, we provide free migration assistance.</span></p>
<ul>
<li><span style="font-size: small; font-family: verdana,geneva;">Kayako Support Suite</span></li>
<li><span style="font-size: small; font-family: verdana,geneva;">Kayako eSupport</span><br style="line-height: 6px;" /></li>
<li><span style="font-size: small; font-family: verdana,geneva;">Cerberus</span></li>
<li><span style="font-size: small; font-family: verdana,geneva;">WHMCS</span></li>
</ul>]]></description>
      <pubDate>Tue, 29 May 2012 08:59:40 +0000</pubDate>
    </item>
    <item>
      <title><![CDATA[How to choose an ideal outsourced technical support company]]></title>
      <link>http://www.webhostrepo.com/blog/how-to-choose-an-ideal-outsourced-technical-support-company/</link>
      <description><![CDATA[<p style="text-align: justify;"><span style="font-size: small; font-family: verdana,geneva;">The wide reach of Internet and social media has made our world 'flat' enough for outsourcing. A Company planning to outsource its technical operations now has a bigger pond for fishing. But the core part is to find a perfect business partner who understands and meets your requirement.</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">Following are some key areas which one should look before outsourcing.</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;"><strong>1. Established Company?</strong></span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">Small or large whatever business you are outsourcing, make sure you do that to an established firm with proper address for communication. Most established companies will have a&nbsp; billing address, an email address and a phone number (mostly during their business hours) for direct communication. We have been in the WebHosting Technical Support Industry since 2010 and during these period we have seen so many Server Management Companies come and go. There is a high amount of risk if you give your business to a volatile group or individuals since you won't know whom to hold responsible if they vanish all of a sudden.</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;"><strong>2. Technology and Expertise</strong></span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">You wouldn't know how far a new Company is good until you start working with them. If the Company to whom you are Outsourcing has a trial period utilize it effectively. When I said 'effectively' it means that you have to cross check the work done by the outsourced support team. Shadow monitoring is always good until a trust is build between the two. Another way is to give less access to your services/products/infrastructure for your new outsourced company until you find them productive and trustworthy.</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;"><strong>3. Reviews</strong></span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">Even though reviews play a vital role determining the true value of a Company, one should see if the reviews are real or fake. Most of the Companies need white label support and hence the ratio of number of reviews you may receive to the good work you do would be like 1:10.</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;"><strong>4. Management</strong></span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">If you just have a bunch of people running your project, you are taking the additional responsibilty of managing the operations. That is where an already established company excels as it will have its own Management team which will make sure that you don't have the overhead of management. This gives more time for you to concentrate on sales and marketing your products. A good management team of an outsourced company ensures quality in work by periodically reviewing the work carried out.</span><br /><br /><span style="font-size: small; font-family: verdana,geneva;"><strong>5. Infrastructure</strong></span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">Normally a technical support firm operates 24 hours a day, 7 days a week and 365 days a year. To provide round-the-clock technical support it is important to have enough Support Technicians, resources to carry out the process which includes computures, computer hardwares, redundant network, backup power-supply etc. </span><br /><br /><span style="font-size: small; font-family: verdana,geneva;">Assume you have individuals assigned for the project and lets do a calculation of the possible :</span><br /><br /></p>
<blockquote>
<p style="text-align: justify;"><span style="font-size: small; font-family: verdana,geneva;"><strong>Leaves/year = 20days (160 hours)</strong></span></p>
<p style="text-align: justify;"><span style="font-size: small; font-family: verdana,geneva;"><strong>Network outage/year (ISP issues) = 20 hours</strong></span></p>
<p style="text-align: justify;"><span style="font-size: small; font-family: verdana,geneva;"><strong>Power outage/month = 30 hours</strong></span></p>
</blockquote>
<p style="text-align: justify;"><br /><br /><span style="font-size: small; font-family: verdana,geneva;">If the hourly rate is $10/hour, you will have a loss of USD $2100 for a single tech. It will be a huge amount if the number of techs is more. If the operations are handled by an outsoured firm it becomes their headache to make sure your requirement for support team is met.</span></p>]]></description>
      <pubDate>Wed, 16 May 2012 07:13:58 +0000</pubDate>
    </item>
  </channel>
</rss>
