How to use the DMS - Help File needed

Additional information for installing and using DMS with Moodle

by Paul Daniels -
Number of replies: 3

Pretty much the same as the original install instruction
except some additional information included for not-so-techie admins smile

=============================================================================
        UPGRADE INSTRUCTIONS (Must do each time new users are Added!!)
=============================================================================

If you have already installed DMS in the past, it is possible that you need
to upgrade your database when installing newer versions. If you fail to do
this, you may encounter strange problems while working with DMS.

Upgrading your database is extremely simple, though. Just point your browser
to setup.php, as you did when first installing DMS, and everything will be
done automatically for you.

=============================================================================
        INSTALLATION INSTRUCTIONS
=============================================================================

-----------------------------------------------------------------------------
1. Install Moodle somewhere
-----------------------------------------------------------------------------

You can try this an existing Moodle installation. DMS will not touch or
modify your files or database in any way that interferes with Moodle, and
if you wish to uninstall it, that process is also very simple and clean.
So it's actually preferable to try this on an existing install, because
it's good to be able to login as multiple users for testing purposes.

-----------------------------------------------------------------------------
2. Download DMS from the CVS at
http://moodle.org/download.php/modules/dms.zip
-----------------------------------------------------------------------------

Follow this link: http://moodle.org/download.php/modules/dms.zip

and unzip the package:

-----------------------------------------------------------------------------
3. Copy DMS into your Moodle installation
-----------------------------------------------------------------------------

Create a folder named dms just inside the folder that Moodle is installed.
e.g. /moodle/dms

Copy the all of the folders and files inside the /mydms folder (which is inside the dms folder
that you just downloaded and unzipped) into the new dms folder that you just created inside the
your moodle directory.

BE CAREFUL: Copy everything from the /dms/mydms/ folder to moodle/dms/ !!!!
Notice that the name changes. You don't need to copy the other folders
inside the downloaded dms folder, (for example, db/).

You will also need to copy dms.php (inside /dms/lang/en/) to /moodle/lang/en/
to load the language.

That's all! You don't need anything else!

-----------------------------------------------------------------------------
4. Create the DMS file storage directory
-----------------------------------------------------------------------------

Create a /moodle/dmsfiles/ directory, and make it world writable with
        chmod 777 /moodle/dmsfiles/

If for some reason you cannot create this directory under /moodle/, you can
create it somewhere else. In fact, it is NOT REQUIRED that this directory be
visible by your web server with http. This is intentional, for better
security.

Anyhow, if you make the DMS file storage directory somewhere else, you will
need to edit /moodle/dms/inc/inc.Settings.php and change line 47. It's pretty
straightforward.

-----------------------------------------------------------------------------
5. Go to your Moodle site and login (preferably as admin)
-----------------------------------------------------------------------------

-----------------------------------------------------------------------------
6. Point your browser to
http://www.yoursite.com/your_moodle_directory/dms/setup.php
-----------------------------------------------------------------------------

-----------------------------------------------------------------------------
7. Other useful information
-----------------------------------------------------------------------------


Don't forget to point your browser to
http://www.yoursite.com/your_moodle_directory/dms/setup.php
each time new users are added in order for them to show up in the DMS folder list.

To make a link for students to use the DMS function, create a link on
the class page like:
http://www.yoursite.com/your_moodle_directory/dms/

If the student is logged in, they will be able to access their own folder only.

=============================================================================
        UNINSTALLING
=============================================================================

If something goes wrong and for some reason DMS fouls up its database tables
and cannot work correctly anymore, or if you want to uninstall DMS, do the
following:

1. Remove the /moodle/dms/ directory and all its contents

2. Remove the /moodle/dmsfiles/ directory and all its contents

3. Drop all tables from your database named mdl_dms_.......


=============================================================================
        RESETTING THE DMS CONTENTS
=============================================================================

To clear the DMS database and start with a fresh install AFTER you have
installed it for the first time:

1. Remove all files in /moodls/dmsfiles/

2. Drop all tables from your database named mdl_dms_.......

3. Point your browser to setup.php

In reply to Paul Daniels

Re: Additional information for installing and using DMS with Moodle

by shane luffman -
hi , can you help me, do you know the settings i would use on a windows server for this part of the DMS inc.config.php file? $this->_ADOdbPath = $CFG->dirroot.'/lib/adodb/' thanks shane ;
In reply to Paul Daniels

Re: Additional information for installing and using DMS with Moodle

by shane luffman -
hi , can you help me, do you know the settings i would use on a windows server for this part of the DMS inc.config.php file? $this->_ADOdbPath = $CFG->dirroot.'/lib/adodb/' the reason for this is i get this error meesage when i try and call http://server/moodle/dms/mydms/setup.php Warning: main(../config.php): failed to open stream: No such file or directory in E:\moodle2005\dms\mydms\interface\moodle\dms.class.php on line 4 Fatal error: main(): Failed opening required '../config.php' (include_path='.;c:\php4\pear') in E:\moodle2005\dms\mydms\interface\moodle\dms.class.php on line 4 thanks shane ;
In reply to shane luffman

Re: Additional information for installing and using DMS with Moodle

by John Papaioannou -
Shane, that setting is just fine. The error in your case is that you took the

/contrib/dms/mydms/

directory and copied its contents to

yoursite.org/moodle/dms/mydms/

while the correct way is to put them in

yoursite.org/moodle/dms/

If you fix that it should be fine. Cheers!

Jon