Community Support for OpenDocMan (Deprecated)
Missing 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: Missing dataDir (/thread-351.html)



Missing dataDir - blackerutuf - 12-13-2010

It would seem that the dataDir is missing from my files on new install, can some direct me to a download please?


Re: Missing dataDir - tompafford - 01-11-2011

I also have this same problem. I installed opendocman but seem to have a problem with DataDir. I think that my problem will be solve if someone could tell me what I need to add in config_local for this line of code:

//$GLOBALS['CONFIG']['dataDir'] = 'var/www/document_repository'

I have tried everything that I can think of but nothing seems to work.

Any suggestion?

Thanks

Tom


Re: Missing dataDir - Stephen - 01-12-2011

I just updated the wiki page:

<!-- m --><a class="postlink" href="http://www.opendocman.com/dokuwiki/doku.php/getting_started_with_opendocman?&#minute_install">http://www.opendocman.com/dokuwiki/doku ... te_install</a><!-- m -->

Here is the applicable part:
....
3) Create a folder outside of your public html folder that will contain your data files. This will be your "dataDir" folder in the config. For example, `mkdir /home/joeuser/document_repository/`
4) Make sure the permissions and ownership of the data folder will allow for the web server to write to it. For example, `chown apache:apache /home/joeuser/document_repository/`
....


Re: Missing dataDir - bhambooster - 02-07-2011

I also have a problem.

Because I have this domain pointing to a folder within my public_html file, I have tried to set up the same folder (document_repository) in dozens of places within my site - to no avail.

When I click on the installation, I get the following message...
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) in /hermes/bosweb/web151/b1519/sl.johntwigg/public_html/booster/opendocman/config.php on line 168
Unable to connect: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

I wonder if the problem is my syntax? Here's what i set...

//$GLOBALS['CONFIG']['dataDir'] = '/document_repository/';

whihc i understand points to the folder: <root>/<file folder>/opendocman/document_repository

any ideas?

thanks,
john


Re: Missing dataDir - Stephen - 02-07-2011

@bhambooster,

Your error message is either saying that MySQL is not running, or it is running but configured incorrectly.


Re: Missing dataDir - bhambooster - 02-07-2011

Hi Stephen,

Yes, thanks. I actually had two problems, not one - I fixed the database issue and that's working fine, but am stumped by the datadir - I seem to have the same problem as Sansugoi last month. "There is a problem with your dataDir. Check to make sure it exists and is writeable"

I believe the two pertinent parts of the file are:

'base_url' => 'http://www.boosterusa.com/opendocman/',

'dataDir' => 'www.boosterusa.com/document_repository/',

Should I post the whole file?

Thanks
John


Re: Missing dataDir - Stephen - 02-07-2011

Quote:'dataDir' => 'www.boosterusa.com/document_repository/',

I am sure that is incorrect. This dataDir setting has nothing to do with the base_url. It is the absolute file path to a folder that you create that is writeable by the web server and which will contain the files that are uploaded to opendocman.

Not knowing your server environment I cannot tell you exactly what the value should be, but here is an example:

'dataDir' => '/home/boosterusa/document_repository/',

or

'dataDir' => '/var/www/document_repository/',

Adding "www.boosterusa.com/document_repository" is not going to work as this is not an absolute path.

If you read the error message it say "Make sure it exists and is writeable". So you should do that.