Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

extra www subdomain - and cannot remove!

Discussion in 'General Discussion' started by nsdesign2, Jan 27, 2012.

  1. nsdesign2

    nsdesign2 Registered

    Joined:
    Jan 27, 2012
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    cPanel Access Level:
    Root Administrator
    cPanel won't allow users to create a "www" subdomain - and rightly so, because ww is handled in the main DNS as a CNAME...

    However - some of our users have managed this (probably many years ago before the limitation was put in place).

    This cause massive problems every apache recompile - because the system thinks the domain's document root is public_html/www

    Anyway.. I need to delete these extra (false) www subdomains.. but clicking on delete in the users cPanel gives:

    ==========
    There was a problem removing the subdomain www.usersdomain.com
    Show Details : Error from domain wrapper: Can't Change the master entry (www).
    ==========

    ANy ideas? Obviously don't want to break the "correct" use of the www, but need to get it rid from cPanel as a seperate subdomain, as it's causing problems!

    Thanks in advance!
     
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    45,214
    Likes Received:
    1,936
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello :)

    You should check for "www" subdomain entries at the following locations:

    Code:
    /var/cpanel/userdata/username/main
    /var/cpanel/userdata/username/sub.maindomain.com
    /var/cpanel/users/username
    Remove entries within the files, and any individual files used purely for the "www" subdomain. Ensure you do not remove the "ServerAlias" itself, as you will still want the "www" alias for the domain name in the Apache configuration.

    When you have finished, run the following commands:

    Code:
    /scripts/rebuildhttpdconf
    /scripts/updateuserdomains
    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice