Categories
Mastering Development System & Network

WHM undef error – Can’t read “/var/cpanel/cpanel.config”

in whm when i try to create new account i get this error:

Can’t read “/var/cpanel/cpanel.config” (Unable to lock/open /var/cpanel/cpanel.config as UIDs 0/0: (unspecified error)) at /usr/local/cpanel/Cpanel/Config/CpConfGuard.pm line 311.
    Cpanel::Config::CpConfGuard::load_cpconf_file(Cpanel::Config::CpConfGuard=HASH(0x30e4680)) called at /usr/local/cpanel/Cpanel/Config/CpConfGuard.pm line 90
    Cpanel::Config::CpConfGuard::new("Cpanel::Config::CpConfGuard") called at /usr/local/cpanel/Whostmgr/Packages/Info.pm line 91
    Whostmgr::Packages::Info::get_defaults() called at /usr/local/cpanel/Whostmgr/Packages/Info.pm line 340
    Whostmgr::Packages::Info::validate_package_options(HASH(0x1a26488), 0) called at /usr/local/cpanel/Whostmgr/Accounts/Create.pm line 2756
    Whostmgr::Accounts::Create::__createaccount("username", "buildboxfull", "maxpark", 0, "maxaddon", 0, "customip", "", ...) called at /usr/local/cpanel/Whostmgr/Accounts/Create.pm line 3294
    Whostmgr::Accounts::Create::_createaccount("username", "buildboxfull", "maxpark", 0, "maxaddon", 0, "customip", "", ...) called at whostmgr/bin/whostmgr5.pl line 790
    main::wwwacct("wwwacct") called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 274
    Whostmgr::Dispatch::_do_call("wwwacct", HASH(0x303c700), HASH(0x303e5e0)) called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 172
    Whostmgr::Dispatch::dispatch("wwwacct", 1, ARRAY(0x303c0d0), HASH(0x303e5e0)) called at whostmgr/bin/whostmgr5.pl line 264
 at /usr/local/cpanel/Cpanel/Config/CpConfGuard.pm line 311.
    Cpanel::Config::CpConfGuard::load_cpconf_file(Cpanel::Config::CpConfGuard=HASH(0x30e4680)) called at /usr/local/cpanel/Cpanel/Config/CpConfGuard.pm line 90
    Cpanel::Config::CpConfGuard::new("Cpanel::Config::CpConfGuard") called at /usr/local/cpanel/Whostmgr/Packages/Info.pm line 91
    Whostmgr::Packages::Info::get_defaults() called at /usr/local/cpanel/Whostmgr/Packages/Info.pm line 340
    Whostmgr::Packages::Info::validate_package_options(HASH(0x1a26488), 0) called at /usr/local/cpanel/Whostmgr/Accounts/Create.pm line 2756
    Whostmgr::Accounts::Create::__createaccount("username", "buildboxfull", "maxpark", 0, "maxaddon", 0, "customip", "", ...) called at /usr/local/cpanel/Whostmgr/Accounts/Create.pm line 3294
    Whostmgr::Accounts::Create::_createaccount("username", "buildboxfull", "maxpark", 0, "maxaddon", 0, "customip", "", ...) called at whostmgr/bin/whostmgr5.pl line 790
    main::wwwacct("wwwacct") called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 274
    Whostmgr::Dispatch::_do_call("wwwacct", HASH(0x303c700), HASH(0x303e5e0)) called at /usr/local/cpanel/Whostmgr/Dispatch.pm line 172
    Whostmgr::Dispatch::dispatch("wwwacct", 1, ARRAY(0x303c0d0), HASH(0x303e5e0)) called at whostmgr/bin/whostmgr5.pl line 264

and permission of this file as /var/cpanel/cpanel.config is:

[root@l2 ~]# ls -a -l /var/cpanel/cpanel.config
-r--r--r--. 1 root root 7947 Aug  2 10:25 /var/cpanel/cpanel.config

Leave a Reply

Your email address will not be published. Required fields are marked *