<?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; whm</title>
	<atom:link href="http://am3n.net/tag/whm/feed/" rel="self" type="application/rss+xml" />
	<link>http://am3n.net</link>
	<description>career, freelance and some stupid thing I do</description>
	<lastBuildDate>Thu, 09 Sep 2010 12:15:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Fantastico Problem</title>
		<link>http://am3n.net/2009/08/19/fantastico-problem/</link>
		<comments>http://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 [...]


Related posts:<ol><li><a href='http://am3n.net/2010/02/11/cpanel-internal-server-error-after-installation/' rel='bookmark' title='Permanent Link: [cPanel] Internal Server Error after installation'>[cPanel] Internal Server Error after installation</a> <small>Installing cPanel is very easy, what you need is patience,...</small></li>
<li><a href='http://am3n.net/2010/01/14/cpanel-license-file/' rel='bookmark' title='Permanent Link: [cPanel] License File'>[cPanel] License File</a> <small>Below is several thing to know about about cPanel License...</small></li>
<li><a href='http://am3n.net/2009/12/08/cpanel-add-another-main-shared-ip-address/' rel='bookmark' title='Permanent Link: [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>
</ol>]]></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%2Fam3n.net%2F2009%2F08%2F19%2Ffantastico-problem%2F', 'Fantastico+Problem')" onclick="STTAFFUNC.cw(this, {id:'2009042316105', link: 'http%3A%2F%2Fam3n.net%2F2009%2F08%2F19%2Ffantastico-problem%2F', title: 'Fantastico+Problem' });"/></a>

<p>Related posts:<ol><li><a href='http://am3n.net/2010/02/11/cpanel-internal-server-error-after-installation/' rel='bookmark' title='Permanent Link: [cPanel] Internal Server Error after installation'>[cPanel] Internal Server Error after installation</a> <small>Installing cPanel is very easy, what you need is patience,...</small></li>
<li><a href='http://am3n.net/2010/01/14/cpanel-license-file/' rel='bookmark' title='Permanent Link: [cPanel] License File'>[cPanel] License File</a> <small>Below is several thing to know about about cPanel License...</small></li>
<li><a href='http://am3n.net/2009/12/08/cpanel-add-another-main-shared-ip-address/' rel='bookmark' title='Permanent Link: [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>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://am3n.net/2009/08/19/fantastico-problem/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>cPanel &#8211; Webmail (cpanelro) Highload</title>
		<link>http://am3n.net/2009/07/30/cpanel-webmail-cpanelro-highload/</link>
		<comments>http://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://am3n.net/2010/05/26/cpanel-add-permanent-whitelist-ip-address-using-csflfd/' rel='bookmark' title='Permanent Link: [cPanel] Add permanent whitelist IP Address using CSF/LFD'>[cPanel] Add permanent whitelist IP Address using CSF/LFD</a> <small>You can whitelist IP Address quickly using ConfigServer Firewall/Login Failure...</small></li>
<li><a href='http://am3n.net/2010/02/11/cpanel-internal-server-error-after-installation/' rel='bookmark' title='Permanent Link: [cPanel] Internal Server Error after installation'>[cPanel] Internal Server Error after installation</a> <small>Installing cPanel is very easy, what you need is patience,...</small></li>
<li><a href='http://am3n.net/2010/03/04/cpanel-exim-maximum-attachment-size/' rel='bookmark' title='Permanent Link: [cPanel] Exim Maximum Attachment Size'>[cPanel] Exim Maximum Attachment Size</a> <small>By default Exim maximum message size is 50MB, you can...</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%2Fam3n.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%2Fam3n.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://am3n.net/2010/05/26/cpanel-add-permanent-whitelist-ip-address-using-csflfd/' rel='bookmark' title='Permanent Link: [cPanel] Add permanent whitelist IP Address using CSF/LFD'>[cPanel] Add permanent whitelist IP Address using CSF/LFD</a> <small>You can whitelist IP Address quickly using ConfigServer Firewall/Login Failure...</small></li>
<li><a href='http://am3n.net/2010/02/11/cpanel-internal-server-error-after-installation/' rel='bookmark' title='Permanent Link: [cPanel] Internal Server Error after installation'>[cPanel] Internal Server Error after installation</a> <small>Installing cPanel is very easy, what you need is patience,...</small></li>
<li><a href='http://am3n.net/2010/03/04/cpanel-exim-maximum-attachment-size/' rel='bookmark' title='Permanent Link: [cPanel] Exim Maximum Attachment Size'>[cPanel] Exim Maximum Attachment Size</a> <small>By default Exim maximum message size is 50MB, you can...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://am3n.net/2009/07/30/cpanel-webmail-cpanelro-highload/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Site&#8217;s IP Missing in WHM</title>
		<link>http://am3n.net/2009/04/27/sites-ip-missing-in-whm/</link>
		<comments>http://am3n.net/2009/04/27/sites-ip-missing-in-whm/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 15:09:20 +0000</pubDate>
		<dc:creator>am3n</dc:creator>
				<category><![CDATA[Freelance]]></category>
		<category><![CDATA[Web and System Administrator]]></category>
		<category><![CDATA[IP missing]]></category>
		<category><![CDATA[whm]]></category>

		<guid isPermaLink="false">http://am3n.net/?p=122</guid>
		<description><![CDATA[Suddenly some sites on server can&#8217;t be accessed, the server itself online and most of the sites are accessible. After I checked on WHM the IP Address of the sites is &#8220;MISSING&#8221;, supposed to be the site is using the same shared IP Address. Googling for a while, found answer on WHT IP &#8220;MISSING&#8221; in [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Suddenly some sites on server can&#8217;t be accessed, the server itself online and most of the sites are accessible. After I checked on WHM the IP Address of the sites is &#8220;MISSING&#8221;, supposed to be the site is using the same shared IP Address.</p>
<p>Googling for a while, found answer on WHT</p>
<p><span id="more-122"></span> <a href="http://www.webhostingtalk.com/showthread.php?t=755087" target="_blank">IP &#8220;MISSING&#8221; in WHM</a> , execute them:</p>
<pre># /scripts/rebuildhttpdconf
# service httpd restart
# service cpanel restart</pre>
<p>And case closed <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%2Fam3n.net%2F2009%2F04%2F27%2Fsites-ip-missing-in-whm%2F', 'Site%26%238217%3Bs+IP+Missing+in+WHM')" onclick="STTAFFUNC.cw(this, {id:'2009042316105', link: 'http%3A%2F%2Fam3n.net%2F2009%2F04%2F27%2Fsites-ip-missing-in-whm%2F', title: 'Site%26%238217%3Bs+IP+Missing+in+WHM' });"/></a>

<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://am3n.net/2009/04/27/sites-ip-missing-in-whm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
