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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SOLVED Account suspension is broken in cPanel 66

Discussion in 'General Discussion' started by Leslie de Groot, Jul 27, 2017.

Tags:
  1. Leslie de Groot

    Joined:
    Jul 13, 2017
    Messages:
    14
    Likes Received:
    4
    Trophy Points:
    3
    Location:
    The Netherlands
    cPanel Access Level:
    Root Administrator
    Greetings,

    I've run into another issue with WHM/cPanel v66.0.6.
    I've suspended multiple accounts, but only the last suspension remains active.

    When i run this code:
    Code:
    cat /usr/local/apache/conf/includes/account_suspensions.conf
    I can see that only the last suspended user is in this file.
    Code:
    # This include file is automatically generated by
    # /usr/local/cpanel/scripts/generate_account_suspension_include
    # Any manual edits inside this file will be lost whenever account
    # suspensions are updated.
    
    RewriteEngine On
    
    <Directory "/home/$USER">
        AllowOverride none
        RedirectMatch ^/(?!cgi-sys/suspendedpage.cgi).* /cgi-sys/suspendedpage.cgi
    </Directory>
    How to fix this?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,659
    Likes Received:
    1,428
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @Leslie de Groot,

    I've reproduced this issue and will update this thread with an internal case number shortly. For now, here are the commands you can use to populate /usr/local/apache/conf/includes/account_suspensions.conf with the correct entries:

    Code:
    /usr/local/cpanel/scripts/generate_account_suspension_include --update
    /scripts/restartsrv_httpd
    Thank you.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,659
    Likes Received:
    1,428
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Internal case CPANEL-14799 is now open to address an issue where suspending or unsuspending an account via "WHM >> Manage Account Suspension" or with the suspendacct WHM API 1 function wipes entries for previously suspended accounts from the /usr/local/apache/conf/includes/account_suspensions.conf file. The following commands are available as a temporary workaround:

    Code:
    /usr/local/cpanel/scripts/generate_account_suspension_include --update
    /scripts/restartsrv_httpd
    I'll monitor the case and update this thread with more information as it becomes available.

    Thank you.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,659
    Likes Received:
    1,428
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    This is fixed in cPanel 66.0.7:

    Fixed case CPANEL-14799: Ensure suspending multiple accounts works.

    The updated build is now available in the Edge build tier, and should reach the Current tier soon. The full cPanel 66 Change Log is available at:

    66 Change Log - Change Logs - cPanel Documentation

    Thank you.
     
  5. Leslie de Groot

    Joined:
    Jul 13, 2017
    Messages:
    14
    Likes Received:
    4
    Trophy Points:
    3
    Location:
    The Netherlands
    cPanel Access Level:
    Root Administrator
    Thank you for your assistance. The issue has been resolved!
     
    cPanelMichael likes this.
Loading...

Share This Page