Mohammedz.com

For Linux and Shell scripting.

Alert emails from cPanel 11

Leave a comment


Problem
**********
You may receive following alert email from cPanel.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Subj: [checkperlmodules] The perl module PNGgraph could not be installed.

This module is required by cPanel, and the system may not function correctly
until it is installed, and functional. Below is the results of the
auto-install attempt:

Test Run
==============
Can’t locate PNGgraph.pm in @INC (@INC contains:
/usr/lib/perl5/5.8.8/i686-linux /usr/lib/perl5/5.8.8
/usr/lib/perl5/site_perl/5.8.8/i686-linux /usr/lib/perl5/site_perl/5.8.8
/usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4
/usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2
/usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0
/usr/lib/perl5/site_perl .) at – line 1.
BEGIN failed–compilation aborted at – line 1.

Installer Run
==============
Fetching CPAN timestamp…Done
Testing connection speed…(this could take a while)…Done
Ping:7.479 Testing connection speed to http://www.perl.com using
pureperl…(108366.67 bytes/s)…Done
Ping:15.912 Testing connection speed to http://www.mednor.net using
pureperl…(106166.67 bytes/s)…Done
Ping:2.767 Testing connection speed to mirrors.kernel.org using
pureperl…(316400.00 bytes/s)…Done Three usable mirrors located Mirror
Check passed for mirrors.kernel.org (/index.html) Unknown config variable
‘less’
commit: wrote ‘/usr/lib/perl5/5.8.8/CPAN/Config.pm’
CPAN: File::HomeDir loaded ok (v0.65)
CPAN: Storable loaded ok (v2.16)
Going to read /home/.cpan/Metadata
Database was generated on Sun, 05 Aug 2007 19:52:31 GMT
Warning: Cannot install PNGgraph, don’t know what it is.
Try the command

i /PNGgraph/

to find objects with matching identifiers.
CPAN: Time::HiRes loaded ok (v1.9707)
perlmod–Install done
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Solution
*********
You are receiving these alert emails because cPanel has deprecated use of PNGgraph perl module in the latest version (11), but they have not yet removed it from the required install module list of the installation. So, these message can actually be safely ignored.

Two fixes that can be applied to this are:
——————————————————
1. Edit php.ini file to change the ‘safe_mode’ variable from ‘On’ to ‘Off’.
2. vi /usr/local/cpanel/bin/checkperlmodules
Search PNGgraph and replace it with Chart::PNGgraph
Then execute the command
/scripts/perlinstaller Chart::PNGgraph
Restart apache

This should stop the email related to PNGgraph.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s