Installing OpenKM 6.3 CE in "Pristine Tomcat"

Problems with installing OpenKM? No problemo, the solution is closer than you think.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
Wraith
Junior Boarder
Junior Boarder
Posts: 22
Joined: Fri Apr 03, 2015 1:45 pm

Installing OpenKM 6.3 CE in "Pristine Tomcat"

Post by Wraith »

Hi,

I'm currently "teaching" myself FreeBSD via installing and commissioning OpenKM v6.3 CE in a FreeBSD environment. I am interested in installing from scratch rather than the OKMInstaller download to facilitate using the package manager to keep packages current.
  • Can I use the "Installing on a pristine Tomcat" guides for OpenKM 6.4 and 7.1 for the 6.3 CE version?
  • The guides for 6.4 differ from 7.1 with regards to the version of Tomcat; Tomcat 7 recommended for v6.4 and v8.5 for version 7.1. Am I correction in my presumption that 7.1 should be followed as it aligns with Tomcat 8.5?;
  • If Tomcat v8.5 is correct [as per OpenKM 7.1], is the link to Tomcat-7.0.61.zip [under OpenKM 7.1 guide] for the configured files still correct?
  • If it is correct, then the link no longer appears to work. A 404 error is provided when attempting to download this file. Is there a more upto date link?
Thanks in advance
OS: FreeBSD 12.2 [Installed within a FreeNAS 12.0-U4 jail]
OpenKM: 6.3.11 CE
Java: OpenJDK8 [v1.8.0_282]
Database: MariaDB Server/Client v10.5
Tomcat: v8.5.24 [from OKMInstaller Package]
jllort
Moderator
Moderator
Posts: 11573
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Installing OpenKM 6.3 CE in "Pristine Tomcat"

Post by jllort »

You can find the tomcat bundle for CE is here https://sourceforge.net/projects/openkm/files/common/

I ignore what is the advantage will have installing openkm without the installer, at least may have a lot of problems that the wizard solve automatically for you. Take this section of the documentation as a guide to understanding the steps must be done from your side https://docs.openkm.com/kcenter/view/ok ... ebian.html

I do not follow about 6.4 and 7. If you share some link maybe I understanding better.
Wraith
Junior Boarder
Junior Boarder
Posts: 22
Joined: Fri Apr 03, 2015 1:45 pm

Re: Installing OpenKM 6.3 CE in "Pristine Tomcat"

Post by Wraith »

Hi @jllort,

Thanks for the links, will check the files out.

I have downloaded the OKMInstaller.jar file and been able to get OpenKM running, using the link to Debian provided and making some changes to the tomcat script to run with the FreeBSD OS. Installing within a "pristine" Tomcat environment is more of a personal project for myself :)

With regards to the "...6.4 and 7.1..." version of OpenKM and queries around Tomcat references and links.

