Wiki Spaces

Documentation
Projects
Resources

Get Help from Others

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

[Home]

Child pages
  • Setting of OpenMRS development environment and getting started up
Skip to end of metadata
Go to start of metadata

This page is too good for setting up the OpenMRS "Step by Step Installation for Developers". I am writing most of the steps alike but in my language...

  1. Install Java 1.7(preferrably):

Although installation of 1.6 also works. Google it you will get it easily. To check whether you have java installed on your system check the version with the command "javac -version" it should give somewhat "javac 1.7.0_51" if it gives the output as "javac 1.6.*_**" then also it's fine.

     2. Setup MySQL:

follow this link http://dev.mysql.com/downloads/mysql/ or google it. While installing MySQL you will be prompted to give the password, that password is for the root user. To check whether you have correctly installed mysql or not "mysql -u root -p" after that type the password and you will see a mysql console...(most of these commands work in linux only)

     3. Install Tomcat:

For linux users the command is "sudo apt-get install tomcat6". For other OS users please google.

If you are behind a proxy then use this link to put the proxy options:

use the command "cd" and migrate to the folder "/etc/maven" command:"cd /etc/maven"

after that open the settings.xml file using any editor command: "sudo gedit -b settings.xml"

paste this in the end of file: (in my case the proxy settings were)

<settings>
<proxies>
<proxy>
<active>true</active>
<protocol>http</protocol>
<host>proxy.iiit.ac.in</host>
<port>8080</port>
</proxy>
</proxies>
</settings>

http://stackoverflow.com/questions/16729023/maven-build-issue-connection-to-repository-refused

     4. Running the server and passing all unit test cases:

Now go to any folder where you want to keep your openmrs folder:

use the command "git clone https://github.com/openmrs/openmrs-core"

go to that folder i.e. command: "cd openmrs-core"

run "mvn clean install" (it will take time, approximately 5-10 minutes)

now go to folder webapp "cd webapp" (i.e. you are in the folder "openmrs-core/webapp" now)

be a root user "sudo su"

now run the jetty server "sudo mvn jetty:run"

