OpenDocMan is a free open source document management system comes with web-base management, which is written purely in php. It is licensed under GPL.
It provides centralized storage of documents and files, restrict access to files, automated work flow, smart storage using metadata fields for all files stored in system, quick search and browse feature with sorting filter,  manage and track history, with support of wide range files types. It requires little resources for operations and can run on low hardware.

OpenDocMan comes with automated installation feature and upgrade. Installation:
Enough we discuss the features of OpenDocMan, let’s install this and see this master piece in action :).



Before installing OpenDocMan, you must have working LAMP (Linux, Apache and PHP)Stack.

Please refer to our post

How to install LAMP (Linux, Apache, Mysql and PHP) on Centos 7/RHEL 7 Step by Step Guide.

After installing LAMP Stack, Create one database and user for OpenDocMan. Use the following procedure to create database called odmdb and user odmuser (you can use name whatever you like).

Open terminal and login into MySQL as root user using below command:

# mysql -u root -p

Enter Providing password then create database and user as mentioned above:

Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 24
Server version: 5.5.37-MariaDB MariaDB Server

Copyright (c) 2000, 2014, Oracle, Monty Program Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]create database odmdb;
Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]GRANT ALL ON odmdb.* TO odmuser@localhost IDENTIFIED BY 'BroExperts';
Query OK, 0 rows affected (0.02 sec)

MariaDB [(none)]flush privileges;
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]show databases;
| Database           |
| information_schema |
| mysql              |
| odmdb              |
| performance_schema |
4 rows in set (0.00 sec)
MariaDB [(none)]SELECT User FROM mysql.user;
| User    |
| root    |
| root    |
| odmuser |
| root    |
4 rows in set (0.00 sec)

Disable selinux.

# vi /etc/selinux/config

Find  SELINUXTYPE parameter and change it as follows


Save & Exit.

Download OpenDocMan

Click here to Download latest OpenDocMan tar file.
I copied link and downloading directly on my linux box using wget.
First change directory to root folder of Apache webserver.

# cd /var/www/html
# wget http://citylan.dl.sourceforge.net/project/opendocman/opendocman/

Untar OpenDocman package

#  tar -xzf opendocman-

rename OpenDocMan extracted directory “opendocman-“ into odm.

# mv opendocman- odm

Now make one directory which will contain our data files.

# mkdir /web_docs

Set the proper permission and ownership of the data directory, to make sure it will have write access for web server.

# chown apache:apache /web_docs
# chmod -R ugo+w /web_docs

Make sure templates_c directory permissions, it should be writable.

# chmod -R ugo+w /var/www/html/odm/templates_c/

Web Installer

Now time to install and setup database connectivity using web installer.
Open browser and point your server ip till OpenDocMan directory.

Below screen will be appear, click on create a configuration file.

Use Web Installer to Create Configuration File
Use Web Installer to Create Configuration File

On next screen go to bottom of page and click on let’s go button see below screen shot.

Getting Starting
Getting Starting

Now provide MySQL databasae name, database user, password, DB Server name, administration password for OpenDocMan and Base Url.

See in marked filed I have added all information which I have created above

Configuration Details
Configuration Details

After providing correct information click submit button.
Next screen may come up with warning like:

“Sorry, but I can’t write the config.php file. You can create the config.php manually and paste the following text into it.”
Don’t be worry. We will create config.php file manually and paste all the given code in that file.

# vi /vaw/www/html/odm/config.php

Save & Exit.
Go back to your web installer and click on “Proceed to install”
The next screen is asking to choice New install or upgrade your previous version.
Its clear we are installing OpenDocMan first time, so we will go with the first option starting with “New installation ”
See below screen shot.


The next screen is happy screen:).


We have successfully installed OpenDocMan.
Don’t forget to remove install directory.

# rm –fr /var/www/html/odm/install

Now open up browser and navigate main URL again.
then enter username “admin” and password “BroExperts”
Below screen will be appear after login.


We have covered basic setup and installation of OpenDocMan, To learn more about usage of OpenDocMan please refer to official website.


Similar Posts