Unable to login to /webmail & /cpanel

jobokoth

Member
Dec 28, 2001
8
0
301
Hi people!

I have encountered a problem after upgrading my server to the latest apache upgrade and the latest cpanel upgrade. All my domains give 500 server errors when I access them through www.domain.com/cpanel or www.domain.com/webmail

What is the best way to resolve this problem?

Thanks

Job
 

arcane

Member
Oct 25, 2004
16
0
151
Hi,

Be sure the following are in your httpd.conf:

ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /whm /usr/local/cpanel/cgi-sys/whmredirect.cgi

I used to have this problem and now it works fine after I readded these lines back to httpd.conf

I'm not possibly sure but I believe

ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/webmaillogin.cgi might work for webmail.

Do a search to verify this for webmail
 

khoonchee

Well-Known Member
PartnerNOC
Oct 2, 2002
134
0
166
arcane said:
ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/webmaillogin.cgi might work for webmail.

Do a search to verify this for webmail
For webmail , add the following :

ScriptAlias /webmail /usr/local/cpanel/cgi-sys/wredirect.cgi
 

macooper

Member
May 3, 2004
14
0
151
I'm not sure why this happened, but after using easyapache to update, I found more than just the /cpanel/ failing. For some reason, all of the ErrorDocument directives had also gone.

Luckily, I had a backup of the config, so fixing things was easy enough. You might want to check that you have not suffered from the same problem. Heres what I had to add back in to httpd.conf after the last VirtualHost directive:

ErrorDocument 400 /400.shtml
ErrorDocument 401 /401.shtml
ErrorDocument 403 /403.shtml
ErrorDocument 404 /404.shtml
ErrorDocument 500 /500.shtml
ScriptAlias /cgi-sys/ /usr/local/cpanel/cgi-sys/
Alias /sys_cpanel/ /usr/local/cpanel/sys_cpanel/
Alias /java-sys/ /usr/local/cpanel/java-sys/
Alias /img-sys/ /usr/local/cpanel/img-sys/
Alias /akopia/ /usr/local/cpanel/3rdparty/interchange/share/akopia/
Alias /neo-images/ /usr/local/cpanel/base/neomail/neo-images/
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
ScriptAliasMatch ^/kpanel/(.*) /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /controlpanel /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /securecontrolpanel /usr/local/cpanel/cgi-sys/sredirect.cgi
Alias /mailman/archives/ /usr/local/cpanel/3rdparty/mailman/archives/public/
ScriptAlias /mailman/ /usr/local/cpanel/3rdparty/mailman/cgi-bin/
Alias /pipermail/ /usr/local/cpanel/3rdparty/mailman/archives/public/
Alias /interchange/ /usr/local/cpanel/3rdparty/interchange/share/interchange/
Alias /interchange-5/ /usr/local/cpanel/3rdparty/interchange/share/interchange-5/

HTH,
Martin
 

WebTrooper

Member
Nov 7, 2004
22
0
151
I'm having the same problem that started this thread. I checked httpd.conf and sure enough, the ScriptAlias lined are not there. Everything was working fine before I rebuilt Apache via whm. Granted, I can add these lines manually but that should be whm's job, right? I'm assuming I have to reset some self configurating gizmo that writes to httpd.conf, but I can't find any such setting. How do I reset cpanel to add the lines like wots quoted...


Be sure the following are in your httpd.conf:

ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /whm /usr/local/cpanel/cgi-sys/whmredirect.cgi

Thanks,
WebTrooper
 

WebTrooper

Member
Nov 7, 2004
22
0
151
Replying to my own post...

I found the solution on another thread. I had to put the following lines in httpd.conf and restart Apache


after ScriptAlias /cgi-bin/ "/usr/local/apache/cgi-bin/"

I added:

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

Restarted httpd server from whm and all is well.

Peace!