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 to /usr/local/lsws/conf/ Trying to switch to a new production license … … Saved serial number “xxxx-xxxx-xxxx-xxxx” to /usr/local/lsws/conf/ … 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 restored the original from /usr/local/lsws/conf/ ERROR Aborted!

Try re-registration or verification:

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


/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