Nov 04

Getting 500 Internal Server Error when calling or webmail etc

Sometimes it happens that we get Internal Server Error when we try to load the domain cPanel, webmail etc using the format as follows:, etc etc.

In such cases, please add the following scripalias and scripaliasmatch in the apache conf(probably these entries must be missing, as a result cause 500 error).

ScriptAliasMatch ^/cpanel/(.*) /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /whm /usr/local/cpanel/cgi-sys/whmredirect.cgi
ScriptAlias /securewhm /usr/local/cpanel/cgi-sys/swhmredirect.cgi
ScriptAlias /webmail /usr/local/cpanel/cgi-sys/wredirect.cgi
ScriptAliasMatch ^/webmail/(.*) /usr/local/cpanel/cgi-sys/wredirect.cgi

Restart apache, it works now 😀

Leave a Reply

Your email address will not be published.