Can't login to cpanel using http://mydomain.com/cpanel

Dayu

Member
Aug 13, 2006
6
0
151
I tried searching the forum and the web but I can hardly find the solution to this.

Problem:
Our users can not login to their cpanel account through http://domainname.com/cpanel which they have usually done before. We don't know what went wrong. We tried to upgrade cpanel but it doesn't help. It gives this error:

Not Found
The requested URL /cpanel was not found on this server.

Apache/1.3.37 Server at www.jlu.jp Port 80
Thanks in advance for any help.
 

bashcpanel

Well-Known Member
Apr 15, 2007
48
0
156
Hello,

Check if your users can browse http:domainname.com:2082 .. if they can ... it means that one entry is missing in httpd.conf file.

You can solve this problem by editing httpd.conf file

1) Login as Root in server
2) open httpd.conf file
3) Search for "ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/redirect.cgi" line ... if it is missing add it and restart apache.

It should solve your problem.

Let us know if every thing goes fine there . :)
 

bashcpanel

Well-Known Member
Apr 15, 2007
48
0
156
Hello,

For this problem you need to open "/var/cpanel/cpanel.config" file in server.

1) vi /var/cpanel/cpanel.config
2) Search for option alwaysredirecttossl and change it to 0
3) Restart cpanel with command "/usr/local/cpanel/startup"

It should help you out. :)

Thanks,
 

bashcpanel

Well-Known Member
Apr 15, 2007
48
0
156
Make sure you have added "ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/redirect.cgi" line where other almost similar lines are also present.

For this you can do 1 thing .. open httpd.conf file and search for "cpanel" word you will see other entries start with "ScriptAlias" or "ScriptAliasMatch" and other.

Thanks,:)
 

Dayu

Member
Aug 13, 2006
6
0
151
Yay! That was great!
It works now. Thanks.

Additional question, How can I make it work on /whm too?
I tried using the same ScriptAlias code but it redirects to port 2082 and not 2087.
 

bashcpanel

Well-Known Member
Apr 15, 2007
48
0
156
Greetings Dayu, :)

Please check these lines are present in httpd.conf .

=============
ScriptAlias /whm /usr/local/cpanel/cgi-sys/whmredirect.cgi
ScriptAlias /securewhm /usr/local/cpanel/cgi-sys/swhmredirect.cgi
=============

If not add them and restart apache.

Thanks,
 

Dayu

Member
Aug 13, 2006
6
0
151
That was really great!
Thanks a lot, everything is working fine now. :D