01-04-2011, 09:42 AM
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).
You could also check your web server error log to see if there is something else causing an issue.
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.