Locating the Configuration File

The optiSLang Web Service installation includes a default configuration file (config.ini). When the web service is installed, the file is placed in different directories, depending on which installer is used. The file locations are:

  • Combined installer (installed with optiSLang): installation_directory/web_service/config.ini

  • Standalone web service installer: installation_directory/config.ini

You can change the expected location of the configuration file by setting the environment variable CONFIG_FILE. This can be useful when optiSLang Web Service is installed within a directory the user has no write permissions to. For example, on Windows:

set CONFIG_FILE=C:\alternate\path\to\config.ini 
installation_directory\start_web_service.bat

When altering the config file location, the docroot path must be set absolutely. See Editing the Configuration File's Default Settings