OpenDocMan

Welcome to OpenDocMan. Before getting started, we need some information on the database. You will need to know the following items before proceeding.

  1. Database name
  2. Database username
  3. Database password
  4. Database host
  5. Table prefix (if you want to run more than one OpenDocMan in a single database)

You will also need to create a directory (your "dataDir") where you plan to store your uploaded files on the server. This directory must be writable by the web server but preferably NOT inside your public html folder. The main reason for locating the folder outside or your web document root is so that people won't be able to guess at a URL to directly access your files, bypassing the access restrictions that OpenDocMan puts in place.

You can update your web server configuration file to prevent visitors from browsing your files directly.

<Directory "/path/to/your/documents/dataDir">
  Deny all
</Directory>

Or For newer version of apache

<Directory "/path/to/your/documents/dataDir">
  Deny From all
</Directory>

Or don't put your dataDir directory in the web space at all.
Or in a .htaccess file in the dataDir directory:

order allow,deny
deny from all

If for any reason this automatic file creation doesn't work, don't worry. All this does is fill in the database information to a configuration file. You may also simply open config-sample.php in a text editor, fill in your information, and save it as config.php and import the database.sql file into your database.

Let’s go!