Re: Basic Tomcatt5.5 Admin question
- To: debian-user@lists.debian.org
- Subject: Re: Basic Tomcatt5.5 Admin question
- From: Dancing Fingers <batymahn@gmail.com>
- Date: Thu, 04 Oct 2007 00:08:32 -0000
- Message-id: <[🔎] 1191456512.761479.135590@d55g2000hsg.googlegroups.com>
- In-reply-to: <98ZHb-7QK-13@gated-at.bofh.it>
- References: <1190385779.706274.289780@y42g2000hsy.googlegroups.com> <20070921190334.494c39c3@localhost.localdomain> <95Ub0-OI-27@gated-at.bofh.it> <1190395879.822537.118460@o80g2000hse.googlegroups.com> <95UXw-1Qn-19@gated-at.bofh.it> <98XYI-53H-9@gated-at.bofh.it>
On Sep 30, 1:40 am, Dancing Fingers <bcl...@netscape.net> wrote:
> On Sep 21, 2:00 pm, Dancing Fingers <bcl...@netscape.net> wrote:
>
>
>
> > Thanks. This helps a lot. I also tried
> > chown -R www-data /usr/share/tomcat5.5-webapps
> > without much luck.
>
> > Cchris
> > On Sep 21, 1:10 pm, Nyizsnyik Ferenc <nyi...@bluebottle.com> wrote:
>
> > > On Fri, 21 Sep 2007 07:42:59 -0700
>
> > > Dancing Fingers <bcl...@netscape.net> wrote:
> > > > Hi guys,
> > > > I finally got Tomcat5.5 going on Etch AMD and I start studying the
> > > > JSP developers guide but I get stuck in the beginning. The book
> > > > says to create a new directory under ROOT but I don't have
> > > > permission in my default account. The last install I did a
> > > > chgrp / user/share/tomcat5.5-webapps/ROOT www-data but I screwed the
> > > > package up so bad that I re-installed the system. Could anyone
> > > > tell me how the is typically done?
> > > > Thanks.
> > > > Chris
>
> > > I use the "user web applications", I think it is a better approach for
> > > learning stuff. I put the following in /etc/tomcat5.5/server.xml, in
> > > the <host> section:
>
> > > <Listener className="org.apache.catalina.startup.UserConfig"
> > > directoryName="public_html"
> > > userClass="org.apache.catalina.startup.PasswdUserDatabase"/>
>
> > > <Context path="/~nyizsa/jsp"
> > > docBase="/home/nyizsa/public_html/jsp" debug="0"> </Context>
>
> > > My pages can be reached ashttp://localhost:8180/~nyizsa/jsp/, and they
> > > are actually located in /home/nyizsa/public_html/jsp.
>
> > > You may find more useful information athttp://localhost:8180/tomcat-docs/
>
> > > --
> > > Szia:
> > > Nyizsa.
>
> > > ----------------------------------------------------------------------
> > > Get a free email address with REAL anti-spam protection.http://www.bluebottle.com/tag/1
>
> > > --
> > > To UNSUBSCRIBE, email to debian-user-REQU...@lists.debian.org
> > > with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
>
> > --
> > To UNSUBSCRIBE, email to debian-user-REQU...@lists.debian.org
> > with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
>
> I tried
>
> <Host name="localhost" appBase="webapps"
> unpackWARs="true" autoDeploy="true"
> xmlValidation="false" xmlNamespaceAware="false">
>
> <Listener className="org.apache.catalina.startup.UserConfig"
> directoryName="public_html"
> userClass="org.apache.catalina.startup.PasswdUserDatabase"/>
> <Context path="/batymahn/chapter1"
> docBase="/home/batymahn/public_html/chapter1" debug="0"> </
> Context>
> </Host>
>
> Without luck. i also tried
>
> <Host name="mi-garage" appBase="file:/var/www/mi-garage"
> unpackWARs="true" autoDeploy="true"
> xmlValidation="false" xmlNamespaceAware="false">
> <context path="mi-garage" docBase="file:/var/www/mi-garage"
> debug="0" reloadable="true"/>-->
> <!--<alias>mi-garage.zapto.org</alias>-->
> <!--<valve className="org.apache.catalina.valves.AccessLogValve"
> directory="/var/log/tomcat5.5/mi-garage" prefix="access_log."
> suffix=".txt" pattern="common" resolveHosts="false"/>
>
> </Host>
> Still can't get it... Do I need to use the manager tool? My admin
> tool doesn't work although apt-get says that it's installed.
> It doesn't even seem to log so can't trouble shoot.
> Thanks.
> Chris
>
> --
> To UNSUBSCRIBE, email to debian-user-REQU...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
> ...
>
> --
> To UNSUBSCRIBE, email to debian-user-REQU...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
> ..
>
> --
> To UNSUBSCRIBE, email to debian-user-REQU...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
> .
>
> --
> To UNSUBSCRIBE, email to debian-user-REQU...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
I figured it out. Debian installs Tomcat5.5 and Tomcat5.5-webapps
under group "nogroup". If you change the group Tomcat5.5 won't
restart. So this is what I did, as root:
adduser myuser nogroup
cd /usr/share
chmod 770 tomcat5.5 -R
chmod 770 tomcat5.5-webapps -R
It didn't work right away for some reason but I rebooted the machine
and was able to create folders in tomcat/ROOT as myuser without
difficulty.
Chris
Reply to: