You do not have permission to create subdomains of the server’s hostname

Konstantinos X

Registered
Dec 26, 2015
3
1
3
Athens
cPanel Access Level
Root Administrator
Hello, this is the main domain of the server lets call it example.com there are ns1.example.com and ns2.example.com . (I have root privileges). In the account example I have the owner as the root but even when I changed it to example I had the same problem. Of course example account has the privilege to create unlimited subdomains.

When I try from the cpanel acount of example.com to create a new subdomain “subdomaintest” I get the error “The system experienced a problem during the creation of the “subdomaintest” subdomain.”

This is the log in /usr/local/cpanel/logs/error_log

Code:
[2015-12-26 10:57:49 +0200] warn [cpanel] Cpanel::Wrap::send_cpwrapd_request The adminbin “domain” in the “Cpanel” namespace call to function “ADD” ended prematurely: The subprocess reported error number 1 when it ended.: namespace=[Cpanel] module=[domain] function=[ADD]: set error in context subdomain: raw_response=[{"statusmsg":"The adminbin “domain” in the “Cpanel” namespace call to function “ADD” ended prematurely: The subprocess reported error number 1 when it ended.","mode":"simple","status":1,"version":"2.4","data":"You do not have permission to create subdomains of the server’s hostname.","exit_code":256,"timeout":0,"error":1,"action":"run"}] at /usr/local/cpanel/Cpanel/Wrap.pm line 116, <$socket> line 1.

Cpanel::Wrap::send_cpwrapd_request("namespace", "Cpanel", "module", "domain", "function", "ADD", "data", "subdomaintest example.com 1 /home/example/public_html", "action", ...) called at /usr/local/cpanel/Cpanel/AdminBin.pm line 105

Cpanel::AdminBin::adminrun("domain", "ADD", "subdomaintest", "example.com", 1, "/home/example/public_html") called at /usr/local/cpanel/Cpanel/SubDomain.pm line 314

Cpanel::SubDomain::_addsubdomain("subdomaintest", "example.com", 1, 0, "public_html/") called at /usr/local/cpanel/Cpanel/SubDomain.pm line 183

Cpanel::SubDomain::addsubdomain("subdomaintest", "example.com", 1, 0, "public_html/") called at cpanel.pl line 3068

main::dosubdomain("addsubdomain", ARRAY(0x6cb5278)) called at cpanel.pl line 2068

eval {...} called at cpanel.pl line 2068

main::_api1(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__..., __CPANEL_HIDDEN__, ARRAY(0x6cb5278), __CPANEL_HIDDEN__, undef, undef) called at cpanel.pl line 1727

main::real_exectag("<cpanel SubDomain=\"addsubdomain(\$RAW_FORM{'domain'},\$RAW_FORM"...) called at cpanel.pl line 4104

main::dotag_finished_headers(0) called at cpanel.pl line 3963

main::cpanel_parseblock("<cpanel setvar=\"headerimg=../images/topsubdomains.gif\">\x{a}<cpan"...) called at cpanel.pl line 3878

main::y(GLOB(0x63cc9e0)) called at cpanel.pl line 5219

main::run_standard_mode() called at cpanel.pl line 888

[2015-12-26 10:57:49 +0200] warn [cpanel] Cpanel::Wrap::send_cpwrapd_request error: namespace=[Cpanel] module=[domain] function=[ADD]: set error in context subdomain: statusmsg=[The adminbin “domain” in the “Cpanel” namespace call to function “ADD” ended prematurely: The subprocess reported error number 1 when it ended.] at /usr/local/cpanel/Cpanel/Wrap.pm line 126, <$socket> line 1.

Cpanel::Wrap::send_cpwrapd_request("namespace", "Cpanel", "module", "domain", "function", "ADD", "data", "subdomaintest example.com 1 /home/example/public_html", "action", ...) called at /usr/local/cpanel/Cpanel/AdminBin.pm line 105

Cpanel::AdminBin::adminrun("domain", "ADD", "subdomaintest", "example.com", 1, "/home/example/public_html") called at /usr/local/cpanel/Cpanel/SubDomain.pm line 314

Cpanel::SubDomain::_addsubdomain("subdomaintest", "example.com", 1, 0, "public_html/") called at /usr/local/cpanel/Cpanel/SubDomain.pm line 183

Cpanel::SubDomain::addsubdomain("subdomaintest", "example.com", 1, 0, "public_html/") called at cpanel.pl line 3068

main::dosubdomain("addsubdomain", ARRAY(0x6cb5278)) called at cpanel.pl line 2068

eval {...} called at cpanel.pl line 2068

main::_api1(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__..., __CPANEL_HIDDEN__, ARRAY(0x6cb5278), __CPANEL_HIDDEN__, undef, undef) called at cpanel.pl line 1727

main::real_exectag("<cpanel SubDomain=\"addsubdomain(\$RAW_FORM{'domain'},\$RAW_FORM"...) called at cpanel.pl line 4104

main::dotag_finished_headers(0) called at cpanel.pl line 3963

main::cpanel_parseblock("<cpanel setvar=\"headerimg=../images/topsubdomains.gif\">\x{a}<cpan"...) called at cpanel.pl line 3878

main::y(GLOB(0x63cc9e0)) called at cpanel.pl line 5219

main::run_standard_mode() called at cpanel.pl line 888

[2015-12-26 10:57:49 +0200] warn [SubDomain::addsubdomain] Encountered error in SubDomain::addsubdomain: You do not have permission to create subdomains of the server’s hostname.
 
Last edited by a moderator: