While accessing WHM panel or cPanel, users at times notice an “Internal server error 500” message. This usually happens when one of the cPanel processes is failing.
As a part of our Server Management Services, we help our Customers with WHM related requests regularly.
Let us today analyze the causes and the fix for this error.
What causes WHM Internal server error 500
We recently received a request from one of our customers that they are receiving an “internal server error” as shown below while accessing WHM:
This error can trigger in a number of scenarios. For instance, while using ConfigServer WHM plugins, while setting up two-factor authentication, or randomly when they try to login to WHM or cPanel interface.
The exact reason for this error may vary based on the particular situation. However, this error usually happens due to one of the cPanel processes failing to load or still running in the background.
Let us now discuss two different solutions for this error.
How to fix WHM Internal server error 500
As we said earlier, the exact steps to fix the error may vary based on the reason for the error. To have a better idea on what is the reason, our Support engineers check the cPanel error log:
tail -f /usr/local/cpanel/logs/error_log
This error log helps to identify the reason for the error. In most cases running a cPanel update helps to fix the error. For this, initially, we need to Stop the cPanel service with the command below:
service cpanel stop
Now our Support Engineers update cPanel/WHM with the command:
/scripts/upcp –force
This command only updates the control panel software. Once the update is over, we can start the services by issuing this line:
service cpanel start
While using ConfigServer WHM plugins
ConfigServer plugins need access to some IP addresses. If they are not whitelisted on the server, it is possible for them to get blocked. This in turn can trigger the “500 error”.
Thus to fix the error, we need to remove them from the blocklist and then whitelist it by adding them in the ” /etc/csf.allow” file
54.36.165.115 # download2.configserver.com
94.130.90.175 # download.configserver.com
66.165.246.166 # license.configserver.com
2604:4500:9:156::6 # ipv6.license.configserver.com
[Need any further assistance with WHM error? – We’re available 24*7]
Conclusion
In short, the “Internal server error 500″ message” while accessing WHM panel or cPanel usually happens when one of the cPanel processes is failing. Today we saw how our Support Engineers fix this error.
0 Comments