Go Back   CP Web Hosting - reseller hosting > CP Questions
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-20-2007, 05:36 AM
Senior Member
 
Join Date: May 2007
Posts: 345
Default Error while trying to access Control Panel by domain name

Hi,
I have just installed H-Sphere, I receive the following error while trying to access Control Panel by domain name:

Control Panel Error
You have entered invalid control panel location. Please enter your account login and password.


Plz. help
Reply With Quote
  #2 (permalink)  
Old 09-20-2007, 05:39 AM
Senior Member
 
Join Date: May 2007
Posts: 329
Default

Quote:
Originally Posted by mouse View Post
Hi,
I have just installed H-Sphere, I receive the following error while trying to access Control Panel by domain name:

Control Panel Error
You have entered invalid control panel location. Please enter your account login and password.


Plz. help

In this case, you need to change your hostname to your CP domain name instead of the IP address:

1. Log into your CP server as the cpanel user:
su - cpanel
2. Edit the hsphere.properties file:
vi ~cpanel/shiva/psoft_config/hsphere.properties
In the CP_HOST field, enter the domain name instead of the IP address.
3. Restart H-Sphere.
Reply With Quote
  #3 (permalink)  
Old 09-20-2007, 05:40 AM
Senior Member
 
Join Date: Apr 2007
Posts: 347
Default

For Changing Entire CP URL

Starting from version 2.4, Control Panel runs on the Tomcat servlet engine and therefore CP URL pathname configuration differs from that of JServ in prevous versions.

A typical H-Sphere control panel URL looks similar to
http://example.com:8080/psoft/servlet/psoft.hsphere.CP/
where:
example.com is the domain name,
psoft/servlet is the mount point,
psoft.hsphere.CP is the servlet name.


Login to CP server as the cpanel user:
su -
su - cpanel


Edit ~cpanel/shiva/psoft_config/hsphere.properties to change your servlet name and mount point:

# old settings -- commented out
# UPLOADER_URL = /psoft/servlet/psoft.hsphere.Uploader
# DOWNLOAD_URI = /psoft/servlet/psoft.hsphere.Downloader
# CP_URI = /psoft/servlet/psoft.hsphere.CP
# CLIENT_CP_URL = psoft.hsphere.CP

# new settings
UPLOADER_URL = /cp/servlet/hsphere.Uploader
DOWNLOAD_URI = /cp/servlet/hsphere.Downloader
CP_URI = /cp/servlet/hsphere.CP
CLIENT_CP_URL = hsphere.CP

Important: To avoid problems, please check that the same servlet name and mount point are set in all these parameters! CP_URI takes the precedence otherwise.

Logout from cpanel back to root and run the jakarta_servlet_upt.pl script to apply the new servlet name and mount point to the Tomcat configuration files and to the index page template ~cpanel/shiva/shiva-templates/index.html:

cd ~cpanel/shiva/psoft_config
./jakarta_servlet_upt.pl
The script replaces old servlet name and mount point in the following files:
~cpanel/hsphere/WEB-INF/web.xml
~cpanel/apache/etc/mod_jk.conf
~cpanel/jakarta/conf/server.xml
~cpanel/shiva/shiva-templates/index.html

Original configuration files are backed up:
~cpanel/hsphere/WEB-INF/web.xml.ORG
~cpanel/apache/etc/mod_jk.conf.ORG
~cpanel/jakarta/conf/server.xml.ORG
~cpanel/shiva/shiva-templates/index.html.ORG

Important: Don't forget to run this script after the H-Sphere update to apply your CP URL customization in the new version!

Restart H-Sphere
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 07:58 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0