PDA

View Full Version : Storing Application Data - Which Directory?


geekstarpilot
06-18-2006, 03:27 AM
I am a relative newbie to Linux and I want to install a TomCat based document management application on my VPS.

I have installed the TomCat server and the tomcat .war file ok.

The one thing I would like to know is where in the typical linux directory tree would by the most appropriate place for me to a create a new directory for the storage of documents.

I have done some research on the typical linux directory structure and I think the most appropriate place would be a directory under the /var/ part of the directory hierarchy.

Is this correct?

Thanks in advance to all who reply.

Regards,
GeekStarPilot.

grummund
06-19-2006, 03:07 PM
The one thing I would like to know is where in the typical linux directory tree would by the most appropriate place for me to a create a new directory for the storage of documents.

I have done some research on the typical linux directory structure and I think the most appropriate place would be a directory under the /var/ part of the directory hierarchy.

Is this correct?

/usr - Secondary hierarchy for user shareable, read-only data.
/var - Variable files, such as logs, databases, websites, and temporary e-mail files.

You might find either of these links useful:
http://www.pathname.com/fhs/2.2/
http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard

Hope that helps... :)