OpenMRS Installation Windows

  Download and install tomcat Apache Tomcat 6.0.16 on your machine.  Download EasyEclipse Server Java. To configure Eclipse, start it up, then select Window->Preferences and configure Tomcat as follows:   In the Tomcat pane, select "Version 6.x" and set "Tomcat home" to the apache-tomcat-6.0.16 directory from the previous step.   In the Tomcat Manager pane, set the "ManagerApp username" to "tcmanager" (no quotes) and "ManagerApp password" to abcd1234. Click on "Add to tomcat-users.xml."   Unfortunately, uploading a web app (like OpenMRS) to the tomcat server from within Eclipse does not seem to work. In this configuration step, we have set up Tomcat itself to allow you to upload the web app from the Tomcat Manager web app; for that, you must have a Tomcat user with the right permissions, which is what we did in step 2. Now start Tomcat by clicking on the fourth button from the left in the Eclipse toolbar. </li>  Install OpenMRS from the OpenMRS Subversion repository. Do this by creating a new Subversion project. Use http://svn.openmrs.org</tt> as the server and navigate to openmrs/trunk</tt>. Build the WAR (web app archive) file by right-clicking on build.xml</tt> and selecting Run As->Ant Build</tt>. This will build the web app but not install it on the Tomcat server. </li>

Configure the OpenMRS runtime properties as follows:   Using a text editor, create a runtime configuration file named OPENMRS-runtime.properties</li>  Add the following lines to openmrs-runtime.properties</tt>: connection.username=openmrsuser connection.password=tryopenmrs connection.url=jdbc:mysql://storage1.cs.trincoll.edu:3306/openmrs?autoReconnect=true </li>  Now you must create a system variable that directs the OpenMRS application to the runtime configuration file  Right-click on the My Computer icon (typically on the desktop or under the Start menu) and select "properties"</li>  Under the "Advanced" tab, click the "Environment Variables" button</li>  You should see two sections: one for user variables and another for system variables</li>  Click the "New" button within the System Variables section (near the bottom) Variable name: OPENMRS_RUNTIME_PROPERTIES_FILE Variable value: C:\path\to\your\OPENMRS-runtime.properties (note: you will need to specify the path to the runtime configuration file you created earlier) </li> </ol> </li> Reboot (you must reboot for the new system variable to be available to all programs) </li>

What this step does is to tell the web app (once you finally access it) where the database is located and what (MySQL) username and password to use to access it. We won't actually use the database for this exercise, but OpenMRS will not run without this being properly configured. </li> </ol> <li> Install the web app into Tomcat: <ol> <li>Open a web browser and point it to http://localhost:8080/manager/html. You will be prompted for a user name and password; enter <tt>tcmanager</tt> and <tt>abcd1234</tt>.</li> <li>Navigate to the bottom of the Manager page to "Select WAR file to upload." Browse to <tt>openmrs/dist/openmrs.war</tt> in your Eclipse workspace.</li> <li>Click on "Deploy."</li> </ol> </li>

<li> See if all has worked properly by pointing your browser at http://localhost:8080/openmrs. You should get the OpenMRS login screen; you can log in with Username <tt>admin</tt> and Password <tt>test</tt>. </li>