Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Page 1 of 3 1 2 3 LastLast
Results 1 to 15 of 38
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge anton_latvia's Avatar
    Join Date
    May 2004
    Posts
    270

    Default ServerAlias has lost www on all domains after upgrade

    We had server which was not updated for some time (but it already was cpanel11). Now we decided to upgrade whm and apache/php. Everything worked fine with update, but then suddenly all clients (more than 1000) started to complain, that their website stopped working.
    In apache's config there was the following situation:

    ServerName domain.com
    ServerAlias domain.com

    No www.! Of course we easily searched and replaced with www, but guys... That's the thing we've been worried before the upgrade - something will be screwed.. And that happened. I have executed distiller to save changes, I hope www. will stay where it is, but may be someone could look into this issue to fix it? By the way, WHM had been upgraded to the latest currnet version.
    WHM 11.15.0 cPanel 11.18.0-C20595

    Regards,
    Anton.
    * http://www.aleksandrov.eu/ - just a simple personal homepage.

  2. #2
    Member handsonhosting's Avatar
    Join Date
    Feb 2002
    Location
    Omaha, NE
    Posts
    149
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Just to comment,

    We ran an upgrade on one of our serves also, and the ServerAlias tags no longer function

    I've tried the rebuildhttpdconf command - no luck.

    We were on the CURRENT build also - I'm now upgrading to EDGE to see if there's any difference.

    how did you get around the issue if the ServerAlias has multiple domains on it? So far, if it has more than one it's not resolving at all (from what I've tried here).

  3. #3
    Member
    Join Date
    Dec 2006
    Posts
    16

    Default

    Happened here as well. Did an upgrade on a server hosting 1000 sites.

  4. #4
    Member handsonhosting's Avatar
    Join Date
    Feb 2002
    Location
    Omaha, NE
    Posts
    149
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Going back to a STABLE release does not resolve either...

    cPanel 11.18.0-S20595

    From what I"m seeing, the /var/cpanel/userdata/username fodlers are getting updated and the "www" is being stripped n there.

  5. #5
    cPanel Staff cpanelnick's Avatar
    Join Date
    Feb 2003
    Location
    Houston, TX
    Posts
    4,514

    Default

    Please open a ticket @ https://tickets.cpanel.net/submit/

  6. #6
    Staff Member cpanelben's Avatar
    Join Date
    Feb 2004
    Location
    Houston, Texas USA
    Posts
    598
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    You can resolve this issue by running the following commands:

    /usr/local/cpanel/bin/userdata_update (This restores the missing alias in the userdata and merges it with your existing data)
    /scripts/rebuildhttpdconf (This builds the httpd.conf against the merged userdata )

    We're still investigating how this could happen. I've only been able to reproduce the issue by manually removing the www.domain server alias from the userdata and rebuilding the httpd.conf immediately afterwards. This can also be reproduced by manually removing the www.domain server alias from httpd.conf and running "/usr/local/cpanel/bin/apache_conf_distiller --update" to update the userdata with the missing server alias. There's no code that I can think of that would remove the server alias from either point (only code to ensure that it is there).

  7. #7
    Member handsonhosting's Avatar
    Join Date
    Feb 2002
    Location
    Omaha, NE
    Posts
    149
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Thanks Nick,

    Ticket 236371 was submitted.

  8. #8
    Staff Member cpanelben's Avatar
    Join Date
    Feb 2004
    Location
    Houston, Texas USA
    Posts
    598
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    I'll be looking over the ticket now and will report back any findings. Additional tickets regarding this issue would be appreciated, just make the subject:

    ATTN: cpanelben Missing www serveralias

    So that it will be sent to me. Please submit a ticket even if you were able to quickly resolve the issue.

  9. #9
    Member
    Join Date
    Aug 2005
    Posts
    131

    Default

    I also have this issue, but can not open a ticket directly as I rent the server.
    the fix listed in this ticket did not work for me.

  10. #10
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,723
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by oulzac View Post
    I also have this issue, but can not open a ticket directly as I rent the server.
    the fix listed in this ticket did not work for me.
    You can open a ticket even if your licensing is through one of our resellers. Simply use the option to submit a ticket without logging in at the bottom of: http://tickets.cpanel.net/submit

  11. #11
    Member
    Join Date
    Aug 2005
    Posts
    131

    Default

    thank you, I have submitted a ticket.

  12. #12
    Staff Member cpanelben's Avatar
    Join Date
    Feb 2004
    Location
    Houston, Texas USA
    Posts
    598
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    I should mention after running userdata_update and rebuildhttpdconf, you need to restart Apache in order for your changes to take effect.

    I've determined that the issue was related to how ServerName and ServerAlias were implemented in older builds and have updated our code to address the issue.

    This change will be available in builds with and ID of 20607+.

  13. #13
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Sep 2004
    Posts
    139

    Default

    Hi all,

    Had this problem on all servers which just had SuPHP implemented, and had to run the scripts you mentioned.

    However upon doing so, this "no 'main_domain' key" error is being thrown up shown below - what does this indicate?

    Regards,
    Suhail.


    root@server12 [~]# /usr/local/cpanel/bin/userdata_update
    root@server12 [~]# /scripts/rebuildhttpdconf
    [Cpanel::AdvConfig::apache]: User 'webaudio' data set has no 'main_domain' key.
    [Cpanel::AdvConfig::apache]: User 'keywordr' data set has no 'main_domain' key.
    [Cpanel::AdvConfig::apache]: User 'animeser' data set has no 'main_domain' key.
    [Cpanel::AdvConfig::apache]: User 'searchen' data set has no 'main_domain' key.
    [Cpanel::AdvConfig::apache]: User 'paypercl' data set has no 'main_domain' key.
    [Cpanel::AdvConfig::apache]: User 'russellc' data set has no 'main_domain' key.
    [Cpanel::AdvConfig::apache]: User 'linkbuil' data set has no 'main_domain' key.
    [Cpanel::AdvConfig::apache]: User 'ebidtra' data set has no 'main_domain' key.
    [Cpanel::AdvConfig::apache]: User 'experien' data set has no 'main_domain' key.
    Succeeded
    DNSCluster.co.uk - multiple geographically dispersed DNS Cluster provider!
    R1Soft Leased CDP Licenses

  14. #14
    Member
    Join Date
    Sep 2003
    Posts
    146

    Default

    Quote Originally Posted by cpanelben View Post
    This change will be available in builds with and ID of 20607+.
    What does this mean for an updated system where this www are removed from /var/cpanel/userdata/username but the httpd.conf actually is okay?

    I updated a system from cPanel 11.15.0-R18373 to cPanel 11.18.0-R20595 ..
    Last edited by Rubas; 02-11-2008 at 03:50 PM.

  15. #15
    Staff Member cpanelben's Avatar
    Join Date
    Feb 2004
    Location
    Houston, Texas USA
    Posts
    598
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Quote Originally Posted by suhail View Post
    [Cpanel::AdvConfig::apache]: User 'webaudio' data set has no 'main_domain' key.
    This occurs when the primary domain is not set in the /var/cpanel/users/username file. It's the entry for "DNS=userdomain.com". It's important for various parts of cPanel for this domain to be set. Correct the entry in /var/cpanel/users/username file and re-run /usr/local/cpanel/bin/userdata_update to resolve the issue.

Similar Threads & Tags
Similar threads

  1. How do you redirect non-www to www prefixed domains??
    By DReade83 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-09-2008, 10:51 AM
  2. cPanel Update = All ServerAlias www removed
    By jdhf99 in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 11-29-2007, 11:36 PM
  3. missing www serveralias...
    By jmcole in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-30-2005, 11:59 AM
  4. Replies: 0
    Last Post: 10-16-2003, 08:38 PM
  5. addon domains, swap servername/serveralias
    By rmj in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-01-2003, 03:53 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube