Ubuntu Tomcat Install

5 views
Skip to first unread message

RichardAlpert

unread,
Oct 18, 2012, 6:21:41 PM10/18/12
to implem...@openmrs.org
I'm following the installation instructions for Tomcat on Ubuntu. But I don't understand why we need to create another user or change file ownership/permissions. Can someone clarify the following lines from the wiki?


sudo useradd tomcat6
cd /opt
sudo tar zxvf apache-tomcat-6.0.29.tar.gz
sudo ln -s apache-tomcat-6.0.29 tomcat6
sudo chown tomcat6.tomcat6 apache-tomcat-6.0.29

Ashley Maher

unread,
Oct 18, 2012, 6:53:34 PM10/18/12
to implem...@openmrs.org
Good Morning,

If you are using Ubuntu then it maybe easier to use the Ubuntu packages.

Synaptic is a nice GUI package manager if you are not familiar with the cmd line apt.

The packages will create the new users for you.

Regards,

Ashley
________________________________________
From: implem...@openmrs.org [implem...@openmrs.org] On Behalf Of RichardAlpert [apb...@gmail.com]
Sent: Friday, 19 October 2012 9:21 AM
To: implem...@openmrs.org
Subject: Ubuntu Tomcat Install
--
OpenMRS Implementers: http://go.openmrs.org/implementers
Post: implem...@openmrs.org
Unsubscribe: implementers...@openmrs.org
*** OpenMRS 2012 Implementers Meeting: http://2012.openmrs.org/ ***


Darius Jazayeri

unread,
Oct 18, 2012, 7:11:34 PM10/18/12
to implem...@openmrs.org
Actually we don't usually recommend that because (at least last I checked) the version of tomcat packaged with Ubuntu was old, and didn't work well with OpenMRS.

If you're a server installation, it's good style to set up tomcat to run as its own user, run as a service, etc. That's the perspective the docs are written from.

If you're just installing as a developer, so you can test on tomcat, there's nothing wrong with just installing it somewhere in your home directory.

-Darius

Ashley Maher

unread,
Oct 18, 2012, 7:12:52 PM10/18/12
to implem...@openmrs.org
Sorry my bad.


________________________________________
From: implem...@openmrs.org [implem...@openmrs.org] On Behalf Of Darius Jazayeri [djaz...@gmail.com]
Sent: Friday, 19 October 2012 10:11 AM
To: implem...@openmrs.org
Subject: Re: Ubuntu Tomcat Install

Actually we don't usually recommend that because (at least last I checked) the version of tomcat packaged with Ubuntu was old, and didn't work well with OpenMRS.

If you're a server installation, it's good style to set up tomcat to run as its own user, run as a service, etc. That's the perspective the docs are written from.

If you're just installing as a developer, so you can test on tomcat, there's nothing wrong with just installing it somewhere in your home directory.

-Darius

On Thu, Oct 18, 2012 at 3:53 PM, Ashley Maher <ama...@uow.edu.au<mailto:ama...@uow.edu.au>> wrote:
Good Morning,

If you are using Ubuntu then it maybe easier to use the Ubuntu packages.

Synaptic is a nice GUI package manager if you are not familiar with the cmd line apt.

The packages will create the new users for you.

Regards,

Ashley
________________________________________
From: implem...@openmrs.org<mailto:implem...@openmrs.org> [implem...@openmrs.org<mailto:implem...@openmrs.org>] On Behalf Of RichardAlpert [apb...@gmail.com<mailto:apb...@gmail.com>]
Sent: Friday, 19 October 2012 9:21 AM
To: implem...@openmrs.org<mailto:implem...@openmrs.org>
Subject: Ubuntu Tomcat Install

I'm following the installation instructions for Tomcat on Ubuntu. But I don't understand why we need to create another user or change file ownership/permissions. Can someone clarify the following lines from the wiki?

https://wiki.openmrs.org/display/docs/Step+3+-+Install+Tomcat

sudo useradd tomcat6
cd /opt
sudo tar zxvf apache-tomcat-6.0.29.tar.gz
sudo ln -s apache-tomcat-6.0.29 tomcat6
sudo chown tomcat6.tomcat6 apache-tomcat-6.0.29

