Base class package Cpanel::Easy::Utils::CloudLinux is empty

While executing EasyApache on my server, I  was getting the error “Base class package “Cpanel::Easy::Utils::CloudLinux” is empty”  and I tried executing upcp  and /scripts/checkperlmodules –full –force but of no Luck.

Further investigating on this, I have found that the file /var/cpanel/perl/easy/Cpanel/Easy/Utils/CloudLinux.pm was empty and hence EasyApache is giving error “Base class package “Cpanel::Easy::Utils::CloudLinux” is empty”.

How to fix it ?

Go inside below path

root@server~[#] cd /var/cpanel/perl/easy/Cpanel/Easy/Utils

Rename below file

root@server~[#] mv CloudLinux.pm CloudLinux.pm-ORI

Execute the below command to re-sync the files.

root@server~[#] /usr/local/cpanel/scripts/cpanel_easy_sanity_check