Documente Academic
Documente Profesional
Documente Cultură
Table of Contents How to use this guide Editing this document Saving as PDF Step 1 - Install Firefox Step 2 - Install Java Step 3 - Install Tomcat Step 4 - Install MySQL Step 5 - Deploy OpenMRS Step 6 - Configuration Step 1 Step 2 Step 3 Step 4 Step 5 Step 6 Notes Step 7 - Start Using OpenMRS
Saving as PDF
To save this guide as a PDF, select "Export to PDF" in the Tools menu, located in the upper right of the wiki's display.
Windows
1. Download the latest stable release of Firefox and run installation program 2. Accept the license agreement 3. Select Standard or Custom installation to install to c:\Program Files\Mozilla Firefox
1.
c. ii. jre-[version name]-windows-x64.exe for a 64-bit Windows x64 system 2. Run the install program (e.g., jre-6u25-windows-i586.exe) 3. Accept the license agreement and default installation directories
Ubuntu 10.10
Note: In Ubuntu 10.10, the canonical repositories are disabled by default. Enable these by editing /etc/apt/sources.list 1. Open the Terminal by clicking on the Applications menu and going to Accessories > Terminal 2. Make a backup of the sources.list file: 3. Open the file in an editor: a. Use the arrow keys to move through the file b. Use CTRL-N to move to the next line c. Use CTRL-P to move to the previous line 4. Uncomment the following lines by deleting the "#" and space in front of each line: a. Commented lines: b. Uncommented lines: c. If you can't find the two lines in the file then add the two uncommented lines to the end of the file 5. Save the file by pressing CTRL-O (the letter O) and hitting the Enter key 6. Exit the editor by pressing CTRL-X 7. Update repositories in the Terminal: 8. Install Java: 9. 10. 11. 12. Type "Y" and the Enter key when it says on the screen "Do you wish to continue [Y/n]?" Accept the first license agreement by pressing the Tab key followed by the Enter key Accept the second license agreement by pressing the Tab key to highlight "Yes" then the Enter key Verify that Java is installed: a. You should see something like this: b. If you see OpenJDK then run the following command with two dashes before config:
Select the user/lib/jvm/java-6-sun/jre/bin/java option Use the java -version command to verify the changes
Java must be installed before installing Apache Tomcat. There are issues with versions of Tomcat later than 6.0.29 that have yet to be resolved. Installation through a package manager is not recommended as this will likely install a later version
Windows
1. Download Tomcat 6.0.29. You can use the exe version, which installs Tomcat as a service or the zip archive. 2. If using the exe version, run the installer accepting the default settings: a. Accept the license agreement b. Accept component defaults (Tomcat, Start Menu Items, Documentation) c. Accept default destination folder: C:\Program Files\Apache Software Foundation\Tomcat 6 d. Accept HTTP/1.1 Connector Port (8080) e. Set Administrator login (admin/password) f. Accept path for the JRE (ie. C:\Program Files\Java\jre1.5.0_06) or navigate to the actual path and select g. Select "Install Tomcat" 3. Open the Tomcat users file (e.g. C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\tomcat-users.xml) in a text editor. Create a new user called admin with the roles admin, manager and manager-gui. This file should be protected so you will need to open it as Administrator (right-click on your text editor and select "Run as administrator") 4. (Optional) If you've installed Tomcat as a service, you can configure it to start automatically when the computer boots: a. Start > Settings > Control Panel > Administrative Tools > Services b. Right Click "Apache Tomcat" > Properties > Set "Startup Type" to Automatic
As a Debian package
This is not recommended as it may install a version of Tomcat which is not compatible with OpenMRS. 1. Run the following command from a terminal 2. Open the Tomcat users file (e.g. /etc/tomcat/tomcat-users.xml) in a text editor. Create a new user called admin with the roles admin, manager and manager-gui. This file should be protected so you will need to open it as root (e.g. sudo nano /etc/tomcat/tomcat-users.xml) 3. Turn off tomcat security flag in /etc/init.d/tomcat6 file: Find "TOMCAT6_SECURITY=yes" and change it to "TOMCAT6_SECURITY=no" 4. Create OpenMRS application data directory and make it writable by Tomcat: (so that the runtime properties file can be written by the webapp during initial startup)
5. Jetty is now officially installed and can be run as a service. Now you can run Jetty by using the following command. First put the openmrs.war in to /usr/share/jetty/webapps/ so Jetty will know to run the war.
Step 6 - Configuration
Unable to render {include} Couldn't find a page to include called: Step 6 - Configuring OpenMRS
2. a. you did not specify a username and password, try the default username admin and password test (both are in lowercase). b. Alternatively, while Tomcat is running you can start OpenMRS by entering http://localhost:8080/openmrs/login.htm (assuming 8080 is your port number for Tomcat; insert the appropriate port number if it is not 8080).