The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    1
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,830
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page