Physical Address
Metro Manila, Philippines
Physical Address
Metro Manila, Philippines
Organizations often implement a Document Management System (DMS) to establish control over their document processes, ensuring trust in the accuracy and currency of the information being used. A robust DMS reduces risks associated with outdated or incorrect information, such as sending the wrong contract or design documents.
Understanding the capabilities and limitations of a DMS is crucial to setting realistic expectations. Success also depends on overcoming implementation challenges, gaining buy-in from stakeholders, and fostering an appreciation for the system’s role in organizational efficiency.
The Philippine Linux Windows Users Group (PH-LWUG) developed this document to guide the implementation of OpenKM on Ubuntu. The aim is to provide effective strategies for integrating open-source and proprietary software to achieve optimal results and flexibility.
This guideline is freely available for individuals and organizations, though attribution is appreciated.
This guide assists individuals, organizations, professionals, non-professionals, and hobbyists in implementing and configuring a Document Management System using OpenKM on Ubuntu. The focus is on OpenKM version 6.2 and its installation on the latest Ubuntu version.
This document is intended for IT professionals, system administrators, and others planning to implement a DMS.
Ubuntu is a popular, open-source Linux distribution based on Debian, known for its ease of use and robust community support. It is widely used for desktop, server, and cloud computing environments.
OpenKM is a free document management system with a web interface for managing files. Built using Java, it includes features like content repositories, Lucene indexing, and jBPM workflows.
A DMS is a computer system for tracking and storing electronic documents. It is often part of Enterprise Content Management (ECM) systems and supports tasks like document imaging, workflow, and records management.
Proper document control ensures compliance and prevents business risks. Key practices include:
Ubuntu minimal installation provides the basic packages required to run a Linux operating system. Follow these steps:
sudo apt update && sudo apt upgrade -y
sudo apt install mariadb-server -y
sudo mysql_secure_installation
Follow the prompts to set the root password and secure the server.
sudo mysql -u root -p
CREATE DATABASE openkm;
CREATE USER 'openkm_user'@'localhost' IDENTIFIED BY 'secure_password';
GRANT ALL PRIVILEGES ON openkm.* TO 'openkm_user'@'localhost';
FLUSH PRIVILEGES;
EXIT;
sudo nano /opt/openkm/tomcat/conf/OpenKM.cfg
Add the following settings:
hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
hibernate.connection.driver_class=com.mysql.cj.jdbc.Driver
hibernate.connection.url=jdbc:mysql://localhost:3306/openkm
hibernate.connection.username=openkm_user
hibernate.connection.password=secure_password
wget https://sourceforge.net/projects/openkm/files/latest/download -O openkm.tar.gz
tar -xzvf openkm.tar.gz -C /opt/
chmod +x /opt/openkm-*.run
sudo /opt/openkm-*.run
Install the required dependencies:
sudo apt install default-jdk unzip tesseract-ocr libreoffice imagemagick ffmpeg -y
Edit the OpenKM configuration file:
sudo nano /opt/openkm/tomcat/conf/OpenKM.cfg
Add relevant settings for OCR, OpenOffice, and other integrations.
Modify server.xml
to allow network access and start OpenKM:
sudo nano /opt/openkm/tomcat/conf/server.xml
Update the `<Connector>` section for external access.
sudo /opt/openkm/tomcat/bin/startup.sh
Access OpenKM via http://<server-ip>:8080/OpenKM
using the default admin credentials.
sudo apt update && sudo apt install nginx -y
sudo systemctl start nginx && sudo systemctl enable nginx
sudo nano /etc/nginx/sites-available/openkm
server {
listen 80;
server_name your-domain.com;
location / {
proxy_pass http://localhost:8080/OpenKM;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
sudo ln -s /etc/nginx/sites-available/openkm /etc/nginx/sites-enabled/
sudo nginx -t
sudo systemctl restart nginx
Access OpenKM through the domain name configured in NGINX: http://your-domain.com
.
sudo apt update && sudo apt install clamav clamav-daemon -y
sudo freshclam
sudo nano /etc/clamav/clamd.conf
sudo systemctl enable clamav-daemon && sudo systemctl start clamav-daemon
sudo nano /opt/openkm/tomcat/conf/OpenKM.cfg
system.virus.scan.enabled=true
system.virus.scan.command=clamscan --stdout --no-summary
sudo /opt/openkm/tomcat/bin/shutdown.sh sudo /opt/openkm/tomcat/bin/startup.sh