[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Basic Tomcatt5.5 Admin question



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: