/whm /cpanel and /webmail redirect gives 500 Internal Server Error

mphosting

Member
Apr 12, 2005
15
0
151
I am on WHM 10.8 and currently get a 500 Internal Server error when I access /whm, /cpanel or /webmail

I have just recompiled Apache and PHP and restarted the server. I have also run /scripts/upcp --force and still nothing helps.

I checked httpd.conf and it has the lines

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
ScriptAlias /controlpanel /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /securecontrolpanel /usr/local/cpanel/cgi-sys/sredirect.cgi
ScriptAlias /securecontrolpanel /usr/local/cpanel/cgi-sys/sredirect.cgi

I can access it fine on both HTTP and HTTPS when I enter the port numbers manually.

Does anybody know what to do?