Setting Up OpenDocMan

1. Make sure your system has httpd, php 5 and mysql 5. If not, then install it.

On Ubuntu:
# sudo apt-get install apache2
# sudo apt-get install mysql-client mysql-server php5 php5-mysql
# sudo /etc/init.d/apache2 restart

On Fedora:
# sudo yum -y install httpd php mysql mysql-server php-mysql

2. Create a MySQL database for OpenDocMan.

For example, we create database called docdb with user named auser and a password of apassword

# mysql -u root -p
mysql> CREATE DATABASE docdb;
mysql> GRANT ALL PRIVILEGES ON testing.* TO auser@localhost IDENTIFIED BY 'apassword';

3. Create a folder as a bank of your documents (OpenDocMan called it as ‘dataDir’). The folder should be outside of you public html and set its mode as read/write for other users

# mkdir /var/docs_repo
# chmod -R 757 /var/docs_repo

4. Create a folder in you public html folder, and set its mode as read/write for other users. This folder will be a subdirectory in your web.

For example, commonly main public html folder is in /var/www/, so type this:
# sudo mkdir /var/www/docrepo
# sudo mkdir /var/www/docrepo/templates_c
# chmod -R 777 /var/www/docrepo

Later you can access the directory by using url: <yourwebdotcom>/docrepo

5. Download OpenDocMan source, and extract to the folder you just create, i.e. /var/www/docrepo

6. Now, open your browser and go to url:  <yourwebdotcom>/docrepo

7. Follow the instruction in the webpage to setup and install.

8. If the installation is successful, the next things are to remove the install folder and change the mode of docrepo folder for security. So, back to terminal and :

# rm -rf /var/www/docrepo/install
# chmod -R 755 /var/www/docrepo

9. Done !



One thought on “Setting Up OpenDocMan

  1. Pingback: Setting Up OpenDocMan | is moving to

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s