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.

Suspended account redirecting to http://www.suspended.page/

Discussion in 'General Discussion' started by n000b, Jun 20, 2007.

  1. n000b

    n000b Well-Known Member

    Joined:
    Apr 7, 2005
    Messages:
    142
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    I've just recently upgraded to cPanel 11 and when I just suspended an account in WHM, when visiting that account's URL it is redirecting to http://www.suspended.page/ (which is obviously incorrect and can't be found). Why is it doing this and how do I fix it?

    And on a side note, how do I edit the suspended page for one user only?

    Thanks :)
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    The only thing I could think of is some code in your Suspended Page code may be attempting to perform that redirect. You can edit the HTML for the Suspended Page in WHM -> Account Functions -> Modifing Suspension Page.

    Unfortunately, at this time there is no ability to modify a suspension page for an individual user. However, it may make for a good feature request to submit to http://bugzilla.cpanel.net :).
     
  3. n000b

    n000b Well-Known Member

    Joined:
    Apr 7, 2005
    Messages:
    142
    Likes Received:
    0
    Trophy Points:
    16
    Thanks David, my suspended page is not performing any redirects though:

    Code:
                                  <html>
    
                                     <head>
                                     <style>
    
                                     a:link { font-family: arial, verdana; font-sizw: 11px; color: #000000; text-decoration: none; }
    a:visited { font-family: arial, verdana; font-sizw: 11px; color: #000000; text-decoration: none; }
    a:active { font-family: arial, verdana; font-sizw: 11px; color: #000000; text-decoration: none; }
    a:hover { font-family: arial, verdana; font-sizw: 11px; color: #000000; text-decoration: underline; }
    
      font { font-family: arial, verdana; font-sizw: 11px; color: #000000; text-decoration: none; }
    
      td{ font-family: arial, verdana; font-sizw: 10px; text-decoration: none; }
      table{ font-family: arial, verdana; font-sizw: 11px; text-decoration: none; }
      body { background-color: #F0F0F0; scrollbar-face-color: #6E788C; scrollbar-shadow-color: #696969; scrollbar-highlight-color: #cfcfcf; scrollbar-3dlight-color: #cccccc; scrollbar-darkshadow-color: #808080; scrollbar-track-color: #9B9FA7; scrollbar-arrow-color: #000000 }
    
      .title { font-family: arial, verdana; font-size: 9pt; font-weight: normal; }
      .distributers { font-family: arial, verdana; font-size: 11pt; font-weight: normal; }
      .info { font-family: arial, verdana; font-size: 8pt; font-weight: normal; }
      .design { font-family: arial, verdana; font-size: 8pt; font-weight: normal; }
    
      .menu { border-top: 1px #374646 solid; border-left: 1px #374646 solid; border-right: 1px #374646 solid; border-bottom: 1px #374646 solid; font-family: verdana, arial; font-size: 8pt; font-weight: normal; }
      .cellheader { border-top: 1px #374646 solid; border-left: 1px #374646 solid; border-right: 1px #374646 solid; border-bottom: 1px #374646 solid; font-family: verdana, arial; font-size: 20pt; font-weight: normal; color: #F1F1F1; }
      .scellheader { border-top: 1px #374646 solid; border-left: 1px #374646 solid; border-right: 1px #374646 solid; border-bottom: 1px #374646 solid; font-family: verdana, arial; font-size: 15pt; font-weight: normal; color: #F1F1F1; }
      .bigcellheader { border-top: 1px #374646 solid; border-left: 1px #374646 solid; border-right: 1px #374646 solid; border-bottom: 1px #374646 solid;  font-family: verdana, arial; font-size: 30pt; font-weight: normal; color: #F1F1F1; link: #F1F1F1; vlink: #F1F1F1; }
    
      .tblheader { background-color: #AAAAAA; border-top: 1px #374646 solid; border-left: 1px #374646 solid; border-right: 1px #374646 solid; border-bottom: 1px #374646 solid; font-family: verdana, arial; font-size: 14pt; font-weight: normal; }
      .tdshade1 { background-color: #DDDDDD; border-top: 1px #374646 solid; border-left: 1px #374646 solid; border-right: 1px #374646 solid; border-bottom: 1px #374646 solid; font-family: verdana, arial; font-size: 10pt; font-weight: normal; }
      .tdshade2 { background-color: #EEEEEE; border-top: 1px #374646 solid; border-left: 1px #374646 solid; border-right: 1px #374646 solid; border-bottom: 1px #374646 solid; font-family: verdana, arial; font-size: 10pt; font-weight: normal; }
    
    
      </style>
    
         </head>
    
         <body bgcolor="#ffffff">
    
         <table bgcolor=#ffffff link=#0000ee vlink=#0000ee text=#000000 border=0 align="center" width="100%">
         <tr class=cellheader>
         <td bgcolor=#788298><center><b>This Account Has Been Suspended</b></center></td>
         </tr>
         </table>
         Please contact the billing/support department as soon as possible.
         </html>
    
    Anything else that you can think of?
     
  4. djmerlyn

    djmerlyn Well-Known Member

    Joined:
    Aug 31, 2004
    Messages:
    203
    Likes Received:
    1
    Trophy Points:
    16
    This happens when the suspended account is "owned" by a reseller whom no longer exists on the system.

    For example, I use reseller as a way to have a different "cpanel-skel" directory. Therefor, some customers are set up with a "reseller" account whom has "root access" to whm.

    When I move the site between servers, cpanel is not smart enough to drop the reseller name and give the account back to "root" even if you say "Skip Copying Reseller Privileges" during move. The account will still have it's reseller user set up. So when the account becomes suspended, it is looking for "somenonexistentdomain.com/suspended.page/". Since your reseller account is no longer in the system, WHM doesn't know what the domain name is- so it decides to leave the domain name empty and just make the URL: http:///suspended.page/

    I confirmed this on 3 servers after trying to find the simple answere here. But now the simple answere is here. To fix it, go to "list accounts" in whm. Show "All". Look for any domains that are not owned by root. If you don't have any resellers on the server, they should all be owned by root, so make it so. Start with your broken suspended site. Change the owner to root, then unsuspend the account, and suspend it again. The suspension page will now work.

    I still think that when a site is copied between servers and "Skip Copying Reseller Privileges" is checked, the site should become "owned" by root on the new server...as one would expect.

    Cheers
     
    #4 djmerlyn, Jul 24, 2007
    Last edited: Jul 24, 2007
  5. n000b

    n000b Well-Known Member

    Joined:
    Apr 7, 2005
    Messages:
    142
    Likes Received:
    0
    Trophy Points:
    16
    Thanks for the reply, I'll check it out :)
     
  6. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    I would recommend submitting this as a bug report to http://bugzilla.cpanel.net - I tried finding something similar to this but there are no relevant entries thus far.
     
  7. djmerlyn

    djmerlyn Well-Known Member

    Joined:
    Aug 31, 2004
    Messages:
    203
    Likes Received:
    1
    Trophy Points:
    16
    Yeah, it definitly needs to be fixed...but I don't have a bugzilla account and don't really want one :rolleyes: I don't really understand how it works and I get lost there easily.

    I hope someone with a bugzilla account will add it though ;)

    the bug is easy to reproduce;

    1. Change a hosting account to a reseller user
    2. Remove the reseller user from the server
    3. Suspend the hosting account from step 1
    4. Visit the accounts domain and witness the broken suspended.page URL
    5. Unsuspend the account
    6. Change the account to be owned by root
    7. Suspend the account from step 1
    8. Notice the suspended page works fine now.

    And with copying sites between servers;

    1. Set the flag; "Skip copying reseller priveledges" and start a copy of a site owned by a reseller
    2. When the site is finished copying, view it in the list account page- notice that it is still owned by the previous reseller who does not exist.

    ^ This is what is likely causing the first problem for most users.

    I'm still trying to find a way to quickly and easily change all hosting accounts on a server to be owned by the root user. It is a really long and tedious process manually changing every single one of them. I'm sure I can do it from the command line, but I'm not sure what data is being updated in cpanel when I change the site owner in WHM :(

    Anyways...ramble ramble...

    Cheers!
     
    #7 djmerlyn, Jul 28, 2007
    Last edited: Jul 28, 2007
  8. Krisiun

    Krisiun Member

    Joined:
    Oct 16, 2004
    Messages:
    24
    Likes Received:
    0
    Trophy Points:
    1
    I was with the same problem and this is simple to fix.

    If you need change all users to be owned by root:

    1. Login to WHM
    2. Go to: Multi-Account Functions -> Modify/Upgrade Multiple Accounts
    3. Select all domains (WHM could have option to select all domains, but TAB + SPACE is your friend :rolleyes: )
    4. In the option "Reseller", select "Root"
    5. Click in the button "Change"

    Now all accounts owned by root. ;)

    With all accounts owned by the user root (I don't have reseller accounts in this server), no more problems with http://www.suspended.page/ here.

    Regards.
     
  9. djmerlyn

    djmerlyn Well-Known Member

    Joined:
    Aug 31, 2004
    Messages:
    203
    Likes Received:
    1
    Trophy Points:
    16
    Thank you for the tip for the quick change ;) Now I can go fix all my accounts that shouldn't be broke in the first place :D

    Cheers!
     
  10. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    Thanks for that nice breakdown, djmerlyn. We've noticed that several things are not happening when a reseller is removed. We'll add this to our list as we want to get the reseller portion as clean as possible before cPanel 11 reaches Stable.

    As for the account transfer scenario, the 'Skip copying reseller privileges' only takes effect when the account being transferred is a reseller. However, if the reseller doesn't exist on the destination server, the transferred account should be 're-owned' to 'root'. We'll double-check that one also.

    Again, thank you.
     
Loading...

Share This Page