benwal91

Registered
Jun 3, 2010
3
0
51
After I had installed an Apache module for ASP.NET and Zend Optimizer last night, all of a sudden the system restarted itself, and now when I try to go to the cpanel WHM it takes me to a hostname that doesn't exist.

I've done changes in the hosts file, and network file, then ran /usr/local/cpanel/cpkeyclt

nothing happened. I restarted. Still the same problem happens.

I'm running a VPS server with Cpanel, and OS is a CentOS 5 x64
 

benwal91

Registered
Jun 3, 2010
3
0
51
Never mind, got it working now. I used the port number with the other hostname it was to use, so now its working.
 

JaredR.

Well-Known Member
Feb 25, 2010
1,834
27
143
Houston, TX
cPanel Access Level
Root Administrator
You can edit redirect options

You can change whether /cpanel, /whm and /webmail redirect to the hostname, the origin domain name, or the SSL certificate name (if you are using https on port 2083, 2087 or 2096) by changing the following settings in the WebHost Manager, in Main >> Server Configuration >> Tweak Settings:

"When visiting /cpanel or /whm or /webmail WITHOUT SSL, you can choose to redirect to:"

"When visiting /cpanel or /whm or /webmail with SSL, you can choose to redirect to:"

This is explained in the "Redirection" section of our documentation here:

Tweak Settings

Also, normally if you change the hostname in the WebHost Manager, or even from the shell, in a VPS, the change will not take effect on reboot. To permanently change the hostname on a VPS, it must be done in the configuration on the hardware node. It sounds like you only made the change in the /etc/hosts file and network configuration in the VPS itself, and this would be why it reverted to the old value when the VPS was restarted.