...
- Rename the war file to something new (like openmrs2)
- Deploy that war file and go to http://localhost:8080/openmrs2
- Run through the database setup in the initialization wizard that comes up
...
Application Data Directory Folder
The application data dir is where openmrs stores temporary data, the omods loaded, and the runtime properties. This is ~/.OpenMRS on linux based machines and /home/user/Application Data/OpenMRS for windows based ones. You can change the location of the application data directory several ways. See the Application Data Directory page for details and methods.
Modules Folder
By default the modules folder is stored in a folder named "modules" in the application data directory. If you change the app dir directory for each instance you don't need to change the modules folder. However, if you use the same app dir for each instance (not advised for production, ok for testing), you should change the folder where modules are stored using a the global property : module_repository_folder. You can use either a relative path (relative to the app dir) or an absolute path.
If you don't change either of those, data stored on the file system (like which modules to load at startup, cached data exports, etc.) will be shared by both instances.
For standalone deployments
TBDYou can easily have two or more standalone openmrs installations on server. All data is kept within that unzipped folder. When the standalone starts up, it will keep trying new ports for mysql and tomcat until one is found that is available.
For developers using Jetty
...