The section "Installing on a pristine Tomcat" for OpenKM 6.4 [https://docs.openkm.com/kcenter/view/ok ... omcat.html] states "At this moment, Tomcat 7 is the preferred option because Tomcat 8 support it still in beta." A link to Tomcat 7.0.61 is a couple paragraphs below.

The section "Installing on a pristine Tomcat" for OpenKM 7.1 [ https://docs.openkm.com/kcenter/view/okm-7.1/ ] states "At this moment, Tomcat 8.5 is the preferred option because Tomcat 9 support it still in beta." However the link to Tomcat 7.0.61 exists. I would expect a link to Tomcat 8.5.xx.

Also the link to 7.0.61 at both the above url's [http://download.openkm.com/okm/Tomcat-7.0.61.zip] doesn't work. Suggest the link needs to be updated to https://sourceforge.net/projects/openkm ... p/download
OS: FreeBSD 12.2 [Installed within a FreeNAS 12.0-U4 jail]
OpenKM: 6.3.11 CE
Java: OpenJDK8 [v1.8.0_282]
Database: MariaDB Server/Client v10.5
Tomcat: v8.5.24 [from OKMInstaller Package]
jllort
Moderator
Moderator
Posts: 11573
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Installing OpenKM 6.3 CE in "Pristine Tomcat"

Post by jllort »

I have updated both documentation sections. However, in the case of CE you should use always the SourceForge link.
I have created CE page section for it purpose https://docs.openkm.com/kcenter/view/ok ... omcat.html
Wraith
Junior Boarder
Junior Boarder
Posts: 22
Joined: Fri Apr 03, 2015 1:45 pm

Re: Installing OpenKM 6.3 CE in "Pristine Tomcat"

Post by Wraith »

Hi @jllort,

I'm slowly working through the above.

For the installation of OpenKM 6.3 - CE, within pristine Apache, under section "Installing OpenKM", the documentation states
With Tomcat stopped copy the OpenKM.war file into TOMCAT_HOME \webapps
$ cp OpenKM.war $TOMCAT_HOME/webapps
I am unable to locate OpenKM.war within either the tomcat 8.5.24 or 8.5.34 zip files on sourceforge. Are they to be downloaded from somewhere else?

Thanks in advance
OS: FreeBSD 12.2 [Installed within a FreeNAS 12.0-U4 jail]
OpenKM: 6.3.11 CE
Java: OpenJDK8 [v1.8.0_282]
Database: MariaDB Server/Client v10.5
Tomcat: v8.5.24 [from OKMInstaller Package]
jllort
Moderator
Moderator
Posts: 11573
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Installing OpenKM 6.3 CE in "Pristine Tomcat"

Post by jllort »

Can download from github https://github.com/openkm/document-mana ... m/releases ( we moved to github 1-2 years ago and in sourceforge will find the old versions of the code and the large common files like tomcat )
igaid
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: Tue May 25, 2021 12:43 pm

Re: Installing OpenKM 6.3 CE in "Pristine Tomcat"

Post by igaid »

I folowed the instructions and after the command:
sudo ./inxi -F

got the follow:

Code: Select all

String found where operator expected at ./inxi line 26706, near "$speed_key = ""
	(Missing semicolon on previous line?)
String found where operator expected at ./inxi line 26706, near "$speed = ""
	(Missing semicolon on previous line?)
String found where operator expected at ./inxi line 26706, near "$cpu_string = ""
	(Missing semicolon on previous line?)
String found where operator expected at ./inxi line 26706, near "$speed = ""
	(Missing semicolon on previous line?)
String found where operator expected at ./inxi line 26706, near "my $percent = ' (' . sprintf(""
	(Missing semicolon on previous line?)
Number found where operator expected at ./inxi line 26706, near "%.1"
	(Missing operator before 1?)
Bareword found where operator expected at ./inxi line 26706, near "1f"
	(Missing operator before f?)
String found where operator expected at ./inxi line 26706, near "$disk_string = ""
	(Missing semicolon on previous line?)
Variable "$size" is not imported at ./inxi line 26706.
Scalar found where operator expected at ./inxi line 26706, near "$size$percent"
	(Missing operator before $percent?)
String found where operator expected at ./inxi line 26706, near "$disk_string = ""
	(Missing semicolon on previous line?)
Variable "$size" is not imported at ./inxi line 26706.
String found where operator expected at ./inxi line 26706, near "# print join('; ', @cpu), ""
Global symbol "@cpu" requires explicit package name (did you forget to declare "my @cpu"?) at ./inxi line 26706.
syntax error at ./inxi line 26706, near "-)"
Global symbol "@cpu" requires explicit package name (did you forget to declare "my @cpu"?) at ./inxi line 26706.
Global symbol "@cpu" requires explicit package name (did you forget to declare "my @cpu"?) at ./inxi line 26706.
Global symbol "@cpu" requires explicit package name (did you forget to declare "my @cpu"?) at ./inxi line 26706.
Global symbol "@cpu" requires explicit package name (did you forget to declare "my @cpu"?) at ./inxi line 26706.
Global symbol "$size" requires explicit package name (did you forget to declare "my $size"?) at ./inxi line 26706.
Global symbol "$percent" requires explicit package name (did you forget to declare "my $percent"?) at ./inxi line 26706.
Global symbol "$used" requires explicit package name (did you forget to declare "my $used"?) at ./inxi line 26706.
Global symbol "$size" requires explicit package name (did you forget to declare "my $size"?) at ./inxi line 26706.
./inxi has too many errors.
Is it problem or can continue the installation?
jllort
Moderator
Moderator
Posts: 11573
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Installing OpenKM 6.3 CE in "Pristine Tomcat"

Post by jllort »

Can continue, inxi is a script to get information about the OS. nothing else.
Post Reply