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

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

 
I tried to create a sub-domain on my cpanel server and got the below error message.

ERROR : “You do not have permission to create subdomains of the server’s hostname”

You must have server root access to fix this issue. Contact your webhosting provider if you don’t have server root access and they will fix this error for you. Do the below steps if you have server root password.
 


 
FIX:

1. Open a new web browser and login to WHM (WebHost Manager)

Link to access WHM : https://YourServerIP:2087

Enter root login details to access WHM

2. Search for ‘Tweak Settings’ in the WHM search bar on the left
 

Search tweak settings cPanel

Search tweak settings cPanel


 
3. Click on “Tweak Settings” under “Server Configuration”
 
park-subdomain
 
Home » Server Configuration » Tweak Settings

4. Under ‘Domains’ tab you can see the option “Allow users to park subdomains of the server’s hostname”. Select the ‘On’ radio button to enable it.

5. Save tweak settings for changes to take effect.
 
park-subdomains-tweak-settings
 
Restart cPanel service and then try creating a sub-domain in cPanel. You won’t see the same error.

You can do the same steps by editing the backend file /var/cpanel/cpanel.config.