Community Support for OpenDocMan (Deprecated)
Problem on fresh install - Printable Version

+- Community Support for OpenDocMan (Deprecated) (https://forum.opendocman.com)
+-- Forum: OpenDocMan Community Discussion (https://forum.opendocman.com/forum-5.html)
+--- Forum: OpenDocMan Support - Community Based (https://forum.opendocman.com/forum-6.html)
+--- Thread: Problem on fresh install (/thread-107.html)



Problem on fresh install - Stephen - 01-13-2010

youngdick
2006-01-05 08:33:31 PST
Hi,

I have just installed opendocman-1.2p3.

My system runs

Fedora core 4
mysql
Apache

I managed to log in as admin. I also managed to create Users, Departments and Categories but I could not operate with files !!!! I cannot add a file


When logging as admin, I get a "No files found" message in the middle of the page and this log:

[Thu Jan 05 16:48:29 2006] [error] [client 200.3.1.31] (13)Permission denied: exec of '/var/www/opendocman-1.2p3/images/logo.gif' failed, referer: <!-- m --><a class="postlink" href="http://200.3.1.31/opendocman-1.2/index.php">http://200.3.1.31/opendocman-1.2/index.php</a><!-- m -->
[Thu Jan 05 16:48:29 2006] [error] [client 200.3.1.31] Premature end of script headers: logo.gif, referer: <!-- m --><a class="postlink" href="http://200.3.1.31/opendocman-1.2/index.php">http://200.3.1.31/opendocman-1.2/index.php</a><!-- m -->
[Thu Jan 05 16:48:29 2006] [error] [client 200.3.1.31] File does not exist: /var/www/html/favicon.ico
ymatch: can't get local yp domain: Local domain name not set
[Thu Jan 05 16:48:35 2006] [error] [client 200.3.1.31] (13)Permission denied: exec of '/var/www/opendocman-1.2p3/images/companylogo.gif' failed, referer: <!-- m --><a class="postlink" href="http://200.3.1.31/opendocman-1.2/out.php">http://200.3.1.31/opendocman-1.2/out.php</a><!-- m -->
[Thu Jan 05 16:48:35 2006] [error] [client 200.3.1.31] Premature end of script headers: companylogo.gif, referer: <!-- m --><a class="postlink" href="http://200.3.1.31/opendocman-1.2/out.php">http://200.3.1.31/opendocman-1.2/out.php</a><!-- m -->
[Thu Jan 05 16:48:35 2006] [error] [client 200.3.1.31] (13)Permission denied: exec of '/var/www/opendocman-1.2p3/images/check-in.png' failed, referer: <!-- m --><a class="postlink" href="http://200.3.1.31/opendocman-1.2/out.php">http://200.3.1.31/opendocman-1.2/out.php</a><!-- m -->
[Thu Jan 05 16:48:35 2006] [error] [client 200.3.1.31] Premature end of script headers: check-in.png, referer: <!-- m --><a class="postlink" href="http://200.3.1.31/opendocman-1.2/out.php">http://200.3.1.31/opendocman-1.2/out.php</a><!-- m -->
[Thu Jan 05 16:48:35 2006] [error] [client 200.3.1.31] (13)Permission denied: exec of '/var/www/opendocman-1.2p3/images/search.png' failed, referer: <!-- m --><a class="postlink" href="http://200.3.1.31/opendocman-1.2/out.php">http://200.3.1.31/opendocman-1.2/out.php</a><!-- m -->
[Thu Jan 05 16:48:35 2006] [error] [client 200.3.1.31] (13)Permission denied: exec of '/var/www/opendocman-1.2p3/images/add.png' failed, referer: <!-- m --><a class="postlink" href="http://200.3.1.31/opendocman-1.2/out.php">http://200.3.1.31/opendocman-1.2/out.php</a><!-- m -->
[Thu Jan 05 16:48:35 2006] [error] [client 200.3.1.31] Premature end of script headers: add.png, referer: <!-- m --><a class="postlink" href="http://200.3.1.31/opendocman-1.2/out.php">http://200.3.1.31/opendocman-1.2/out.php</a><!-- m -->
[Thu Jan 05 16:48:35 2006] [error] [client 200.3.1.31] (13)Permission denied: exec of '/var/www/opendocman-1.2p3/images/setting.png' failed, referer: <!-- m --><a class="postlink" href="http://200.3.1.31/opendocman-1.2/out.php">http://200.3.1.31/opendocman-1.2/out.php</a><!-- m -->
[Thu Jan 05 16:48:35 2006] [error] [client 200.3.1.31] Premature end of script headers: setting.png, referer: <!-- m --><a class="postlink" href="http://200.3.1.31/opendocman-1.2/out.php">http://200.3.1.31/opendocman-1.2/out.php</a><!-- m -->
[Thu Jan 05 16:48:35 2006] [error] [client 200.3.1.31] (13)Permission denied: exec of '/var/www/opendocman-1.2p3/images/logout.png' failed, referer: <!-- m --><a class="postlink" href="http://200.3.1.31/opendocman-1.2/out.php">http://200.3.1.31/opendocman-1.2/out.php</a><!-- m -->
[Thu Jan 05 16:48:35 2006] [error] [client 200.3.1.31] Premature end of script headers: logout.png, referer: <!-- m --><a class="postlink" href="http://200.3.1.31/opendocman-1.2/out.php">http://200.3.1.31/opendocman-1.2/out.php</a><!-- m -->
[Thu Jan 05 16:48:35 2006] [error] [client 200.3.1.31] (8)Exec format error: exec of '/var/www/opendocman-1.2p3/linkcontrol.css' failed, referer: <!-- m --><a class="postlink" href="http://200.3.1.31/opendocman-1.2/out.php">http://200.3.1.31/opendocman-1.2/out.php</a><!-- m -->
[Thu Jan 05 16:48:35 2006] [error] [client 200.3.1.31] Premature end of script headers: linkcontrol.css, referer: <!-- m --><a class="postlink" href="http://200.3.1.31/opendocman-1.2/out.php">http://200.3.1.31/opendocman-1.2/out.php</a><!-- m -->
[Thu Jan 05 16:48:35 2006] [error] [client 200.3.1.31] Premature end of script headers: search.png, referer: <!-- m --><a class="postlink" href="http://200.3.1.31/opendocman-1.2/out.php">http://200.3.1.31/opendocman-1.2/out.php</a><!-- m -->
[Thu Jan 05 16:48:35 2006] [error] [client 200.3.1.31] File does not exist: /var/www/html/favicon.ico


Here is an extract of my config.php file:

/ config.php - useful variables/functions

// Database Settings - Change these to match your database
$GLOBALS['database'] = 'opendocman'; // Enter the name of the database here
$GLOBALS['user'] = 'opendocman'; // Enter the username for the database
$GLOBALS['pass'] = 'opendocman'; // Enter the password for the username
$GLOBALS['hostname'] = 'localhost'; // Enter the hostname that is serving the database

global $CONFIG; $CONFIG = array(
'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://200.3.1.31/opendocman-1.2',


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

// This is the program version for window title (This should be set to the current version of the program)
'current_version' => ' OpenDocMan v1.2p3',

// 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!
// Don't forget the trailing "/"
//'dataDir' => '/home/sysop/documents/',
'dataDir' => '/var/www/opendocman-1.2p3/mesDocuments',

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

// should we display the signup link?
'allow_signup' => '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');



Any idea ?


With many thanks


Anthony



logart
2006-01-05 08:50:31 PST
The first problem is your permissions.....

[Thu Jan 05 16:48:29 2006] [error] [client 200.3.1.31] (13)Permission denied: exec of '/var/www/opendocman-1.2p3/images/logo.gif' failed, referer: <!-- m --><a class="postlink" href="http://200.3.1.31/opendocman-1.2/index.php">http://200.3.1.31/opendocman-1.2/index.php</a><!-- m -->

Check to make sure the folders have exec permissions and that the files are actually readable by apache.

Secondly, you should put your dataDir somewhere else, outside of the document_root (like in /usr/local/document_repository ). Otherwise, users can access the documents without logging in.


youngdick
2006-01-09 10:14:25 PST
Thank you for having answered so quickly !
I will try to fix that tomorrow morning !

May I ask you another question ?

What is the meaning of "hostname that is serving the database " ? How can I find the right value of $GLOBALS['hostname'] corresponding to my system ?



With many thanks

Anthony


logart
2006-01-09 10:17:58 PST
That is just the hostname of your MySQL server (localhost maybe?)


youngdick
2006-01-10 01:21:38 PST
Good morning,

I have modified access rights to the images/ directory and files it contains. Now I have:

images/ drwxrwxrwx
images/logo.gif -rwxrwxr-x

When logging as admin, I still get a "No files found" message in the middle of the page and this log:


[Tue Jan 10 09:56:16 2006] [error] [client 200.3.1.31] (8)Exec format error: exec of '/var/www/opendocman-1.2p3/images/logo.gif' failed, referer: <!-- m --><a class="postlink" href="http://200.3.1.31/opendocman-1.2/index.php">http://200.3.1.31/opendocman-1.2/index.php</a><!-- m -->
[Tue Jan 10 09:56:16 2006] [error] [client 200.3.1.31] Premature end of script headers: logo.gif, referer: <!-- m --><a class="postlink" href="http://200.3.1.31/opendocman-1.2/index.php">http://200.3.1.31/opendocman-1.2/index.php</a><!-- m -->


Do you know wht is the problem with the format of my logo.gif file ?


What is the favicon.ico file ?


[Tue Jan 10 09:56:16 2006] [error] [client 200.3.1.31] File does not exist: /var/www/html/favicon.ico
ymatch: can't get local yp domain: Local domain name not set



With many thanks


Anthony

jonathanwminer
2006-02-14 16:54:35 PST
1) It appears that you might have used ScriptAlias to define the path to OpenDocMan? I think that will cause Apache to try to execute any file in the directory. Try using "Alias" instead; here is the contents of my /etc/http/conf.d/opendocman.conf

Alias /opendocman /tools/opendocman-1.2p3

replace /tools/... with your pathname.

2) favicon.ico is the little icon that gets displayed to the left of the URL in the your browser's location bar.

3) The ypmatch error is a result of one of my patches, which should be cleaned up, but is harmless