En cours

php script intstalation

I have the opendocman script installed on my web site located on the [url removed, login to view] server.

I need to get it working. Have debugged the database set up but get the can not find data dir or can not write to data dir error from the following code.

Folders are set to 755.

I have ben able to get everthing loaded in my web space to run this including setting up the MySql database. Problem is that I get an error just as I sign in that states it can not find the folder for the docs or it can not write to the folder.

I have the folder permisions set to 755

Here is the configuration set up code that is causing me problems


// 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' => '[url removed, login to view] public_html / opendocman / [url removed, login to view]',

// This is the browser window title

'title' => ' Document Management',

// This is the program version for window title (This should be set to the current version of the program)

'current_version' => ' OpenDocMan [url removed, login to view]',

// The email address of the administrator of this site

'site_mail' => '',

//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!

// Don't forget the trailing "/"

'dataDir' => '/home/mysite/docs/ ' ,

// 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' => '365',

/* 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' => '3',

//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'


// 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');



// 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 [url removed, login to view]

include_once('[url removed, login to view]');



This is the end of the configuration script

Here is the code that is generating the error



[url removed, login to view] - main login form

Copyright (C) 2002, 2003, 2004 Stephen Lawrence

This program is free software; you can redistribute it and/or

modify it under the terms of the GNU General Public License

as published by the Free Software Foundation; either version 2

of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,

but WITHOUT ANY WARRANTY; without even the implied warranty of


GNU General Public License for more details.

You should have received a copy of the GNU General Public License

along with this program; if not, write to the Free Software

Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.


// Report all PHP errors (bitwise 63 may be used in PHP 3)

// includes


require('[url removed, login to view]');





echo "The username or password was invalid. Please try again.";



if(!is_dir($GLOBALS['CONFIG']['dataDir']) || !is_writeable($GLOBALS['CONFIG']['dataDir']))


echo "There is a problem with your dataDir. Check to make sure it exists and is writeable";



Compétences : Java, Linux, PHP, Script Install

en voir plus : problem datadir check sure exists writeable, opendocman problem datadir check sure exists writeable, opendocman unable connect, problem datadir opendocman, opendocman problem datadir, problem datadir, problem datadir check sure exists writeable opendocman, opendocman kerberos, opendocman max_filesize, opendocman error logging please try, problem datadir installing opendocman, is_dirglobals config datadir, datadir opendocman, opendocman datadir, your email address is invalid, x place com, working from home review, working from home options, web server script, web config php

Concernant l'employeur :
( 0 commentaires ) fairborn, United States

Nº du projet : #11153