Product:
Search Type:

How do I change HSPcomplete system hostname?

Article ID: 2057 
Last Review: Jul,27 2007
APPLIES TO:
  • HSPcomplete 3.3.x

RESOLUTION

To change HSPcomplete system hostname please use the following instructions.
  • Make sure that new hostname is resolving properly to IP address assigned to HSPcomplete VE
  • Set new hostname for HSPcomplete VE (VE ID #99 in the example below) using the following commands on Virtuozzo hardware node:
    # vzctl stop 99
    # vzctl set 99 --hostname $NEWHOSTNAME --save
    # vzctl start 99

    $NEWHOSTNAME variable in the command above should be replaced with new hostname to be assigned to the HSPcomplete system and 99 should be replaced with real HSPcomplete VE ID
  • Execute the following command inside HSPcomplete VE:
    # hspc-config --reset-hostname

  • Check HSPcomplete Store URL on Top > Commerce Director > Store Manager > Configure Store screen in HSPcomplete Provider Control Center and update it in case it is required using Edit button
  • In case SSL is configured for Provider Control Center it is required also to update SSL certificate on Top > Configuration Director > Miscellaneous settings > SSL Setup screen to avoid warning message regarding SSL certificate mismatch

Additional information

  • For HSPcomplete systems running on SUSE Enterprise Linux please make sure you have hostname set in FQDN form.
    Example:
    # hostname
    if hostname is myhost.mydomain.com, then all is correct.
    if hostname is just myhost, then execute
    # hostname myhost.mydomain.com

  • Changing hostname for running VE with running MySQL server could cause issues with MySQL server behavior as MySQL server initscripts/tools depend on `hostname` output and when VE hostname is changed in runtime MySQL server might be unable to find some runtime files (pid file just for example), which were created before hostname was changed.
Keywords: HSPcomplete hostname hspc-config

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
*Please type the code you can see.
* - required fields