Community Support for OpenDocMan (Deprecated)

Full Version: Installation Problem *Newbie* Please Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Dear OpenDocMan Community.

After 1 week of trying to get it to work, sad to say i am still not able to do get it to work. I need some help as i am not sure if i am doing it the right way.

1) i have download the OpenDocMan and uploaded it to my linux webhosting site under the folder "public_html".
2) i have unzip the file and renamed it as OpenDocMan as bper below.

[attachment=1]

3) i then created the database on mysql as show below with the user and the database.

[attachment=2]

4) i then edit the confih.php an add the following information taken from the creation of the database as per below.

// Eliminate multiple inclusion of config.php
if( !defined('config') )
{
define('config', 'true', false);

// config.php - useful variables/functions

// Database Settings
$GLOBALS['database'] = 'mymalnet_dms'; // Enter the name of the database here
$GLOBALS['user'] = 'mymalnet_dmsa'; // Enter the username for the database
$GLOBALS['pass'] = 'qwerty'; // Enter the password for the username
$GLOBALS['hostname'] = 'my1mal.net'; // Enter the hostname that is serving the database

global $CONFIG; $CONFIG = array(
/**
* Prefix to append to each table name in the database (ex. odm_ would make the tables
* named "odm_users", "odm_data" etc. Leave this set to the default if you want to keep
* it the way it was. If you do change this to a different value, make sure it is either
* a clean-install, or you manually go through and re-name the database tables to match.
* @DEFAULT 'odm_'
* @ARG String
*/
'db_prefix' => 'odm_',

'debug' => '0',

// This setting is for a demo installation, where random people will be
// all loggging in as the same username/password like 'demo/demo'. This will
// keep users from removing files, users, etc.
'demo' => 'false',

// This is useful if you have a web-based kerberos authenticatio site
// Set to either kerbauth or mysql
//'authen' => 'kerbauth',
'authen' => 'mysql',

// Set the number of files that show up on each page
'page_limit' => '15',

// Set the number of page links that show up on each page
'num_page_limit' => '10',

// Set the maximum displayable length of text field
'displayable_len' => '15',

// Set this to the url of the site
// No need for trailing "/" here
'base_url' => 'http://my1mal.net/opendocman',

// This is the browser window title
'title' => 'Document Repository',

// The email address of the administrator of this site
'site_mail' => <!-- e --><a href="mailto:'[email protected]">'[email protected]</a><!-- e -->',

//This variable sets the root username. The root user will be able to access
//all files and have authority for everything.
'root_username' => 'admin',

// location of file repository
// This should ideally be outside the Web server root.
// Make sure the server has permissions to read/write files to this folder!

// Uncomment this one for WINDOWS - Don't forget the trailing backslash "/"
//'dataDir' => 'c:/document_repository/',

// Uncomment this one for LINUX - Don't forget the trailing slash "/"
'dataDir' => '/var/www/document_repository/',

// Set the maximum file upload size
'max_filesize' => '5000000',

//This var sets the amount of days until each file needs to be revised,
//assuming that there are 30 days in a month for all months.
'revision_expiration' => '90',

/* Choose an action option when a file is found to be expired
The first two options also result in sending email to reviewer
(1) Remove from file list until renewed
(2) Show in file list but non-checkoutable
(3) Send email to reviewer only
(4) Do Nothing
*/
'file_expired_action' => '1',

//Authorization control: On or Off (case sensitive)
//If set On, every document added or checked back must be reviewed by an admin
//before it can go public. To disable this review queue, set this variable to Off.
//When set to Off, all newly added or checked back in documents will immediately go public
'authorization' => 'On',

//Secure URL control: On or Off (case sensitive)
//When set to 'On', all urls will be secured
//When set to 'Off', all urls are normal and readable
'secureurl' => 'On',

// should we display document listings in the normal way or in a tree view
// this must be 'On' to change the display
'treeview' => 'Off',

// should we display the signup link?
'allow_signup' => 'On',

// should we allow users to reset their forgotten password?
'allow_password_reset' => 'Off',

// Attempt NIS password lookups?
'try_nis' => 'Off',

// Which theme to use?
'theme' => 'default'
);

// List of allowed file types
// Pay attention to the "Last Message:" in the status bar if your file is being rejected
// because of its file type. It should display the proper MIME type there, and you can
// then add that string to this list to allow it
$GLOBALS['allowedFileTypes'] = array('image/gif', 'text/html', 'text/plain', 'application/pdf', 'application/x-pdf', 'application/x-lyx', 'application/msword', 'image/jpeg', 'image/pjpeg', 'image/png', 'application/msexcel', 'application/msaccess', 'text/richtxt', 'application/mspowerpoint', 'application/octet-stream', 'application/x-zip-compressed','image/tiff','image/tif','application/vnd.ms-powerpoint','application/vnd.ms-excel');

// <----- No need to edit below here ---->
//
// Encourage end-users to put local configuration in config_local.php, so
// we can overwrite (config.php) in the future
// without danger of overwriting site specific information.
if (is_file('config_local.php'))
{
include('config_local.php');
}
elseif (is_file('../config_local.php'))
{
include('../config_local.php');
}


// Set the revision directory. (relative to $dataDir)
$CONFIG['revisionDir'] = $GLOBALS['CONFIG']['dataDir'] . 'revisionDir/';

// Set the revision directory. (relative to $dataDir)
$CONFIG['archiveDir'] = $GLOBALS['CONFIG']['dataDir'] . 'archiveDir/';

$GLOBALS['connection'] = mysql_connect($GLOBALS['hostname'], $GLOBALS['user'], $GLOBALS['pass']) or die ("Unable to connect: " . mysql_error());
$db = mysql_select_db($GLOBALS['database'], $GLOBALS['connection']);

// All functions and includes are in functions.php
include_once('functions.php');

$_GET = sanitizeme($_GET);
$_REQUEST = sanitizeme($_REQUEST);
$_POST = sanitizeme($_POST);
$_SERVER = sanitizeme($_SERVER);
}
?>

5) when i save the config.php and run the command <!-- m --><a class="postlink" href="http://my1mal.net/opendocman">http://my1mal.net/opendocman</a><!-- m --> i get the following scren shoot below.

[attachment=0]

Please can some please help me to get it working.

Thanks
That is an error message from your web server. You need to check the web server error log.
it looks to me like your host name is incorrect in the configuration.

$GLOBALS['hostname'] = 'my1mal.net'; // Enter the hostname that is serving the database

Instead of my1mal.net...ask your hosting company what is the correct hostname for your account. Hope this helps.