yum install perl-CPAN
cpan
run: install Carp
quit
Most important is to run after above commands: cagefsctl --update
Above command is necessary to run because simply installing perl module is not enough. It needs to be copied to user's cagefs.
One of lines you will see after above (cagefsctl --update) command is:
Copying /usr/share/perl5/CGI/Carp.pm to /usr/share/cagefs-skeleton/usr/share/perl5/CGI/Carp.pmThis will fix this error that you see in website log file:
Can't locate CGI/Carp.pm in @INC (@INC contains: /usr/share/awstats/lib /usr/share/awstats/plugins /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at /var/www/user/data/www/site.com/cgi-bin/site_2.pl line 2.