biggdogg285

Well-Known Member
May 14, 2004
73
0
156
cPanel Access Level
Root Administrator
I noticed today on my one of my servers that I can't access cPanel in the following fashion anymore:

http://www.yourdomain.com/cpanel/

It gives me a 404 error.

If you go through WHM, and click the cPanel icon, it works fine. Also, if you go to the server's hostname it works fine.

https://hostname.server.com:2083/

I checked the '/usr/local/cpanel/logs/error_log/' for errors, but didn't find anything.

Can anyone give me advice on where else I can look for problems?
Any help would be appreciated.

Thanks!
-Adam
 

tweakservers

Well-Known Member
Mar 30, 2006
379
0
166
check your httpd.conf and make sure the following lines exist:

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

biggdogg285

Well-Known Member
May 14, 2004
73
0
156
cPanel Access Level
Root Administrator
Problem Solved

Yeah, for some reason that was missing. Now that you gave me something to look for, I compared with another servers config, and found that the following block was missing:

Code:
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/
Restarted apache, works fine now.

Thanks for your time, I appreciate your help!

Regards,
-Adam
 

tweakservers

Well-Known Member
Mar 30, 2006
379
0
166
glad things works fine for you now.
 

adapter

Well-Known Member
PartnerNOC
Sep 17, 2003
391
0
166
i have the same problem on my server, when i access on cpanel i wait a life and it dont open the panel, i have check the httpd.conf and there is all

i have also restart cpanel and try upcp --force but it stop on

Updating /scripts ...
Sync Source: http://httpupdate.cpanel.net/STABLE/scripts
Fetching http://httpupdate.cpanel.net/cpanelsync/STABLE/scripts/.cpanelsync.lock (0)[email protected]
Fetching http://httpupdate.cpanel.net/cpanelsync/STABLE/scripts/.cpanelsync.bz2 (0)[email protected]%...60%...90%...100%......Done
Fetching http://httpupdate.cpanel.net/cpanelsync/STABLE/scripts/cPScript/Version.pm.bz2 (0)[email protected]%......Done
Got file ./cPScript/Version.pm ok (md5 matches)
Done updating /scripts