Page 1 of 1

Configure Tomcat as service under Linux

PostPosted:Sat Sep 17, 2016 7:30 pm
by silverspr
HI, I'm using Ubuntu 16.04.1 LTS. I am following the instructions to start tomcat as a service found here:
https://wiki.openkm.com/index.php/Confi ... vice_linux

I'm sure my problem is obvious and simple to fix, but it is eluding me. I cannot get tomcat to start with the Tomcat_User=openkm as per the configuration instructions. Only my "username" as Tomcat_User with Tomcat_Home=/home/username/openkm/tomcat works. Created the openkm user as per instructions and added the openkm to the folder group permissions for Tomcat_Home and still can't start tomcat. What permissions does openkm user need?

thanks

Re: Configure Tomcat as service under Linux

PostPosted:Sat Sep 17, 2016 9:41 pm
by jllort
The idea is your create a user named openkm
Code: Select all
sudo adduser openkm
Then into openkm copy the tomcat bundle ( I suggest it rather community installation wizard from here https://www.openkm.com/en/download.html download Openkm-6.3.1-tomcat-bundle.zip and unzip into /home/openkm). Remember you must have java JDK 1.7 installed
Code: Select all
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
Then follow the wiki documentation and you should get it running.

If you want create a user with distinct name ( simply must modify it in tomcat script, nothing else ).

Apologies if the installation steps are not so clear in actual wiki we are still working in documentation, actually we have more than 60% finished and I hope before December we'll be able to finally release an acceptable 6.3 community documentation.

Re: Configure Tomcat as service under Linux

PostPosted:Sun Sep 18, 2016 2:27 pm
by silverspr
LOL ok thank you...so it was simple. This is currently how I have OpenKM set up with my username pointing to the install directory. For some reason the more I read the instructions I was convinced I needed to create a system user to start tomcat.
thanks again.