<?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>am3n portfolio &#187; cpanel</title>
	<atom:link href="http://www.am3n.net/tag/cpanel/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.am3n.net</link>
	<description>career, freelance and some stupid thing I do</description>
	<lastBuildDate>Mon, 09 May 2011 16:27:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>[cPanel] Add permanent whitelist IP Address using CSF/LFD</title>
		<link>http://www.am3n.net/2010/05/26/cpanel-add-permanent-whitelist-ip-address-using-csflfd/</link>
		<comments>http://www.am3n.net/2010/05/26/cpanel-add-permanent-whitelist-ip-address-using-csflfd/#comments</comments>
		<pubDate>Wed, 26 May 2010 15:38:59 +0000</pubDate>
		<dc:creator>am3n</dc:creator>
				<category><![CDATA[Freelance]]></category>
		<category><![CDATA[Web and System Administrator]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[csf]]></category>
		<category><![CDATA[ip address]]></category>
		<category><![CDATA[whitelist]]></category>

		<guid isPermaLink="false">http://am3n.net/?p=259</guid>
		<description><![CDATA[You can whitelist IP Address quickly using ConfigServer Firewall/Login Failure Daemon (CSF/LFD) by using the Quick Allow or editing Firewall Allow IPs but the number of IP Addresses kept by CSF/LFD is limited (by default is 100 or other numbers you specified in Firewall Configuration) as a large number of IP addresses create a large [...]
Related posts:<ol>
<li><a href='http://www.am3n.net/2009/12/08/cpanel-add-another-main-shared-ip-address/' rel='bookmark' title='[cPanel] Add another main shared IP Address'>[cPanel] Add another main shared IP Address</a> <small>cPanel has 1 main shared IP address which configured on...</small></li>
<li><a href='http://www.am3n.net/2010/02/10/ispconfig-ip-address-changes/' rel='bookmark' title='[ISPConfig] IP Address Changes'>[ISPConfig] IP Address Changes</a> <small>I was using ISPConfig, to ease my life configuring and...</small></li>
<li><a href='http://www.am3n.net/2010/01/14/cpanel-license-file/' rel='bookmark' title='[cPanel] License File'>[cPanel] License File</a> <small>Below is several thing to know about about cPanel License...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>You can whitelist IP Address quickly using ConfigServer Firewall/Login Failure Daemon (CSF/LFD) by using the Quick Allow or editing Firewall Allow IPs but the number of IP Addresses kept by CSF/LFD is limited (by default is 100 or other numbers you specified in Firewall Configuration) as a large number of IP addresses create a large number of iptables rules (4 times the number of IP&#8217;s) which can cause problems on some systems where either the the number of iptables entries has been limited (esp VPS&#8217;s) or where resources are limited. This can result in slow network performance, or, in the case of iptables entry limits, can prevent your server from booting as not all the required iptables chain settings will be correctly configured.</p>
<p>CSF/LFD will removes oldest entries and replaced with new one. So how to make CSF/LFD make permanent whitelist IP Address? Here&#8217;s how:<br />
<span id="more-259"></span><br />
From WHM > ConfigServer Security&#038;Firewall ><br />
look for &#8220;Edit lfd ignore file&#8221; select csf.ignore &#8211; IP Blocking on dropdown list and click Edit button</p>
<p>Info for csf.ignore file is all IP addresses listed will be ignored by all lfd checks. Since it will be ignored so it won&#8217;t be blocked (automatically whitelisted) <img src='http://am3n.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009042316105/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009042316105/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009042316105', 'http%3A%2F%2Fwww.am3n.net%2F2010%2F05%2F26%2Fcpanel-add-permanent-whitelist-ip-address-using-csflfd%2F', '%5BcPanel%5D+Add+permanent+whitelist+IP+Address+using+CSF%2FLFD')" onclick="STTAFFUNC.cw(this, {id:'2009042316105', link: 'http%3A%2F%2Fwww.am3n.net%2F2010%2F05%2F26%2Fcpanel-add-permanent-whitelist-ip-address-using-csflfd%2F', title: '%5BcPanel%5D+Add+permanent+whitelist+IP+Address+using+CSF%2FLFD' });"/></a><p>Related posts:<ol>
<li><a href='http://www.am3n.net/2009/12/08/cpanel-add-another-main-shared-ip-address/' rel='bookmark' title='[cPanel] Add another main shared IP Address'>[cPanel] Add another main shared IP Address</a> <small>cPanel has 1 main shared IP address which configured on...</small></li>
<li><a href='http://www.am3n.net/2010/02/10/ispconfig-ip-address-changes/' rel='bookmark' title='[ISPConfig] IP Address Changes'>[ISPConfig] IP Address Changes</a> <small>I was using ISPConfig, to ease my life configuring and...</small></li>
<li><a href='http://www.am3n.net/2010/01/14/cpanel-license-file/' rel='bookmark' title='[cPanel] License File'>[cPanel] License File</a> <small>Below is several thing to know about about cPanel License...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.am3n.net/2010/05/26/cpanel-add-permanent-whitelist-ip-address-using-csflfd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[cPanel] Exim Maximum Attachment Size</title>
		<link>http://www.am3n.net/2010/03/04/cpanel-exim-maximum-attachment-size/</link>
		<comments>http://www.am3n.net/2010/03/04/cpanel-exim-maximum-attachment-size/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 16:14:04 +0000</pubDate>
		<dc:creator>am3n</dc:creator>
				<category><![CDATA[Freelance]]></category>
		<category><![CDATA[Web and System Administrator]]></category>
		<category><![CDATA[attachment]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[maximum]]></category>
		<category><![CDATA[size]]></category>

		<guid isPermaLink="false">http://am3n.net/?p=252</guid>
		<description><![CDATA[By default Exim maximum message size is 50MB, you can confirm it by typing # exim -bP &#124; grep message_size_limit message_size_limit = 50M You can change maximum message size by adding line message_size_limit = 5M on the first textarea of the Advanced Mode editor in WHM &#62; Exim Configuration Editor. That will put a 5MB [...]
Related posts:<ol>
<li><a href='http://www.am3n.net/2009/06/06/disk-space-usage-on-cpanel-shows-incorrect-size/' rel='bookmark' title='Disk Space Usage on cPanel shows incorrect size'>Disk Space Usage on cPanel shows incorrect size</a> <small>After you delete some big files on your cpanel hosting...</small></li>
<li><a href='http://www.am3n.net/2009/06/27/php-with-suphp-on-cpanel/' rel='bookmark' title='PHP with SuPHP on cPanel'>PHP with SuPHP on cPanel</a> <small>When you activated SuPHP on cPanel servers, this is the...</small></li>
<li><a href='http://www.am3n.net/2010/01/14/cpanel-license-file/' rel='bookmark' title='[cPanel] License File'>[cPanel] License File</a> <small>Below is several thing to know about about cPanel License...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>By default Exim maximum message size is 50MB, you can confirm it by typing</p>
<pre># exim -bP | grep message_size_limit
 message_size_limit = 50M</pre>
<p>You can change maximum message size by adding line</p>
<pre>message_size_limit = 5M</pre>
<p><span id="more-252"></span>on the first textarea of the Advanced Mode editor in WHM &gt; Exim  Configuration Editor. That will put a 5MB message size limit on email.</p>
<p>PS: the limit only affect is email is sent directly using Email Client, if using Webmail (Squirrelmail) there is another limitation set by PHP when uploading file. it&#8217;s variable upload_max_filesize, you can change the value on WHM &gt;  PHP Configuration Editor. Restart apache to make sure variable.</p>
<p>Info from <a href="http://forums.cpanel.net/f43/email-attachment-65304.html" target="_blank">cPanel Forum</a></p>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009042316105/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009042316105/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009042316105', 'http%3A%2F%2Fwww.am3n.net%2F2010%2F03%2F04%2Fcpanel-exim-maximum-attachment-size%2F', '%5BcPanel%5D+Exim+Maximum+Attachment+Size')" onclick="STTAFFUNC.cw(this, {id:'2009042316105', link: 'http%3A%2F%2Fwww.am3n.net%2F2010%2F03%2F04%2Fcpanel-exim-maximum-attachment-size%2F', title: '%5BcPanel%5D+Exim+Maximum+Attachment+Size' });"/></a><p>Related posts:<ol>
<li><a href='http://www.am3n.net/2009/06/06/disk-space-usage-on-cpanel-shows-incorrect-size/' rel='bookmark' title='Disk Space Usage on cPanel shows incorrect size'>Disk Space Usage on cPanel shows incorrect size</a> <small>After you delete some big files on your cpanel hosting...</small></li>
<li><a href='http://www.am3n.net/2009/06/27/php-with-suphp-on-cpanel/' rel='bookmark' title='PHP with SuPHP on cPanel'>PHP with SuPHP on cPanel</a> <small>When you activated SuPHP on cPanel servers, this is the...</small></li>
<li><a href='http://www.am3n.net/2010/01/14/cpanel-license-file/' rel='bookmark' title='[cPanel] License File'>[cPanel] License File</a> <small>Below is several thing to know about about cPanel License...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.am3n.net/2010/03/04/cpanel-exim-maximum-attachment-size/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[cPanel] Internal Server Error after installation</title>
		<link>http://www.am3n.net/2010/02/11/cpanel-internal-server-error-after-installation/</link>
		<comments>http://www.am3n.net/2010/02/11/cpanel-internal-server-error-after-installation/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 13:25:56 +0000</pubDate>
		<dc:creator>am3n</dc:creator>
				<category><![CDATA[Freelance]]></category>
		<category><![CDATA[Web and System Administrator]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[internal server error]]></category>

		<guid isPermaLink="false">http://am3n.net/?p=250</guid>
		<description><![CDATA[Installing cPanel is very easy, what you need is patience, enough bandwidth and following tutorial described in cPanel Quick Install Guide. But even I have followed the guide carefully and make sure I have make prepation still I can go wrong. Below is quick steps to install cPanel: Install Minimal CentOS Create harddrive partition Deactivate [...]
Related posts:<ol>
<li><a href='http://www.am3n.net/2009/08/03/cpanel-account-locked-out/' rel='bookmark' title='[cPanel] Account Locked Out'>[cPanel] Account Locked Out</a> <small>Error on cPanel Login Brute Force Protection. This account is...</small></li>
<li><a href='http://www.am3n.net/2009/02/09/hdd-partition-for-cpanel-server/' rel='bookmark' title='hdd partition for cpanel server'>hdd partition for cpanel server</a> <small>Simple Harddisk partition, assume only for vps and have or...</small></li>
<li><a href='http://www.am3n.net/2010/01/14/cpanel-license-file/' rel='bookmark' title='[cPanel] License File'>[cPanel] License File</a> <small>Below is several thing to know about about cPanel License...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Installing cPanel is very easy, what you need is patience, enough bandwidth and following tutorial described in <a href="http://docs.cpanel.net/twiki/bin/view/AllDocumentation/InstallationGuide/Quick-StartInstallationGuide" target="_blank">cPanel Quick Install Guide</a>. But even I have followed the guide carefully and make sure I have make prepation still I can go wrong. Below is quick steps to install cPanel:</p>
<ol>
<li>Install Minimal CentOS</li>
<li>Create harddrive partition</li>
<li>Deactivate the firewall</li>
<li>Disable SELinux</li>
<li>Ensure your newly-installed OS has the latest updates and patches.</li>
<li>Obtaining a cPanel/WHM License</li>
<li>Begin Installation
<pre>cd /home
wget -N http://layer1.cpanel.net/latest
sh latest
/usr/local/cpanel/cpkeyclt</pre>
</li>
</ol>
<p>After 5 hours installation is complete then when I am accessing WHM, this error came up</p>
<p><strong>Internal Server Error<br />
open3: exec of /usr/local/cpanel/whostmgr/bin/whostmgr3  ./initial_setup_wizard1 failed at cpsrvd line 6114</strong></p>
<p><span id="more-250"></span></p>
<p>Checking and Googling for about 20 minutes what went wrong, and I saw in <a href="http://forums.cpanel.net/f5/install-cpanel-problem-104617.html" target="_blank">forum </a>some people also had this problem and they were suggested to run below command</p>
<pre>/scripts/upcp --force</pre>
<p>This command will make your cpanel install is updated with latest version by force (replace all file). Detail <a href="http://docs.cpanel.net/twiki/bin/view/AllDocumentation/AllFAQ/WHMsFAQ#How_do_I_make_sure_that_my_serve" target="_blank">here</a>.</p>
<p>After running several hours, the script stops and say everything is okay. I went to WHM again and now it working flawlessly <img src='http://am3n.net/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009042316105/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009042316105/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009042316105', 'http%3A%2F%2Fwww.am3n.net%2F2010%2F02%2F11%2Fcpanel-internal-server-error-after-installation%2F', '%5BcPanel%5D+Internal+Server+Error+after+installation')" onclick="STTAFFUNC.cw(this, {id:'2009042316105', link: 'http%3A%2F%2Fwww.am3n.net%2F2010%2F02%2F11%2Fcpanel-internal-server-error-after-installation%2F', title: '%5BcPanel%5D+Internal+Server+Error+after+installation' });"/></a><p>Related posts:<ol>
<li><a href='http://www.am3n.net/2009/08/03/cpanel-account-locked-out/' rel='bookmark' title='[cPanel] Account Locked Out'>[cPanel] Account Locked Out</a> <small>Error on cPanel Login Brute Force Protection. This account is...</small></li>
<li><a href='http://www.am3n.net/2009/02/09/hdd-partition-for-cpanel-server/' rel='bookmark' title='hdd partition for cpanel server'>hdd partition for cpanel server</a> <small>Simple Harddisk partition, assume only for vps and have or...</small></li>
<li><a href='http://www.am3n.net/2010/01/14/cpanel-license-file/' rel='bookmark' title='[cPanel] License File'>[cPanel] License File</a> <small>Below is several thing to know about about cPanel License...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.am3n.net/2010/02/11/cpanel-internal-server-error-after-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[cPanel] License File</title>
		<link>http://www.am3n.net/2010/01/14/cpanel-license-file/</link>
		<comments>http://www.am3n.net/2010/01/14/cpanel-license-file/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 07:33:32 +0000</pubDate>
		<dc:creator>am3n</dc:creator>
				<category><![CDATA[Freelance]]></category>
		<category><![CDATA[Web and System Administrator]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[hostname]]></category>
		<category><![CDATA[invalid]]></category>
		<category><![CDATA[license]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://am3n.net/?p=228</guid>
		<description><![CDATA[Below is several thing to know about about cPanel License file. To validate (make sure) your IP Address already has license for cPanel to to cPanel License Validator, and enter your server main IP Address. If you have updating your cPanel License from Trial to Active, or If you change your server hostname, or You [...]
Related posts:<ol>
<li><a href='http://www.am3n.net/2009/08/05/cpanel-%e2%80%9c-htaccess-pcfg_openfile-unable-to-check-htaccess-file-ensure-it-is-readable%e2%80%9d/' rel='bookmark' title='[cPanel] “.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable”'>[cPanel] “.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable”</a> <small>User complain he can&#8217;t access his site, with site error...</small></li>
<li><a href='http://www.am3n.net/2009/12/08/cpanel-add-another-main-shared-ip-address/' rel='bookmark' title='[cPanel] Add another main shared IP Address'>[cPanel] Add another main shared IP Address</a> <small>cPanel has 1 main shared IP address which configured on...</small></li>
<li><a href='http://www.am3n.net/2009/06/27/php-with-suphp-on-cpanel/' rel='bookmark' title='PHP with SuPHP on cPanel'>PHP with SuPHP on cPanel</a> <small>When you activated SuPHP on cPanel servers, this is the...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Below is several thing to know about about cPanel License file.</p>
<p>To validate (make sure) your IP Address already has license for cPanel to to <a href="http://verify.cpanel.net/">cPanel License Validator</a>, and enter your server main IP Address.</p>
<ul>
<li>If you have updating your cPanel License from Trial to Active, or</li>
<li>If you change your server hostname, or</li>
<li>You get<em> Invalid License File</em> error due to hostname change, bad system time, license IP address binding, firewall rules, and some other more obscure scenarios</li>
</ul>
<p>You can try run this command as root</p>
<pre>/usr/local/cpanel/cpkeyclt</pre>
<p>A helpful <a href="http://forums.cpanel.net/showthread.php?t=26108">expired license checklist</a> in the cPanel forums takes troubleshooting further if the above methods don’t help.</p>
<p>PS: With an invalid license, any Web interface to cPanel will not work (including, WHM and Webmail)</p>
<p>from <a href="http://www.webmarketedge.com/2006/12/cpanelwhm-invalid-license-file/" target="_blank">WebMarketEdge</a></p>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009042316105/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009042316105/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009042316105', 'http%3A%2F%2Fwww.am3n.net%2F2010%2F01%2F14%2Fcpanel-license-file%2F', '%5BcPanel%5D+License+File')" onclick="STTAFFUNC.cw(this, {id:'2009042316105', link: 'http%3A%2F%2Fwww.am3n.net%2F2010%2F01%2F14%2Fcpanel-license-file%2F', title: '%5BcPanel%5D+License+File' });"/></a><p>Related posts:<ol>
<li><a href='http://www.am3n.net/2009/08/05/cpanel-%e2%80%9c-htaccess-pcfg_openfile-unable-to-check-htaccess-file-ensure-it-is-readable%e2%80%9d/' rel='bookmark' title='[cPanel] “.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable”'>[cPanel] “.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable”</a> <small>User complain he can&#8217;t access his site, with site error...</small></li>
<li><a href='http://www.am3n.net/2009/12/08/cpanel-add-another-main-shared-ip-address/' rel='bookmark' title='[cPanel] Add another main shared IP Address'>[cPanel] Add another main shared IP Address</a> <small>cPanel has 1 main shared IP address which configured on...</small></li>
<li><a href='http://www.am3n.net/2009/06/27/php-with-suphp-on-cpanel/' rel='bookmark' title='PHP with SuPHP on cPanel'>PHP with SuPHP on cPanel</a> <small>When you activated SuPHP on cPanel servers, this is the...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.am3n.net/2010/01/14/cpanel-license-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[cPanel] Add another main shared IP Address</title>
		<link>http://www.am3n.net/2009/12/08/cpanel-add-another-main-shared-ip-address/</link>
		<comments>http://www.am3n.net/2009/12/08/cpanel-add-another-main-shared-ip-address/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 13:08:12 +0000</pubDate>
		<dc:creator>am3n</dc:creator>
				<category><![CDATA[Freelance]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[ip address]]></category>
		<category><![CDATA[main]]></category>
		<category><![CDATA[shared]]></category>

		<guid isPermaLink="false">http://am3n.net/?p=198</guid>
		<description><![CDATA[cPanel has 1 main shared IP address which configured on Basic cPanel/WHM Setup, so you can&#8217;t add multiple accounts to use the same IP address, unless the account is reseller. So how do you add another main shared IP address? edit /var/cpanel/mainips/root &#60;== root is the account name, vi /var/cpanel/mainips/root then add another IP address [...]
Related posts:<ol>
<li><a href='http://www.am3n.net/2009/08/03/cpanel-account-locked-out/' rel='bookmark' title='[cPanel] Account Locked Out'>[cPanel] Account Locked Out</a> <small>Error on cPanel Login Brute Force Protection. This account is...</small></li>
<li><a href='http://www.am3n.net/2009/07/30/cpanel-webmail-cpanelro-highload/' rel='bookmark' title='cPanel &#8211; Webmail (cpanelro) Highload'>cPanel &#8211; Webmail (cpanelro) Highload</a> <small>From cPanel Forum: CPU Process has a high load, with...</small></li>
<li><a href='http://www.am3n.net/2009/06/27/php-with-suphp-on-cpanel/' rel='bookmark' title='PHP with SuPHP on cPanel'>PHP with SuPHP on cPanel</a> <small>When you activated SuPHP on cPanel servers, this is the...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>cPanel has 1 main shared IP address which configured on Basic cPanel/WHM Setup, so you can&#8217;t add multiple accounts to use the same IP address, unless the account is reseller. So how do you add another main shared IP address?<br />
<span id="more-198"></span><br />
edit /var/cpanel/mainips/root  &lt;== root is the account name,</p>
<pre>
vi /var/cpanel/mainips/root</pre>
<p>then add another IP address which is not used by others. After that you use that IP for multiple accounts.</p>
<p>Info from <a href="http://forums.cpanel.net/f5/main-shared-virtual-host-ip-1501.html" target="_blank">cPanel Forum</a></p>
<p><img id="myFxSearchImg" style="border: medium none; position: absolute; z-index: 2147483647; opacity: 0.6; display: none;" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAADsElEQVR4nK2VTW9VVRSGn33OPgWpYLARbKWhQlCHTogoSkjEkQwclEQcNJEwlfgD/AM6NBo1xjhx5LyJ0cYEDHGkJqhtBGKUpm3SFii3vb2956wPB/t+9raEgSs52fuus89613rftdcNH8/c9q9++oe/Vzb5P+3McyNcfm2CcPj9af9w6gwjTwzvethx3Bx3x8xwd1wNM8dMcTNUHTfFLPnX6nVmZpeIYwf3cWD/PhbrvlPkblAzVFurKS6GmmGqqComaS+qmBoTI0Ncu3mXuGvWnrJ+ZSxweDgnkHf8ndVTdbiT3M7cQp2Z31dRTecHAfqydp4ejhwazh6Zezfnu98E1WIQwB3crEuJ2Y45PBTAQUVR9X4At66AppoEVO1Q8sgAOKJJjw6Am6OquDmvHskZ3R87gW+vlHz98zpmiqphkkRVbQtsfPTOC30lJKFbFTgp83bWh7Zx/uX1B6w3hI3NkkZTqEpBRDBRzG2AQHcwcYwEkOGkTERREbLQ/8HxJwuW7zdYrzfZ2iopy4qqEspKaDYravVm33k1R91Q69FA1VBRzFIVvXbx5AgXT44A8MWP81yfu0utIR2aVK3vfCnGrcUNxp8a7gKYKiLCvY2SUvo/aNtnM3e49ucK9S3p0aDdaT0UAVsKi2tVi6IWwNL9JvdqTdihaz79/l+u/rHMxmaJVMLkS2OoKKLWacdeE3IsSxctc2D5Qcl6vUlVVgNt+fkPPcFFmTw1xruvT7SCd7nuVhDQvECzJH90h0azRKoKFRkAmP5lKTWAGRdefoZL554FQNUxB92WvYeA5UN4PtSqwB2phKqsqMpBgAunRhFR3j49zuU3jnX8k6fHEQKXzh1jbmGDuYU6s4t1rt6socUeLLZHhYO2AHSHmzt19ihTZ48O8Hzl/AmunD/BjTvrvPfNX3hWsNpwJCvwYm+ngug4UilSCSq6k8YPtxDwfA+WRawIWFbgscDiULcCEaWqBFOlrLazurupOSHLqGnEKJAY8TwBEHumqUirAjNm52vEPPRV4p01XXMPAQhUBjcWm9QZwijwokgAeYHlHYA06KR1cT6ZvoV56pDUJQEjw0KeaMgj1hPEY4vz2A4eW0/e1qA7KtQdsxTYAG0H3iG4xyK1Y+xm7XmEPOJZDiENzLi2WZHngeOjj2Pe+sMg4GRYyLAsx7ME4FnsyTD9pr0PEc8zPGRAwKXBkYOPEd96cZRvf11g9MDe7e3R4Z4Q+vyEnn3P4t0XzK/W+ODN5/kPfRLewAJVEQ0AAAAASUVORK5CYII%3D" alt="" width="24" height="24" /></p>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009042316105/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009042316105/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009042316105', 'http%3A%2F%2Fwww.am3n.net%2F2009%2F12%2F08%2Fcpanel-add-another-main-shared-ip-address%2F', '%5BcPanel%5D+Add+another+main+shared+IP+Address')" onclick="STTAFFUNC.cw(this, {id:'2009042316105', link: 'http%3A%2F%2Fwww.am3n.net%2F2009%2F12%2F08%2Fcpanel-add-another-main-shared-ip-address%2F', title: '%5BcPanel%5D+Add+another+main+shared+IP+Address' });"/></a><p>Related posts:<ol>
<li><a href='http://www.am3n.net/2009/08/03/cpanel-account-locked-out/' rel='bookmark' title='[cPanel] Account Locked Out'>[cPanel] Account Locked Out</a> <small>Error on cPanel Login Brute Force Protection. This account is...</small></li>
<li><a href='http://www.am3n.net/2009/07/30/cpanel-webmail-cpanelro-highload/' rel='bookmark' title='cPanel &#8211; Webmail (cpanelro) Highload'>cPanel &#8211; Webmail (cpanelro) Highload</a> <small>From cPanel Forum: CPU Process has a high load, with...</small></li>
<li><a href='http://www.am3n.net/2009/06/27/php-with-suphp-on-cpanel/' rel='bookmark' title='PHP with SuPHP on cPanel'>PHP with SuPHP on cPanel</a> <small>When you activated SuPHP on cPanel servers, this is the...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.am3n.net/2009/12/08/cpanel-add-another-main-shared-ip-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL partition is full</title>
		<link>http://www.am3n.net/2009/09/05/mysql-partition-is-full/</link>
		<comments>http://www.am3n.net/2009/09/05/mysql-partition-is-full/#comments</comments>
		<pubDate>Sat, 05 Sep 2009 09:07:38 +0000</pubDate>
		<dc:creator>am3n</dc:creator>
				<category><![CDATA[Freelance]]></category>
		<category><![CDATA[Web and System Administrator]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[full]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[partition]]></category>

		<guid isPermaLink="false">http://am3n.net/?p=176</guid>
		<description><![CDATA[MySQL databases are located on /var/lib/mysql, if you create a partition for /var and and big enough to hold your databases MySQL will stop working because not enough space to put the data. Below is the easy way to fix it: Assume you have /home partition which is far more bigger than /var, we&#8217;ll move [...]
Related posts:<ol>
<li><a href='http://www.am3n.net/2008/06/20/running-mysql-4-and-mysql-5-concurrently/' rel='bookmark' title='Running MySQL 4 and MySQL 5 Concurrently'>Running MySQL 4 and MySQL 5 Concurrently</a> <small>From Howtoforge.com&#8217;s article: Running MySQL 4 And MySQL 5 Concurrently...</small></li>
<li><a href='http://www.am3n.net/2009/02/09/hdd-partition-for-cpanel-server/' rel='bookmark' title='hdd partition for cpanel server'>hdd partition for cpanel server</a> <small>Simple Harddisk partition, assume only for vps and have or...</small></li>
<li><a href='http://www.am3n.net/2008/08/07/mysql-5-access-via-old-mysql-front-25/' rel='bookmark' title='MySQL 5 access via old MySQL-Front 2.5'>MySQL 5 access via old MySQL-Front 2.5</a> <small>Kusma!!!, Now I know how to make old mysql front...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>MySQL databases are located on /var/lib/mysql, if you create a partition for /var and and big enough to hold your databases MySQL will stop working because not enough space to put the data. Below is the easy way to fix it:<br />
<span id="more-176"></span></p>
<p>Assume you have /home partition which is far more bigger than /var, we&#8217;ll move to /home/mysql<br />
<code><br />
service mysql stop<br />
cd /var/lib<br />
mv mysql /home<br />
ln -s /home/mysql .<br />
chown -R mysql.mysql mysql<br />
service mysql start<br />
</code></p>
<p>The lesson in here is: please do research how much your data will grow, or it will be pain in the ass</p>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009042316105/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009042316105/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009042316105', 'http%3A%2F%2Fwww.am3n.net%2F2009%2F09%2F05%2Fmysql-partition-is-full%2F', 'MySQL+partition+is+full')" onclick="STTAFFUNC.cw(this, {id:'2009042316105', link: 'http%3A%2F%2Fwww.am3n.net%2F2009%2F09%2F05%2Fmysql-partition-is-full%2F', title: 'MySQL+partition+is+full' });"/></a><p>Related posts:<ol>
<li><a href='http://www.am3n.net/2008/06/20/running-mysql-4-and-mysql-5-concurrently/' rel='bookmark' title='Running MySQL 4 and MySQL 5 Concurrently'>Running MySQL 4 and MySQL 5 Concurrently</a> <small>From Howtoforge.com&#8217;s article: Running MySQL 4 And MySQL 5 Concurrently...</small></li>
<li><a href='http://www.am3n.net/2009/02/09/hdd-partition-for-cpanel-server/' rel='bookmark' title='hdd partition for cpanel server'>hdd partition for cpanel server</a> <small>Simple Harddisk partition, assume only for vps and have or...</small></li>
<li><a href='http://www.am3n.net/2008/08/07/mysql-5-access-via-old-mysql-front-25/' rel='bookmark' title='MySQL 5 access via old MySQL-Front 2.5'>MySQL 5 access via old MySQL-Front 2.5</a> <small>Kusma!!!, Now I know how to make old mysql front...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.am3n.net/2009/09/05/mysql-partition-is-full/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fantastico Problem</title>
		<link>http://www.am3n.net/2009/08/19/fantastico-problem/</link>
		<comments>http://www.am3n.net/2009/08/19/fantastico-problem/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 15:55:51 +0000</pubDate>
		<dc:creator>am3n</dc:creator>
				<category><![CDATA[Freelance]]></category>
		<category><![CDATA[Web and System Administrator]]></category>
		<category><![CDATA[404]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[fantastico]]></category>
		<category><![CDATA[whm]]></category>

		<guid isPermaLink="false">http://am3n.net/?p=172</guid>
		<description><![CDATA[First, Joomla is not listed on Fantastico, tried to update Fantastico WHM &#62;&#62; Plugins &#62;&#62; Fantastico De Luxe WHM Admin &#62;&#62; Update/Get files Failed!! Below Error showed up when opening Fantastico from cPanel The server was not able to find the document (./frontend/x3/fantastico/index.php) you requested. Please check the url and try again. You might also [...]]]></description>
			<content:encoded><![CDATA[<p>First, Joomla is not listed on Fantastico, tried to update Fantastico<br />
WHM &gt;&gt; Plugins &gt;&gt; Fantastico De Luxe WHM Admin &gt;&gt; Update/Get files<br />
Failed!! Below Error showed up when opening Fantastico from cPanel</p>
<p><code>The server was not able to find the document (./frontend/x3/fantastico/index.php) you requested. Please check the url and try again. You might also want to report this  error to your web hosting provider.</code></p>
<p>Access WHM &gt;&gt; Plugins &gt;&gt; Fantastico De Luxe WHM Admin again, this time it asked to re-install. Done that. But I still get the same error.<br />
<span id="more-172"></span></p>
<p>Do the <a href="http://www.netenberg.com/forum/index.php?topic=6795.0" target="_blank">first thing</a>:</p>
<p>1) Go into WHM as root, click on Tweak Settings, scroll down to the PHP section and make sure the IONCUBE PHP Loader is selected. Save changes if needed.<br />
2) Log into your server as root via SSH and execute the following command:<br />
/scripts/makecpphp</p>
<p>Read <a href="http://www.netenberg.com/forum/index.php?topic=1939.0" target="_blank">Netenberg&#8217;s Forum</a>, run below command</p>
<pre>chattr -R -i /usr/local/cpanel/3rdparty/fantastico
chown -R root.root /usr/local/cpanel/3rdparty/fantastico
chattr -R -i /var/netenberg
chown -R root.root /var/netenberg</pre>
<p>still lurking on the forum, and I found this thread about <a href="http://www.netenberg.com/forum/index.php?topic=5430.0" target="_blank">wget problem CentOS 5</a>, what the heck, just run it.</p>
<pre>cd
wget http://ftp.gnu.org/gnu/wget/wget-latest.tar.gz
tar xfz wget-latest.tar.gz
cd wget-*
./configure
make
make test
make install
cd ../
rm -Rf wget-*</pre>
<blockquote><p>This will install a clean copy of wget on your server at /usr/local/bin/wget</p>
<p>Go into WHM as root, click on the Fantastico Admin area and click install. On the screen you see, be sure to enter /usr/local/bin/wget as the path to wget.</p>
<p>Click to start the installation.</p>
<p>Note that this does not remove the system maintained version of wget with the new version. There will be two copies of wget on your server.</p>
<p>You are done. Go into WHM&#8217;s Fantastico admin area and finish the installation process.</p></blockquote>
<p>I done that and Fantastico now back running up. Cheers</p>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009042316105/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009042316105/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009042316105', 'http%3A%2F%2Fwww.am3n.net%2F2009%2F08%2F19%2Ffantastico-problem%2F', 'Fantastico+Problem')" onclick="STTAFFUNC.cw(this, {id:'2009042316105', link: 'http%3A%2F%2Fwww.am3n.net%2F2009%2F08%2F19%2Ffantastico-problem%2F', title: 'Fantastico+Problem' });"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.am3n.net/2009/08/19/fantastico-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[cPanel] “.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable”</title>
		<link>http://www.am3n.net/2009/08/05/cpanel-%e2%80%9c-htaccess-pcfg_openfile-unable-to-check-htaccess-file-ensure-it-is-readable%e2%80%9d/</link>
		<comments>http://www.am3n.net/2009/08/05/cpanel-%e2%80%9c-htaccess-pcfg_openfile-unable-to-check-htaccess-file-ensure-it-is-readable%e2%80%9d/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 09:30:47 +0000</pubDate>
		<dc:creator>am3n</dc:creator>
				<category><![CDATA[Freelance]]></category>
		<category><![CDATA[403 error]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[frontpage]]></category>

		<guid isPermaLink="false">http://am3n.net/?p=168</guid>
		<description><![CDATA[User complain he can&#8217;t access his site, with site error shows “403 Forbidden Error”. When I check his cpanel error log, I get [Sun Jul 13 01:15:32 2008] [crit] [client 218.208.xxx.xxx] (13)Permission denied: /home/mydomain/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable I thought it was .htaccess issue, so I trying to delete [...]
Related posts:<ol>
<li><a href='http://www.am3n.net/2009/06/27/php-with-suphp-on-cpanel/' rel='bookmark' title='PHP with SuPHP on cPanel'>PHP with SuPHP on cPanel</a> <small>When you activated SuPHP on cPanel servers, this is the...</small></li>
<li><a href='http://www.am3n.net/2009/08/03/cpanel-account-locked-out/' rel='bookmark' title='[cPanel] Account Locked Out'>[cPanel] Account Locked Out</a> <small>Error on cPanel Login Brute Force Protection. This account is...</small></li>
<li><a href='http://www.am3n.net/2009/07/30/cpanel-webmail-cpanelro-highload/' rel='bookmark' title='cPanel &#8211; Webmail (cpanelro) Highload'>cPanel &#8211; Webmail (cpanelro) Highload</a> <small>From cPanel Forum: CPU Process has a high load, with...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>User complain he can&#8217;t access his site, with site error shows “403 Forbidden Error”.<br />
When I check his cpanel error log, I get</p>
<p><code>[Sun Jul 13 01:15:32 2008] [crit] [client 218.208.xxx.xxx] (13)Permission denied: /home/mydomain/public_html/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable</code></p>
<p>I thought it was .htaccess issue, so I trying to delete it. But .htaccess is can&#8217;t be deleted. After Googling I found From <a href="http://www.techiecorner.com/172/how-to-solve-htaccess-pcfg_openfile-unable-to-check-htaccess-file-ensure-it-is-readable/">Techie Corner&#8217;s</a> blog. And this is what I&#8217;ve done<br />
<span id="more-168"></span></p>
<ol>
<li> Login into your CPanel account</li>
<li> Click on “Frontpage Extensions” icon</li>
<li> Click on “Install extensions” button beside your problem domain.</li>
<li> Done. The “.htaccess pcfg_openfile: unable to check htaccess file” problem has been fixed.</li>
</ol>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009042316105/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009042316105/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009042316105', 'http%3A%2F%2Fwww.am3n.net%2F2009%2F08%2F05%2Fcpanel-%25e2%2580%259c-htaccess-pcfg_openfile-unable-to-check-htaccess-file-ensure-it-is-readable%25e2%2580%259d%2F', '%5BcPanel%5D+%E2%80%9C.htaccess+pcfg_openfile%3A+unable+to+check+htaccess+file%2C+ensure+it+is+readable%E2%80%9D')" onclick="STTAFFUNC.cw(this, {id:'2009042316105', link: 'http%3A%2F%2Fwww.am3n.net%2F2009%2F08%2F05%2Fcpanel-%25e2%2580%259c-htaccess-pcfg_openfile-unable-to-check-htaccess-file-ensure-it-is-readable%25e2%2580%259d%2F', title: '%5BcPanel%5D+%E2%80%9C.htaccess+pcfg_openfile%3A+unable+to+check+htaccess+file%2C+ensure+it+is+readable%E2%80%9D' });"/></a><p>Related posts:<ol>
<li><a href='http://www.am3n.net/2009/06/27/php-with-suphp-on-cpanel/' rel='bookmark' title='PHP with SuPHP on cPanel'>PHP with SuPHP on cPanel</a> <small>When you activated SuPHP on cPanel servers, this is the...</small></li>
<li><a href='http://www.am3n.net/2009/08/03/cpanel-account-locked-out/' rel='bookmark' title='[cPanel] Account Locked Out'>[cPanel] Account Locked Out</a> <small>Error on cPanel Login Brute Force Protection. This account is...</small></li>
<li><a href='http://www.am3n.net/2009/07/30/cpanel-webmail-cpanelro-highload/' rel='bookmark' title='cPanel &#8211; Webmail (cpanelro) Highload'>cPanel &#8211; Webmail (cpanelro) Highload</a> <small>From cPanel Forum: CPU Process has a high load, with...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.am3n.net/2009/08/05/cpanel-%e2%80%9c-htaccess-pcfg_openfile-unable-to-check-htaccess-file-ensure-it-is-readable%e2%80%9d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[cPanel] Account Locked Out</title>
		<link>http://www.am3n.net/2009/08/03/cpanel-account-locked-out/</link>
		<comments>http://www.am3n.net/2009/08/03/cpanel-account-locked-out/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 13:54:17 +0000</pubDate>
		<dc:creator>am3n</dc:creator>
				<category><![CDATA[Freelance]]></category>
		<category><![CDATA[account]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://am3n.net/?p=166</guid>
		<description><![CDATA[Error on cPanel Login Brute Force Protection. This account is currently locked out because a brute force attempt was detected Info from 24x7ServerManagement: Flush DB will remove all blocked IPs: WHM -> Security Center -> cPHulk Brute Force Protection -> Click on Flush DB Related posts: cPanel &#8211; Webmail (cpanelro) Highload From cPanel Forum: CPU [...]
Related posts:<ol>
<li><a href='http://www.am3n.net/2009/07/30/cpanel-webmail-cpanelro-highload/' rel='bookmark' title='cPanel &#8211; Webmail (cpanelro) Highload'>cPanel &#8211; Webmail (cpanelro) Highload</a> <small>From cPanel Forum: CPU Process has a high load, with...</small></li>
<li><a href='http://www.am3n.net/2009/06/27/php-with-suphp-on-cpanel/' rel='bookmark' title='PHP with SuPHP on cPanel'>PHP with SuPHP on cPanel</a> <small>When you activated SuPHP on cPanel servers, this is the...</small></li>
<li><a href='http://www.am3n.net/2009/06/06/disk-space-usage-on-cpanel-shows-incorrect-size/' rel='bookmark' title='Disk Space Usage on cPanel shows incorrect size'>Disk Space Usage on cPanel shows incorrect size</a> <small>After you delete some big files on your cpanel hosting...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Error on cPanel Login</p>
<blockquote><p>Brute Force Protection. This account is currently locked out because a brute force attempt was detected</p></blockquote>
<p>Info from 24x7ServerManagement:<br />
Flush DB will remove all blocked IPs:<br />
WHM -> Security Center -> cPHulk Brute Force Protection -> Click on Flush DB</p>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009042316105/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009042316105/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009042316105', 'http%3A%2F%2Fwww.am3n.net%2F2009%2F08%2F03%2Fcpanel-account-locked-out%2F', '%5BcPanel%5D+Account+Locked+Out')" onclick="STTAFFUNC.cw(this, {id:'2009042316105', link: 'http%3A%2F%2Fwww.am3n.net%2F2009%2F08%2F03%2Fcpanel-account-locked-out%2F', title: '%5BcPanel%5D+Account+Locked+Out' });"/></a><p>Related posts:<ol>
<li><a href='http://www.am3n.net/2009/07/30/cpanel-webmail-cpanelro-highload/' rel='bookmark' title='cPanel &#8211; Webmail (cpanelro) Highload'>cPanel &#8211; Webmail (cpanelro) Highload</a> <small>From cPanel Forum: CPU Process has a high load, with...</small></li>
<li><a href='http://www.am3n.net/2009/06/27/php-with-suphp-on-cpanel/' rel='bookmark' title='PHP with SuPHP on cPanel'>PHP with SuPHP on cPanel</a> <small>When you activated SuPHP on cPanel servers, this is the...</small></li>
<li><a href='http://www.am3n.net/2009/06/06/disk-space-usage-on-cpanel-shows-incorrect-size/' rel='bookmark' title='Disk Space Usage on cPanel shows incorrect size'>Disk Space Usage on cPanel shows incorrect size</a> <small>After you delete some big files on your cpanel hosting...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.am3n.net/2009/08/03/cpanel-account-locked-out/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>cPanel &#8211; Webmail (cpanelro) Highload</title>
		<link>http://www.am3n.net/2009/07/30/cpanel-webmail-cpanelro-highload/</link>
		<comments>http://www.am3n.net/2009/07/30/cpanel-webmail-cpanelro-highload/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 13:11:08 +0000</pubDate>
		<dc:creator>am3n</dc:creator>
				<category><![CDATA[Freelance]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[cpu]]></category>
		<category><![CDATA[load]]></category>
		<category><![CDATA[roundcube]]></category>
		<category><![CDATA[webmail]]></category>
		<category><![CDATA[whm]]></category>

		<guid isPermaLink="false">http://am3n.net/?p=160</guid>
		<description><![CDATA[From cPanel Forum: CPU Process has a high load, with many cpanelro user taking the cpu time. Below is script to kill cpanelro&#8217;s process #!/bin/sh for ROUND in `ps aux &#124; grep roundcube &#124; awk -F " " '{print $10}' &#124; awk -F ":" '{print $1}'`; do if [ $ROUND -ge 20 ]; then pkill [...]
Related posts:<ol>
<li><a href='http://www.am3n.net/2009/06/27/php-with-suphp-on-cpanel/' rel='bookmark' title='PHP with SuPHP on cPanel'>PHP with SuPHP on cPanel</a> <small>When you activated SuPHP on cPanel servers, this is the...</small></li>
<li><a href='http://www.am3n.net/2009/06/06/disk-space-usage-on-cpanel-shows-incorrect-size/' rel='bookmark' title='Disk Space Usage on cPanel shows incorrect size'>Disk Space Usage on cPanel shows incorrect size</a> <small>After you delete some big files on your cpanel hosting...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>From <a href="http://forums.cpanel.net/f5/webmail-high-load-102425.html" target="_blank">cPanel Forum</a>:</p>
<p>CPU Process has a high load, with many cpanelro user taking the cpu time. Below is script to kill cpanelro&#8217;s process</p>
<pre>#!/bin/sh
for ROUND in `ps aux | grep roundcube | awk -F " " '{print $10}' | awk -F ":" '{print $1}'`;
do
if [ $ROUND -ge 20 ]; then
pkill -u cpanelroundcube
echo "kill roundcube process roundcube";
fi
done</pre>
<p>Put in crontab and run it every 15 or 30minutes. Or you can edit RoundCube file to fix a never ending loop caused when trying to log in with an invalid account</p>
<p><span id="more-160"></span>edit file /usr/local/cpanel/base/3rdparty/roundcube/program/lib/imap.inc</p>
<p>and introduced a counter in function iil_C_Login (line 416).<br />
Bellow are the modifications i made in order to stop the loop from taking over the server.</p>
<pre>
function iil_C_Login(&#038;$conn, $user, $password) {

    iil_PutLine($conn->fp, 'a001 LOGIN "'.iil_Escape($user).'" "'.iil_Escape($password).'"');
    $counter = 0;
    do {
        $line = iil_ReadReply($conn->fp);
        if ($line === false) {
            break;
        }else if($counter > 0){
                break;
        }
        $counter = $counter + 1;
    } while (!iil_StartsWith($line, 'a001 ', true));
    // process result
    $result = iil_ParseResult($line);
    if ($result == 0) {
        $conn->error    .= '';
        $conn->errorNum  = 0;
        return $conn->fp;
    }

    fclose($conn->fp);

    $conn->error    .= 'Authentication for ' . $user . ' failed (LOGIN): "';
    $conn->error    .= htmlspecialchars($line)."\"";
    $conn->errorNum  = $result;

    return $result;
}
</pre>
<p>With these modifications an error is returned to the user after a short while letting him know there was a problem connecting to the IMAP server. If you want to return a &#8220;Login failed&#8221; you have to modify the function iil_ParseResult (line 288) like so:</p>
<pre>
function iil_ParseResult($string) {
        $a = explode(' ', $string);
        if (count($a) > 2) {
                if (strcasecmp($a[1], 'OK') == 0) {
                        return 0;
                } else if (strcasecmp($a[1], 'NO') == 0) {
                        return -1;
                } else if (strcasecmp($a[1], 'BAD') == 0) {
                        return -2;
                } else if (strcasecmp($a[1], 'BYE') == 0) {
                        return -3;
                }
        }else if(!$string){
                return -1;
        }
        return -4;
}
</pre>
<script type="text/javascript" src="http://cdn.socialtwist.com/2009042316105/script.js"></script><a class="st-taf" href="http://tellafriend.socialtwist.com:80" onclick="return false;" style="border:0;padding:0;margin:0;"><img alt="SocialTwist Tell-a-Friend" style="border:0;padding:0;margin:0;" src="http://images.socialtwist.com/2009042316105/button.png"onmouseout="STTAFFUNC.hideHoverMap(this)" onmouseover="STTAFFUNC.showHoverMap(this, '2009042316105', 'http%3A%2F%2Fwww.am3n.net%2F2009%2F07%2F30%2Fcpanel-webmail-cpanelro-highload%2F', 'cPanel+%26%238211%3B+Webmail+%28cpanelro%29+Highload')" onclick="STTAFFUNC.cw(this, {id:'2009042316105', link: 'http%3A%2F%2Fwww.am3n.net%2F2009%2F07%2F30%2Fcpanel-webmail-cpanelro-highload%2F', title: 'cPanel+%26%238211%3B+Webmail+%28cpanelro%29+Highload' });"/></a><p>Related posts:<ol>
<li><a href='http://www.am3n.net/2009/06/27/php-with-suphp-on-cpanel/' rel='bookmark' title='PHP with SuPHP on cPanel'>PHP with SuPHP on cPanel</a> <small>When you activated SuPHP on cPanel servers, this is the...</small></li>
<li><a href='http://www.am3n.net/2009/06/06/disk-space-usage-on-cpanel-shows-incorrect-size/' rel='bookmark' title='Disk Space Usage on cPanel shows incorrect size'>Disk Space Usage on cPanel shows incorrect size</a> <small>After you delete some big files on your cpanel hosting...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.am3n.net/2009/07/30/cpanel-webmail-cpanelro-highload/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

