Community Support for OpenDocMan (Deprecated)
New installation dataDir trouble - 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: New installation dataDir trouble (/thread-356.html)



New installation dataDir trouble - elimone - 01-02-2011

Hi,
I've a problem with a new installation of OpenDocMan. I've installed on a MacOs with MAMP in the HTDOCS folder (htdocs/opendocman/) and in this folders I've added the dataDir folder (htdocs/opendocman/datafile). In the config.php i've changed the line with /var/www/opendocman/datadir/ but OpenDocMan give me an error telling me to check if the folder exist. Can anyone help me?


Re: New installation dataDir trouble - shinju - 01-03-2011

Hai El,

Try to add folder in htdocs/opendocman/datadir/ then chmod the folder using 777


Re: New installation dataDir trouble - elimone - 01-03-2011

But the folder alredy exist... Confusedhock:


Re: New installation dataDir trouble - leonehorsesmaine - 01-03-2011

hi, ive got exactly the same problem, can upload the files through the different departments etc, but when i want to view it with the search by department/category/author etc it says file not found. please let me know if you find a solution....


Re: New installation dataDir trouble - Stephen - 01-04-2011

Typically the any dataDir issues are related to three issues:

1) The folder that is assigned to $dataDir is not present

2) The folder does not have the correct owner/group settings (This folder should be owned by the web server user)

3) The folder does not have write/execute permissions

Here is some simple code to tell you more info about your issue. Temporarily place this at the bottom of your config.php file (backup your curent file just in case).

Code:
if(!is_dir($GLOBALS['CONFIG']['dataDir']))
{
    echo  'dataDir does not appear to exist. check your config.php settings to make sure it is set to the path of the dataDir<br />';
}
elseif(!is_writable($GLOBALS['CONFIG']['dataDir']))
{
    echo 'It appears your dataDir exists but is not writeable. Check the ownership and permissions of that folder. <br />';
}
else
{
echo 'dataDir appears ok';
}

You could also check your web server error log to see if there is something else causing an issue.