Download Java from Oracle site
http://www.oracle.com/technetwork/java/javase/downloads/java-archive-javase8-2177648.html
extract the tar file
tar -zxvf jdk-7*
Install java
mv jdk1* /usr/local/ ln -s /usr/local/jdk1* /usr/local/java
After this step type java in terminal if you get "command not found error" then execute following commands based on the location you specified in above step.
#To update java command alternatives
update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/bin/java" 1
#To update javac command alternatives
update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/bin/javac" 1
#To udate javaws command alternatives
update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/local/java/bin/javaws" 1
2) Install Tomcat
Download tomcat latest tar file for linux and do the following steps
Extract the tar file.
tar -zxvf apache-tomcat-*
Move the extracted files to the specific location.
mv apache-tomcat-* /usr/local/
Create Symlink for tomcat files/
ln -s /usr/local/apache-tomcat-7.0.52 /usr/local/tomcat
Add user for the tomcat
/usr/sbin/adduser tomcat
3) Install Mysql
apt-get install mysql-server-5.5
An intermediate GUI appears to provide mysql root user password. Please provide the password and repeat the same password again in the next screen.
4) Download and deploy OpenMRS
http://openmrs.org/download/
download platform war file in the above visited page.
5) Create the properties file in
/usr/local/apache-tomcat-7.0.52/bin/openmrs-runtime.properties
The contents of the properties file should be like
### Database connection properties
connection.username=root
connection.password=root
6) Copy the openmrs.war file into tomcat webapps folder.
cp openmrs.war /usr/local/tomcat/webapps/
7) open the browser and go to your local openmrs application.
http://localhost:8080/openmrs
or
http://{Ubuntu-serverip}:8080/openmrs.
8) The initial setup wizard will appear to create the database schema and to load the sample data to the openmrs application. Follow the instructions.
No comments:
Post a Comment