SOLVED Account suspension is broken in cPanel 66

Jul 13, 2017
14
4
3
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
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.
 
Jul 13, 2017
14
4
3
The Netherlands
cPanel Access Level
Root Administrator
  • Like
Reactions: cPanelMichael