Fix Suspended Page in WHM

This article goes over a problem some customers have when using the Suspended Page option of WHM. When suspending a domain in WHM, the domain that was suspended may redirect to the WHM login screen.  To fix this, the steps below should be followed.

Each time an account is suspended, WHM creates an .htaccess file in/home/<username_of_suspended_site>/www/ (where <username_of_suspended_site> is the username of the account that is suspended) with the following information:

RedirectMatch .* http://<hostname>/suspended.page/

Options -Includes -Indexes -ExecCGI

If <hostname> is not actually hosted on the server WHM is installed on, then the hostname needs to be updated on the server. For example, if server.domain.com points to the IP of WHM but domain.compoints off of the server WHM is on, this is a problem. As such, the hostname needs to be updated  within cPanel to something such as server.domainhostedonserver.com and then add the A record in WHM or our DNS.

After doing so, log into the server via SSH and copy the files in/usr/local/apache/htdocs/suspended.page/ to /home/<username_of_hostname>/www/ (where the 'username_of_hostname' is the username of the domain which is now the hostname) by running the command below via SSH:

cp -R /usr/local/apache/htdocs/suspended.page/ /home/username_of_hostname/www/

Chown the files to the correct user. Be CAREFUL doing this.

cd /home/<username_of_hostname>/www/ (where <username_of_hostname> is the user on the server noted above)
chown -R username.username . (where username is the actual username)

Then you should un-suspend the site that was incorrectly resolving to the WHM login page and then re-suspend it. What this does is creates a new .htaccess file with the correct information in it now (i.e. the correctly updated hostname for the server). Then you can go to the suspended domain in a browser and it will show the suspended page rather than the WHM/cPanel login screen.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

5 Ways to Get a User’s Disk Usage

This may seem pretty simple, but I see a lot of questions about how to get a user’s disk space...

500 Internal Server Error help

First remember that “Internal Server Error” does not mean a server problem. It implies an...

Adjust Email Quota

If you need to adjust your email mailbox quota, you can do so from within your cPanel account.1)...

Changing an FTP User’s Path

By default, your main FTP (cPanel) user will have and FTP path to the user’s home folder, and...

Common cPanel Commands List

Most Common Linux Cpanel Commands for Server Admins & Cpanel Users .Limit webuser resources...