(the last lines of running the command will be "

[INFO] Started Jetty Server

[INFO] Starting scanner at interval of 10 seconds.

" and the terminal must stuck there, thats what running the server means)

       5.Unexpected situation that the server doesn't run:

If "sudo mvn jetty:run" doesn't run it's not because of proxy because you have already set it.

It is not running because by default it runs on the port "8080", the port might be occupied. In my case tomcat server was running on that port so I stopped it using the commands: (Follow this link http://fugoconsulting.wordpress.com/tag/startup-and-shutdown-of-tomcat-in-ubuntu/)

sudo /etc/init.d/tomcat6 start                       // To start tomcat server
sudo /etc/init.d/tomcat6 stop // To stop tomcat server

run "sudo mvn jetty:run" again

now you are all set and ready to go... if you still get some errors ask on irc channel of OpenMRS(channel: #OpenMRS)

      6. Now go to the URL "http://localhost:8080/openmrs/"

when asked for mysql password: give the password for root user.. and if it doesn't work, remove the directory openmrs-core, restart your pc, reclone the repository from git, go to that folder and run "mvn clean install", finally go to the webapp folder "sudo mvn jetty:run"

N.B. If you want to search for any controller or html page name in the openmrs directory (since the repository is vast, it's difficult to find them unless you are aware of the structure of openmrs) the command in linux is:

find . -name "*<html page/ controller name">*" (not the asterisk mark is necessary, so that the closer searches are also visible otherwise it will look for exact search)

     7. Go on with the implementation:

It is an awesome blog written by a developer of OpenMRS (srimaurya kummamuru).

Follow this link "http://mauryanguidetoopenmrsdevs.wordpress.com/"

     8. This troubleshooting might be required:
I have written a blog regarding the troubleshoot, which you require, Troubleshooting, that might be required if you follow this method of installation 

   

 

  • No labels

7 Comments

  1. Anonymous

    http://madusuburmax.weebly.com/ 
    http://www.usa-stammtisch.de/forum/user/7944-madusuburmax/
    http://masgie.edublogs.org/2017/05/24/madu-subur-max-herbal-penyubur-dari-yaman/
    https://plus.google.com/+GieBunglon/posts/ZGMbtsH6Mc7
    https://www.academia.edu/33110547/Madu_Subur_Max_Herbal_Penyubur_Reaksi_Cepat
    http://adipati.logdown.com/posts/1856792/fakta-tentang-manfaat-madu-untuk-kesehatan
    https://www.wattpad.com/user/maduseo 
    https://zenodo.org/communities/madu-subur-max-herbal-penyubur-reaksi-cepat/about/
    http://madu.emyspot.com/blog/kesehatan/perawatan-dengan-madu-subur-max.html
    http://www.ibosocial.com/dewapoker 
    http://maduku.wikidot.com/blog:1
    https://stackexchange.com/users/11062555/madu-subur-alami
    http://www.jjpowell.com/UserProfile/tabid/42/userId/6670/Default.aspx
    https://www.linkedin.com/pulse/madu-subur-max-herbal-penyubur-reaksi-cepat-dari-arab-agen-seo
    https://www.facebook.com/Gie.Bunglon/posts/1549728445051340 
    http://seoagenpokerdomino.kinja.com/madu-subur-max-herbal-penyubur-reaksi-cepat-1795373952 
    https://seopokers.quora.com/Temukan-Manfaat-Madu-Untuk-Kesehatan 
    http://madusuburmax.pbworks.com/w/page/118154847/MADU%20SUBUR%20MAX%2C%20HERBAL%20PENYUBUR%20REAKSI%20CEPAT 
    https://twitter.com/mazbunglon/status/865514352341770240    
    http://www.mobypicture.com/user/masbunglon/view/19844140
    http://dreamact.info/node/329393
    https://masbunglon.userecho.com/topics/1-khasiat-madu-pada-kesuburan-dan-kesehatan/
    http://www.fourlook.com/post/manfaat-yang-terkandung-pada-madu-alami-56573.html
    http://scpmdesarrollo.com/redsocial/groups/viewgroup/54-madu-subur-max-herbal-penyubur-alami-reaksi-cepat
    http://maduku.sosblog.com/Post-b1/Madu-Meningkatkan-Kesuburan-b1-p1.htm 
    https://groups.google.com/forum/#!forum/madu-subur-max-herbal-penyubur
    http://www.spc.int/CETC/jomsocial/seotoolinfo/profile
    https://www.minds.com/blog/view/714738908818055181
    https://www.flickr.com/photos/giebunglon/34513555450/
    http://masbunglon.blogdetik.com/2017/05/26/tips-baru-agar-anda-cepat-hamil
    http://www.seopokers.com/madu-subur-max-herbal-penyubur-reaksi-cepat/
    http://toolseo.soup.io/post/617264821/Manfaat-Madu-Subur-Max-Herbal-Penyubur-Reaksi
    http://seotoolinfo-blog.tumblr.com/post/160841668651/madu-subur-max-herbal-penyubur-kandungan

  2. Anonymous

    http://madusubur.blog.fc2.com/blog-entry-1.html
    http://pusbangkol.pnri.go.id/forum_pengolahan/topik-41832-madu-memberimu-keajaiban-dalam-kesehatan.html
    http://raptr.com/madusubur/about
    http://masbunglon.hatenablog.com/entry/2017/05/26/181400
    http://madusubur.wagomu.id/e26106.html 
    http://echometer.com/UserProfile/tabid/61/userId/304197/Default.aspx
    http://www.mfpc.tv/ch/userinfo.php?uid=2028243 
    http://www.purevolume.com/listeners/MaduSuburMaxHerbalPenyuburReaksiCepat
    https://storify.com/maduseo/madu-subur-max-herbal-penyubur
    http://newhive.com/seopoker/3-manfaat-madu-bagi-kesehatan-badan
    http://wallinside.com/post-58517034-madu-adalah-herbal-penyubur-kandungan-terbaik.html
    https://justintimberlake.com/users/madusuburseo https://youtu.be/YoM2VoMt0co    
    http://dev.open-sankore.org/xwiki/bin/view/Madu+Subur+Max%2C+Herbal+Penyubur+Reaksi+Cepat/WebHome

    http://numaom.go.th/public/webboard/data/listcomment/forum_id/1/topic_id/23/page/1/menu/105
    http://mathb.in/143242 
    http://elite-play.org/forum/index.php?page=User&userID=177085
    https://bible.org/users/madusuburmax
    http://www.en.lrprezidentas.lt/?q=node/789 http://maduku.pledgepage.org/
    http://forum.firstblood.co.id/members/madu-subur-max.4999/
    https://github.com/madusubur/herbal-penyubur-max/blob/master/index.md
    https://jsfiddle.net/akunpoker/8L1e64g0/
    https://www.givology.org/~akunpoker/blog/421702/
    http://maduseo.livejournal.com/503.html
    https://id.pinterest.com/pin/195625177546567327/
    https://about.me/madusuburmax

    http://spnbabble.sitepronews.com/akunpoker
    http://www.mobypicture.com/user/masbunglon
    http://petloverspublications.com/community/1214-akun-poker/profile
    http://ar29.ru/index.php?option=com_community&view=profile&userid=7199&Itemid=71
    http://www.fpsreport.com/fps-community/57863-madu-subur/profile.html
    http://www.calmwm.com/program/community/2030-madusubur/profile
    http://www.groomnbride.ca/community/4603-madu-subur/profile
    https://www.minds.com/madusubur
    http://description.drupalmodules.com/users/dewapoker
    http://maduku.wikidot.com/
    http://www.folkd.com/user/seotoolinfo
    http://madusubur.blog.fc2.com/
    http://www.scoop.it/u/mas-gie
    http://www.scoop.it/u/madu-subur-max
    http://scpmdesarrollo.com/redsocial/163-madu-subur/profile

  3. Anonymous

    pa apoteket online, http://sverige-apotek.life/erispan.html , säkert Danmark.
  4. Anonymous

    med tilskud, http://webapoteket.gdn/vivatec.html - generisk uden.
  5. Anonymous

    generisk recept, http://webapoteket.gdn/index-108.html - pris recept.
  6. Anonymous

    Precio costa rica http://farmaciaenlinea.life/zela.html donde comprar buenos aires.
Write a comment…