Config.php - datadir - 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: Config.php - datadir (/thread-156.html) |
Re: Config.php - datadir - Stephen - 03-02-2010 Try removing the trailing backslash from the dataDir setting. Re: Config.php - datadir - lkoumis - 03-02-2010 Yes., Thank you it did it. you don't need the railing backlash for the datadir in windows..... Re: Config.php - datadir - lkoumis - 03-02-2010 SOLVED. THanks to a tip, the trailing baclash is not needed for the datadir setting for the windows platform. I don't know about linux. Re: Config.php - datadir - Stephen - 03-02-2010 I need to fix the comment in the config file then. I think it says to put one for windows. Re: Config.php - datadir - randallw - 04-06-2010 I have a similar issue. When I have our datadir rem'd out, I get to the login screen, but I cannot get past the admin login. I displays There is a problem with your dataDir. Check to make sure it exists and is writeable When i un rem the datadir. I get a Page can not be displayed. Not sure where to go with this. I have made sure permissions are all ok. I can browse to the folder in IE just fine?? // Uncomment this one for Windows - Don't forget the trailing backslash "\" 'dataDir' => 'C:\Web\Apache22\htdocs\opendocman\data\', // Uncomment this one for Linux - Don't forget the trailing slash "/" 'dataDir' => '/var/www/document_repository/', Re: Config.php - datadir - randallw - 04-06-2010 Found the issue. Needed to have a config_local.php file with the following information in it. Make sure that you have you whacks going the correct way <?php /* config_local.php - OpenDocMan local config file Copyright © 2007 Stephen Lawrence, Jon Miner 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 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 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. */ // Local Settings // // Copy config_local.php.sample to config_local.php, then add // all your local settings. It will not be overwritten by future // OpenDocMan installations. // // See config.php for possible CONFIG variables, and their default values //Example: $GLOBALS['database'] = 'opendocman'; // Enter the name of the database here $GLOBALS['user'] = 'root'; // Enter the username for the database $GLOBALS['pass'] = 'password'; // Enter the password for the username $GLOBALS['hostname'] = 'localhost'; // Enter the hostname that is serving the database $GLOBALS['CONFIG']['base_url'] = 'http://www.yoursite.com/opendocman'; $GLOBALS['CONFIG']['dataDir'] = 'C:/Web/Apache22/htdocs/opendocman/data/'; //$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'); ?> Re: Config.php - datadir - Stephen - 04-07-2010 I think the issue is actually the path format for Windows. In the current SVN version I have made some changes to the comments regarding the dataDir on Windows. Using forward slashes instead of backslashes I think is what works best. Re: Config.php - datadir - outshine - 04-16-2010 I was having the same problem, but in my case it was because the web server was not providing me the correct path to the web site's root directory. I ended up doing this, which worked fine: 'dataDir' => $_SERVER['DOCUMENT_ROOT'] . '/documents/data', $_SERVER['DOCUMENT_ROOT'] is PHP and returns the directory path to your web site's root directory. Re: Config.php - datadir - saketh - 07-08-2010 Hi, i had a problem when i login into the opendocman...... when ni login into the opendocman it showing the below error Deprecated: Function ereg() is deprecated in C:\wamp\www\opendocman-1.2.5.7\functions.php on line 964 There is a problem with your dataDir. Check to make sure it exists and is writeable PLZ TELL ME THE SOLUTION Thank You........ Re: Config.php - datadir - Stephen - 07-08-2010 This issue is fixed in our latest SVN. |