Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Download and install Okapi Longhorn as shown here: http://okapiframework.org/wiki/index.php?title=Longhorn#Download_and_Installation.

...

Code Block
languagebash
mkdir /var/lib/tomcat8/Okapi-Longhorn-Files
chown tomcat:tomcattomcat8 /var/lib/tomcat8/Okapi-Longhorn-Files
chmod 700 /var/lib/tomcat9tomcat8/work/Okapi-Longhorn-FilessystemctlFiles
systemctl restart tomcat8

You can find out, if "tomcat8

...

" is really your tomcat user, if you execute the following command, when tomcat is running:

Code Block
languagebash
ps auxwww | grep -v grep | grep tomcat

ouble

...

shooting, if your Okapi installation is not working

Problems with Okapi working direcory

...

Translate5 Configuration of the Okapi Plug-In

...

To do both, execute the following code block. Be careful to change the contents to which "value" will be set in the sql-statements to your needs, if the plug-ins you want to activate or the URL for Okapi is different on your installation. Best look for the existing value of your plug-in configuration and simply add the Okapi Bootstrap-Class "editor_Plugins_Okapi_Init".

Code Block
languagesql
titleExample SQL of the translate5 Okapi configuration
linenumberstrue
-- activate plug-in (be careful and watch, if the active plug-ins in the SQL match your needs)
UPDATE `Zf_configuration` SET `value` = ["editor_Plugins_NoMissingTargetTerminology_Bootstrap","editor_Plugins_Transit_Bootstrap","editor_Plugins_TermTagger_Bootstrap","editor_Plugins_ChangeLog_Init","editor_Plugins_Okapi_Init"] WHERE `name` = 'runtimeOptions.plugins.active';

-- configure Okapi URL
UPDATE `Zf_configuration` SET `value` = "http://localhost:8080/okapi-longhorn/" WHERE `name` = 'runtimeOptions.plugins.Okapi.api.url';

...