Ir al contenido
Otras versiones

Cargando…

Installing on RedHat and CentOS

Esta página aún no está disponible en tu idioma.

Ensure you have enough disk space to install OpenKM and store the document repository:

Terminal window
$ df -h

Once verified, create the “openkm” user:

Terminal window
$ adduser openkm

If Java 8 is still not installed, please install the following:

Terminal window
$ yum install java-1.8.0-openjdk

If you have any other preference for a database, we suggest installing MariaDB:

Terminal window
$ yum install mariadb-server

After that, enable and start the MariaDB service:

Terminal window
$ systemctl enable mariadb
$ systemctl start mariadb

You can choose between installing OpenKM at “/home/openkm” or “/opt.” In any case, go to the selected path and download the installer.

It’s a text-based installer, so you must execute it from the console as root. This is because it needs to install package dependencies and configure OpenKM as a service:

Terminal window
$ java -jar OKMInstaller.jar

Remember to check Using the installer in case of using a proxy to access the Internet.

When the installation process has finished, please ensure that Java 8 is the default:

Terminal window
$ java -version

Otherwise, set it as the default:

Terminal window
$ update-alternatives --config java

Once verified, start the required services:

Terminal window
$ systemctl start xvfb openkm

You can verify the status of these services by running:

Terminal window
$ systemctl status xvfb openkm

More info at:

Red Hat does not allow connections to port 8080 by default, so you need to open this port in the firewall:

Terminal window
$ firewall-cmd --zone=public --permanent --add-port=8080/tcp
$ firewall-cmd --reload

To verify the installation was successful, please use this checklist:

  • Verify that the default Java is Java 8.
  • Verify you can access OpenKM from another computer.
  • Try to log in with the default okmAdmin / admin user and password.
  • Upload a Word document and check if the thumbnail is generated and the preview is shown.

If you have a problem with the thumbnail generation, please verify that you have the ImageMagick package installed and that the “convert” application works. 

Download a sample image from Sample PNG Image and try to generate a thumbnail:

Terminal window
$ wget https://www.sample-videos.com/img/Sample-png-image-1mb.png
$ convert -thumbnail '80x80>' -background 'white' -flatten Sample-png-image-1mb.png sample-output.png