This is an old revision of the document!


Can not determine installation root of LSWS when activating license

When activating a new license, it occurs the following error:

Back up current license files under /usr/local/lsws/conf/ … … saved current serial.no to /usr/local/lsws/conf/serial.no.backup.23163 Trying to switch to a new production license … … Saved serial number “xxxx-xxxx-xxxx-xxxx” to /usr/local/lsws/conf/serial.no … Serial number is available. … Contacting licensing server for license key … … failed to retrieve license key, please double check your serial number: Can't determine the Home of LiteSpeed Web Server, exit!. removed uploaded serial.no restored the original serial.no from /usr/local/lsws/conf/serial.no.backup.23163 ERROR Aborted!

Try re-registration or verification:

/usr/local/lsws/bin/lshttpd -r

or

/usr/local/lsws/bin/lshttpd -V

It returns the same error:

Can't determine the Home of LiteSpeed Web Server, exit!

Why it can not determine the home of LiteSpeed Web Server? Something wrong with the LSWS configuration file?

Upon further checking with /usr/local/lsws/conf/httpd_config.xml and it does not exist at all. The user has removed this important LSWS configuration file during the license key clean up process.

Reinstalling LSWS should fix the issue but it seems too dangerous to manually remove LSWS configuration file which may cause server down at any time and definitely something should be avoided.

  • Admin
  • Last modified: 2018/10/08 20:12
  • by Jackson Zhang