SOLVED: Configure OpenKM to work on existing web server
PostPosted:Thu Feb 20, 2020 2:05 am
by Kildorian
I have a CentOS8 server that is running Apache and hosting three different web sites, two HTML and one wordpress. I was able to install openkm and am able to access it on the default port. I am going to use openkm as a replacement for a SharePoint site and want to be able to the site from the outside. I need to know what I need to add to my current httpd.conf to access the site over port 80 or 443 and if I need to change the openkm config to use port 80 or 443 and how to do so. I found this document:
https://docs.openkm.com/kcenter/view/ok ... proxy.html but not sure if that is what I need to do.
Thank you.
Re: Configure OpenKM to work on existing web server
PostPosted:Sun Feb 23, 2020 10:53 am
by jllort
OpenKM use tomcat, the default tomcat ports are 8005, 8080 and 8009, but you can change with other like is described here
https://docs.openkm.com/kcenter/view/ok ... -port.html
If your OpenKM is shared in Internet then a good practice is binding port 8080 only to localhost and configure apache proxy to working behing. In this documentation section we try to explain
https://docs.openkm.com/kcenter/view/ok ... proxy.html
When you got port 80 configured and working with OpenKM it's time to configure SSL, here there's some explanation about it
https://docs.openkm.com/kcenter/view/ok ... proxy.html a quick way to get apache2 working with SSL is letscrypt
https://letsencrypt.org/ ( it is really quick and easy to configure ( I suggest use cerbot
https://certbot.eff.org/instructions )
Re: Configure OpenKM to work on existing web server
PostPosted:Sun Feb 23, 2020 6:24 pm
by Kildorian
Thank you for the reply. I'll look through the documents and see what I can figure out.
SOLVED: Re: Configure OpenKM to work on existing web server
PostPosted:Tue Feb 25, 2020 7:36 pm
by Kildorian
Here is what I needed to do in order to get this to work properly. I followed the link JLLORT provided in setting up the reverse proxy. One of the steps was to create an openkkm.conf file in /etc/http/conf.d. After I restarted the httpd service and tried to go to the openkm site, I received an error stating that the service was not available. After making sure I had everything correct I still received the error. I finally got so frustrated that I made a copy of my /etc/httpd/conf/httpd.conf file and added the information that is in the openkm.conf file. I restarted the httpd service and I was able to access the login page and my other sites are still working properly.
Re: SOLVED: Configure OpenKM to work on existing web server
PostPosted:Wed Feb 26, 2020 8:20 am
by jllort
Service httpd comes with centos and redhat, the documentation section for these OS are
https://docs.openkm.com/kcenter/view/ok ... tandCentOS
Anyway if you get it running I suggest do not touch much.