Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

How to install OpenKM CentOS 7 for PROD Server

Note: If facing any issue during installation, Please follow online YouTube article.

Prerequisite-:
 Mariadb server must install
 Prepare tomcat with below jar file
Note: Java must install on your server

Download link-:
#cd /opt/
#wget
https://sourceforge.net/projects/openkm/files/common/OKMInstaller.jar

Procedure-:
 Part1

 systemctl status mariadb


 cat /etc/my.cnf
character-set-server = utf8
collation-server = utf8_bin
default-storage-engine = INNODB

++++ save and restart mariadb service

 systemctl restart mariadb


 Part 2

 cd /opt
 java -jar OKMInstaller.jar
Note: Fill below required information
Database [h2]: mariadb
Database host [localhost]:
Database name [okmdb]:
Database user [openkm]:
Database password [xYYQX5QvRCXs]:

Note: Note: Here is the concern that if you don't have internet access on your
server just prepare this tomcat on another server using above command and
copy via winscp on Production server
This activity will take some time, so wait till completed.

After completion it will provide some mysql query as mention on online


article.
o CREATE DATABASE okmdb DEFAULT CHARACTER SET utf8 DEFAULT
COLLATE utf8_bin;
o CREATE USER openkm@localhost IDENTIFIED BY ' xYYQX5QvRCXs ';
o GRANT ALL ON okmdb.* TO openkm@localhost WITH GRANT OPTION;

Run above query on Mariadb Server.


Now perform some changes as below mention-:

 cat /opt/tomcat/conf/server.xml

<Resource name="jdbc/OpenKMDS" auth="Container" type="javax.sql.DataSource"


maxActive="100" maxIdle="30" maxWait="10000" validationQuery="select 1"
username="openkm" password=" xYYQX5QvRCXs "
driverClassName="com.mysql.jdbc.Driver"

url="jdbc:mysql://localhost:3306/okmdb?autoReconnect=true&amp;useUnicode=true&am
p;characterEncoding=UTF8"/>

 vi /opt/tomcat/OpenKM.cfg
hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
hibernate.hbm2ddl=create

Now run the tomcat using default credentials for Openkm

User Name: okmAdmin


Password: admin

THANKU........ Please subscribe the channel and share your comment.

You might also like