Wiki Spaces


Get Help from Others

Q&A: Ask OpenMRS
Discussion: OpenMRS Talk
Real-Time: IRC Chat | Slack


Page tree
Skip to end of metadata
Go to start of metadata

The Application Data Directory is the folder that OpenMRS uses for external storage of data. Most data is stored in the database but some large files and other things that are not appropriate for a relational database.

Default location

As of version 1.8, openmrs will put this directory in the current running directory. If you are using tomcat this is /opt/tomcathome/.openmrs or C:\Program Files\Apache\Tomcat 6.0\OpenMRS

In version 1.7 and earlier, the default location is the home directory of the user running tomcat. ~/yourusername/.openmrs or C:\Docs and Settings\yourusername\Application Data\OpenMRS

Manually setting the location

You have several options if you want to have control over where this directory is:

  1. Add a key to your runtime properties file:
    • application_data_directory=/my/custom/location/
  2. Modify the openmrs.war file: /WEB-INF/web.xml file
    • Change the context parameter "" to something. (use a trailing slash)
  3. Modify the conf/Catalina/openmrs/context.xml file in your tomcat (or other server) config:

For Developers

There are several convenience methods to help developers findSee the methods:



OpenmrsUtil.getDirectoryInApplicationDataDirectory(String folderName)
  • No labels