New web host or server installed with cPanel 11 RELEASE branch may encounter a weird “The Perl module PNGgraph could not be installed” error message from the cPanel task notification email. Host, either dedicated server or virtual private server (VPS) that set cPanel/WHM updates to upgrade to cPanel 11 RELEASE branch may receive this “checkperlmodules” failure email too. The email typically looks like below.

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.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl .) at – line 1.
BEGIN failed–compilation aborted at – line 1.

Installer Run
==============
Fetching http://cpan.cpanel.net/cPCPAN/modules.versions (0)…[email protected]……connected……receiving…100%……Done
Fetching CPAN timestamp…Done
Testing connection speed…(this could take a while)…Done
Ping:8.969 Testing connection speed to mirror.hiwaay.net using pureperl…(157350.00 bytes/s)…Done
Ping:15.750 Testing connection speed to cpan-du.viaverio.com using pureperl…(78600.00 bytes/s)…Done
Ping:20.097 Testing connection speed to perl.secsup.org using pureperl…(104533.33 bytes/s)…Done
Three usable mirrors located
Three usable mirrors located
Mirror Check passed for mirror.hiwaay.net (/index.html)
Unknown config variable ‘less’
commit: wrote ‘/usr/lib/perl5/5.8.8/CPAN/Config.pm’
CPAN: Storable loaded ok (v2.16)
Going to read /home/.cpan/Metadata
Database was generated on Sun, 05 Aug 2007 10:57:30 GMT
CPAN: File::HomeDir loaded ok (v0.65)
cPCPAN: Module (Compress::Zlib) holdback (2.005 held back to 1.42)
Test::Harness is up to date (2.64).
ExtUtils::CBuilder is up to date (0.19).
ExtUtils::MakeMaker is up to date (6.36).
Module::Build is up to date (0.2808).
File::Spec is up to date (3.25).
File::Temp is up to date (0.18).
Scalar::Util is up to date (1.19).
Test::More is up to date (0.70).
Data::Dumper is up to date (2.121_08).
Digest::SHA is up to date (5.45).
File::HomeDir is up to date (0.65).
Compress::Zlib is up to date (1.42).
Archive::Tar is up to date (1.32).
Archive::Zip is up to date (1.20).
Net::Cmd is up to date (2.28).
Net::FTP is up to date (2.77).
Term::ReadKey is up to date (2.30).
Term::ReadLine::Perl is up to date (1.0302).
YAML is up to date (0.65).
Text::Glob is up to date (0.08).
CPAN is up to date (1.9102).
File::Which is up to date (0.05).
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

Beside, cPanel /script/upcp automatic update script may also report PNGgraph error via the update results email notification:

Warning: Cannot install PNGgraph, don’t know what it is.
Try the command

i /PNGgraph/

to find objects with matching identifiers.

The error occurs because CPanel will no longer using PNgraph in future, according to a discussion on FDCServers forum (link dead). As of WHM 11.2.0 cPanel 11.6.0-R15076 (RELEASE branch already rolled out), the upcp script still looks for PNGgraph module, although it’s not installed as cPanel no longer requires it to function properly. Thus the error message when updates run. Anyway, the PNGgraph has already been stopped using in CURRENT branch of cPanel 11 Stage 2, thus when cPanel 11 Stage 2 RELEASE branch been officially released by end of August (scheduled date which may change), the error likely goes away.

Meanwhile you can ignore the email. If you do not want to receive the separate email regarding “checkperlmodules” failure, turn off the alert by setting cPanel Required Perl Module Auto Installs priority to Disabled, or lower priority in Contact Manager under Server Contacts section.