--
OpenMRS Implementers: http://go.openmrs.org/implementers
Post: implem...@openmrs.org<mailto:implem...@openmrs.org>
Unsubscribe: implementers...@openmrs.org<mailto:implementers%2Bunsu...@openmrs.org>
*** OpenMRS 2012 Implementers Meeting: http://2012.openmrs.org/ ***


--
OpenMRS Implementers: http://go.openmrs.org/implementers
Post: implem...@openmrs.org<mailto:implem...@openmrs.org>
Unsubscribe: implementers...@openmrs.org<mailto:implementers%2Bunsu...@openmrs.org>

RichardAlpert

unread,
Oct 18, 2012, 9:10:55 PM10/18/12
to implem...@openmrs.org, ama...@uow.edu.au
Thanks very much guys. 

I think the documentation for installing on Ubuntu could be improved. Maybe someone could add a comment to the wiki.

I'm working on a detailed Ubuntu installation guide for my organization. Would this be something that the OpenMRS group would be interested in posting somewhere?

Darius Jazayeri

unread,
Oct 18, 2012, 10:07:52 PM10/18/12
to implem...@openmrs.org, ama...@uow.edu.au

Hi Richard,

The wiki could always stand to be improved.

We'd love it if you could make the relevant page edits or comments. :-)

-Darius (by phone)

--

Burke Mamlin

unread,
Oct 18, 2012, 10:13:11 PM10/18/12
to implem...@openmrs.org, ama...@uow.edu.au
Richard,

The documentation on the OpenMRS wiki is community built and community maintained.  The only hope for it to be accurrate and kept up to date is for people like yourself to contribute comments & edits.  I'm hoping that we'll someday have one or more folks with protected time to function as editors for our documentation; however, just like Wikipedia, even then we'll still rely on the community to create & maintain the bulk of the content.

So, please, if you see errors or areas that could use improvement in the OpenMRS wiki, we welcome you to roll up your sleeves and edit away.  For folks that are uncertain of their edits or not comfortable editing wiki pages, we welcome comments at the end of any page.  In either case, you're helping the person who comes behind you. :-)

Quick Tips for working with the OpenMRS wiki:
  • Add a comment.  Scroll to the bottom of any page and create a comment.
  • Edit a page.  When logged into the wiki, click the Edit action.  If you need help on using Confluence's editor, reach us in IRC or ask on http://answers.openmrs.org on this mailing list (no doubt you're not the only one with the question).
  • Add a page.  Unlike Mediwiki, where all pages are equal, the OpenMRS wiki (Atlassian's Confluence) creates a hierarchy of pages, where any page can have child pages.  When adding a new page, go to the page that should be it's parent and select Add > Page to create your new page as its child.  If you are unsure where a new page belongs, then create the page in your personal space (Your Name > Personal Space > Add > Page) and then send a link to your page to the community asking for suggestions on where it should go (moving pages within the wiki is very easy).  Note: when making up a title for your page, be specific – e.g., "Getting Started with the Whirlygig Module" instead of just "Getting Started" – since these titles are what people see when searching the wiki and a bunch of pages with ambiguous titles (like "Getting Started") is confusing.
  • Don't be afraid!  Aside from deleting pages, the wiki keeps a history of every edit, so there's always an "undo" to save the day when needed. :-)
Cheers,

-Burke

Rowan Seymour

unread,
Oct 19, 2012, 3:49:24 AM10/19/12
to implem...@openmrs.org, ama...@uow.edu.au
Actually the reason we weren't advising use of the Ubuntu packages was that the version in the Ubuntu repositories was too new and OpenMRS was having problems with Tomcat versions beyond 6.0.30. Those issues (TRUNK-2272, TRUNK-3743, RCM-74, etc) have been addressed in all latest releases of OpenMRS, so I think we can return to recommending use of the packages. It's certainly the easiest way to install Tomcat and I don't think there's a strong argument for needing the absolute latest version.

-Rowan

--
OpenMRS Implementers: http://go.openmrs.org/implementers
Post: implem...@openmrs.org
Unsubscribe: implementers...@openmrs.org
*** OpenMRS 2012 Implementers Meeting: http://2012.openmrs.org/ ***
 
 



--
Rowan Seymour
tel: +250 783835665

Reply all
Reply to author
Forward
0 new messages