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:if hostname is myhost.mydomain.com, then all is correct.# hostname
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