<?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>The cPanel Admin &#187; perl</title>
	<atom:link href="http://www.thecpaneladmin.com/tag/perl/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thecpaneladmin.com</link>
	<description>We know stuff about cPanel.</description>
	<lastBuildDate>Mon, 21 Nov 2011 19:50:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>That Huge .cpan Folder in /Home</title>
		<link>http://www.thecpaneladmin.com/huge-cpan-folder-home/</link>
		<comments>http://www.thecpaneladmin.com/huge-cpan-folder-home/#comments</comments>
		<pubDate>Wed, 16 Jun 2010 13:24:47 +0000</pubDate>
		<dc:creator>Mark</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=540</guid>
		<description><![CDATA[A common question we get from cPanel administrators is whether it&#8217;s Ok to remove /home/.cpan since, on many servers, it tends to grow to a size exceeding 1G.  The short answer is yes &#8211; that folder is used by cPanel and Perl, and contains perl module installation files. If you find that yours is occupying [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/installing-perl-modules/' rel='bookmark' title='Installing Perl Modules'>Installing Perl Modules</a></li>
<li><a href='http://www.thecpaneladmin.com/fixing-suddenly-broken-cpanel-installation/' rel='bookmark' title='Fixing a Suddenly &#8220;Broken&#8221; cPanel Installation'>Fixing a Suddenly &#8220;Broken&#8221; cPanel Installation</a></li>
<li><a href='http://www.thecpaneladmin.com/installing-wildcard-ssl-certificate/' rel='bookmark' title='Installing A Wildcard SSL Certificate'>Installing A Wildcard SSL Certificate</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>A common question we get from cPanel administrators is whether it&#8217;s Ok to remove /home/.cpan since, on many servers, it tends to grow to a size exceeding 1G.  The short answer is yes &#8211; that folder is used by cPanel and Perl, and contains perl module installation files.</p>
<p>If you find that yours is occupying too much disk space, delete it, and run the following commands:</p>
<blockquote><p>perl -MCPAN -e shell</p></blockquote>
<p><code>cpan&gt; install Bundle::CPAN&gt;<br />
cpan&gt; reload index<br />
cpan&gt; reload cpan<br />
cpan&gt; exit</code></p>
<blockquote><p>/scripts/checkperlmodules &#8211;full</p></blockquote>
<p><map name='google_ad_map_540_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/540?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_540_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=540&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Fhuge-cpan-folder-home%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=540&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/installing-perl-modules/' rel='bookmark' title='Installing Perl Modules'>Installing Perl Modules</a></li>
<li><a href='http://www.thecpaneladmin.com/fixing-suddenly-broken-cpanel-installation/' rel='bookmark' title='Fixing a Suddenly &#8220;Broken&#8221; cPanel Installation'>Fixing a Suddenly &#8220;Broken&#8221; cPanel Installation</a></li>
<li><a href='http://www.thecpaneladmin.com/installing-wildcard-ssl-certificate/' rel='bookmark' title='Installing A Wildcard SSL Certificate'>Installing A Wildcard SSL Certificate</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/huge-cpan-folder-home/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Installing Perl Modules</title>
		<link>http://www.thecpaneladmin.com/installing-perl-modules/</link>
		<comments>http://www.thecpaneladmin.com/installing-perl-modules/#comments</comments>
		<pubDate>Wed, 30 Dec 2009 06:32:18 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[third party]]></category>

		<guid isPermaLink="false">http://www.thecpaneladmin.com/?p=51</guid>
		<description><![CDATA[CPanel has a internal script for using CPAN to install Perl modules. Learn it and love it: /scripts/perlinstaller Most common Perl modules can be installed from WHM ~&#62; Install a Perl Module, or from command line. If you don&#8217;t know the name of the Perl module you&#8217;re installing, you may want to use the WHM [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/fixing-suddenly-broken-cpanel-installation/' rel='bookmark' title='Fixing a Suddenly &#8220;Broken&#8221; cPanel Installation'>Fixing a Suddenly &#8220;Broken&#8221; cPanel Installation</a></li>
<li><a href='http://www.thecpaneladmin.com/installing-imagemagick-oncpanel-server/' rel='bookmark' title='Installing ImageMagick on a cPanel Server'>Installing ImageMagick on a cPanel Server</a></li>
<li><a href='http://www.thecpaneladmin.com/installing-postgresql/' rel='bookmark' title='Installing PostgreSQL'>Installing PostgreSQL</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>CPanel has a internal script for using CPAN to install Perl modules. Learn it and love it:</p>
<p><strong>/scripts/perlinstaller</strong></p>
<p>Most common Perl modules can be installed from <strong>WHM ~&gt; Install a Perl Module</strong>, or from command line. If you don&#8217;t know the name of the Perl module you&#8217;re installing, you may want to use the WHM installer instead, as it has a search feature and its usage is pretty self-explanatory.</p>
<p>For command line installations, pass the name of the perl module (case-sensitive) to the installer like so:</p>
<p><strong>/scripts/perlinstaller MD5</strong></p>
<p><strong>/scripts/perlinstaller IO::Compress::Base</strong></p>
<p>If the module is already installed and you need to update or reinstall it, pass &#8211;force:</p>
<p><strong>/scripts/perlinstaller &#8211;force MD5</strong></p>
<p>Since cPanel 11, you can now also allow your users to install their own perl modules locally in /home/$user/perl (which is automatically added to their Perl module path) so they don&#8217;t have to bug you when they need a Perl module, nor to they need SSH access.  You can enable this in <strong>WHM ~&gt; Module Installers ~&gt; Perl Module [Manage]</strong> . You do need to have compilers enabled for users though, which can be done in <strong>WHM ~&gt; Security Center ~&gt; Compilers Tweak</strong> .</p>
<p><map name='google_ad_map_51_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/51?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_51_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=51&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Finstalling-perl-modules%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=51&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/fixing-suddenly-broken-cpanel-installation/' rel='bookmark' title='Fixing a Suddenly &#8220;Broken&#8221; cPanel Installation'>Fixing a Suddenly &#8220;Broken&#8221; cPanel Installation</a></li>
<li><a href='http://www.thecpaneladmin.com/installing-imagemagick-oncpanel-server/' rel='bookmark' title='Installing ImageMagick on a cPanel Server'>Installing ImageMagick on a cPanel Server</a></li>
<li><a href='http://www.thecpaneladmin.com/installing-postgresql/' rel='bookmark' title='Installing PostgreSQL'>Installing PostgreSQL</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/installing-perl-modules/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fixing a Suddenly &#8220;Broken&#8221; cPanel Installation</title>
		<link>http://www.thecpaneladmin.com/fixing-suddenly-broken-cpanel-installation/</link>
		<comments>http://www.thecpaneladmin.com/fixing-suddenly-broken-cpanel-installation/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 23:09:21 +0000</pubDate>
		<dc:creator>Vanessa</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[fixes]]></category>
		<category><![CDATA[perl]]></category>

		<guid isPermaLink="false">http://thecpaneladmin.com/?p=16</guid>
		<description><![CDATA[Sometimes out of nowhere cPanel will just break. You don&#8217;t know why, you don&#8217;t know when, and you don&#8217;t know how&#8230;it just happens. In my experience it&#8217;s usually when a cPanel update fails for some reason or perl is borked, but either way &#8211; it just sucks. This article will go over how to fix [...]


Related posts:<ol><li><a href='http://www.thecpaneladmin.com/installing-perl-modules/' rel='bookmark' title='Installing Perl Modules'>Installing Perl Modules</a></li>
<li><a href='http://www.thecpaneladmin.com/errors-scriptsupcp-undefined-subroutine/' rel='bookmark' title='Errors on /scripts/upcp: Undefined subroutine&#8230;'>Errors on /scripts/upcp: Undefined subroutine&#8230;</a></li>
<li><a href='http://www.thecpaneladmin.com/huge-cpan-folder-home/' rel='bookmark' title='That Huge .cpan Folder in /Home'>That Huge .cpan Folder in /Home</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Sometimes out of nowhere cPanel will just break. You don&#8217;t know why, you don&#8217;t know when, and you don&#8217;t know how&#8230;it just happens. In my experience it&#8217;s usually when a cPanel update fails for some reason or perl is borked, but either way &#8211; it just sucks. This article will go over how to fix a malfunctioning cPanel installation or botched upgrade.</p>
<p><span id="more-16"></span></p>
<p>How do I know it&#8217;s broken?</p>
<p>It&#8217;s usually pretty obvious, but when you get error every time you open cPanel or WHM, or get perl errors when you try to run any of the scripts in /scripts, accompanied by a slew of errors in the cPanel error log (/usr/local/cpanel/logs/error_log), it&#8217;s clear that cPanel and/or Perl is malfunctioning.</p>
<p>The good thing is, cPanel and Perl can usually be fixed rather easily.</p>
<p>First things first, if you&#8217;re just getting a simple Perl error, you may just be missing a couple Perl modules. Take for example an error that looks like this:</p>
<p><code><br />
Can't locate IPC/Open3.pm in @INC (@INC contains: /scripts /usr/local/cpanel /usr/local/lib/perl5/5.8.8/x86_64-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at /scripts/pkgacct line 22.<br />
BEGIN failed--compilation aborted at /scripts/pkgacct line 22.<br />
</code></p>
<p>This references a Perl module that does not exist, in which case you can just install it. The name of the Perl module is indicated in the error, just replace the slash with double-colons and pass it through /scripts/perlinstaller :</p>
<blockquote><p>/scripts/perlinstaller IPC::Open3</p></blockquote>
<p>If that fixes the problem, great&#8230;you may have to do this a couple more times for other perl modules. But you know there&#8217;s a REAL problem when the Perl installer fails, or the perl module is made by cPanel and doesn&#8217;t exist in the standard CPAN repos. In that case, you may need to resync the cPanel scripts.</p>
<p>First, run the following command to get your cPanel version branch:</p>
<blockquote><p>cat /usr/local/cpanel/version</p></blockquote>
<p>This should return something like <em>11.24.5-STABLE_38506</em>, indicating that the branch is STABLE. Other branches indicated could be RELEASE, CURRENT, BETA, or EDGE. Use this branch to download the scripts folder from the cPanel repo. The below example is for STABLE:</p>
<blockquote><p>wget -O scripts.tar.bz2 http://httpupdate.cpanel.net/cpanelsync/STABLE/scripts.tar.bz2<br />
tar -xvC / -j -p -f scripts.tar.bz2<br />
chmod 755 /scripts/cpanelsync<br />
/scripts/cpanelsync httpupdate.cpanel.net /cpanelsync/STABLE/scripts /scripts<br />
/scripts/upcp &#8211;force</p></blockquote>
<p>Problem still not fixed? Try reinstalling Perl:</p>
<blockquote><p>cd /usr/src<br />
wget http://layer2.cpanel.net/perl588installer.tar.gz<br />
tar -xvzf perl588installer.tar.gz<br />
cd perl588installer<br />
./install</p></blockquote>
<p>Then run <strong>/scripts/upcp &#8211;force</strong> again to reinstall the cPanel files</p>
<p><map name='google_ad_map_16_78e79355861d63ba'>
<area shape='rect' href='http://imageads.googleadservices.com/pagead/imgclick/16?pos=0' coords='1,2,367,28' />
<area shape='rect' href='http://services.google.com/feedback/abg' coords='384,10,453,23'/></map>
<img usemap='#google_ad_map_16_78e79355861d63ba' border='0' src='http://imageads.googleadservices.com/pagead/ads?format=468x30_aff_img&amp;client=&amp;channel=&amp;output=png&amp;cuid=16&amp;url= http%3A%2F%2Fwww.thecpaneladmin.com%2Ffixing-suddenly-broken-cpanel-installation%2F' /></p><img src="http://www.thecpaneladmin.com/?ak_action=api_record_view&id=16&type=feed" alt="" />

<p>Related posts:<ol><li><a href='http://www.thecpaneladmin.com/installing-perl-modules/' rel='bookmark' title='Installing Perl Modules'>Installing Perl Modules</a></li>
<li><a href='http://www.thecpaneladmin.com/errors-scriptsupcp-undefined-subroutine/' rel='bookmark' title='Errors on /scripts/upcp: Undefined subroutine&#8230;'>Errors on /scripts/upcp: Undefined subroutine&#8230;</a></li>
<li><a href='http://www.thecpaneladmin.com/huge-cpan-folder-home/' rel='bookmark' title='That Huge .cpan Folder in /Home'>That Huge .cpan Folder in /Home</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.thecpaneladmin.com/fixing-suddenly-broken-cpanel-installation/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

