eg: yourdomain.com/cpanel and yourdomain.com/whm both go to a 500 internal error page instead of redirecting to the control panel login.
It is caused by missing file in CageFS skeleton:
edit /etc/cagefs/conf.d/perl.cfg
by adding /usr/bin/perl-bin
to paths.
Then run command /usr/sbin/cagefsctl --update