Community Support for OpenDocMan (Deprecated)

Full Version: New installation dataDir trouble
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
Hai El,

Try to add folder in htdocs/opendocman/datadir/ then chmod the folder using 777
But the folder alredy exist... Confusedhock:
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....
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.