RedHat and Oracle Linux issues
OpenKM not starting as a service automatically
If in your OS the OpenKM Service does not start automatically. This maybe because the security system (SELinux) blocks services that are not recognized as native.
To enable it, we must perform the following steps:
- Create the openkm.service file within the path (/usr/lib/systemd/system/openkm. Service)
$ nano /usr/lib/systemd/system/openkm. Service
[Unit]
Description=OpenKM daemon
[Service]
Type=simple
ExecStart=/home/openkm/tomcat-9.0.76/bin/startup.sh
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
* ExecStart contains a sample value; the correct path is where the startup.sh file location.
- Refresh, enable the Service, and activate the Service.
$ systemctl daemon-reload
$ systemctl enable openkm.service
$ systemctl start openkm.service
With the following command, we can know the status of the Service:
$ systemctl status openkm.service
- Modify the SElinux configuration file:
$ nano /etc/sysconfig/selinux
- Finally, restart the server
$ reboot
ImageMagick
If your OS does not come with the ImageMagick package in the repositories, can install a fork called GraphicsMagick from the EPEL repository:
$ dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y
$ dnf install GraphicsMagick
Keep in mind that there is no "convert" utility but a general "gm" executable that can be used this way:
$ gm convert <params>
More info at GraphicsMagick converts documentation.