If you get error like :
!! Failed to install CPAN Perl module(s) Crypt::PasswdMD5 !!
Tr following command :
/usr/local/cpanel/scripts/perlinstaller Digest::SHA1 /usr/local/cpanel/bin/cpanm -n Digest::SHA1 Crypt::PasswdMD5
If still get error messages maybe Scalar::Util was broken on the server, try repair scripts ;
/scripts/autorepair scalarutil
Once this was done I manually installed Crypt::PasswdMD5 using the following command;
/scripts/perlinstaller Crypt::PasswdMD5
And try build apache again with /scripts/easyapache