Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Nutch Wiki" for change 
notification.

The "GettingNutchRunningWithDebian" page has been changed by AndreRicardo.
http://wiki.apache.org/nutch/GettingNutchRunningWithDebian?action=diff&rev1=15&rev2=16

--------------------------------------------------

  Tomcat5.5 under Debian Etch listens to port 8180, not 8080, so pointing your 
browser to http://blahblah:8180 will bring up the Tomcat home page, if 
everything is functioning properly.<<BR>>
  === Grant Yourself Tomcat Manager Permissions ===
  Edit ''/usr/share/tomcat5.5/conf/tomcat-users.xml'' and include the 
following:<<BR>>
+   {{{
-   {{{<user username="myname" password="mypassword" roles="manager"/>}}}
+ <user username="myname" password="mypassword" roles="manager"/>
+ }}}
  === Enter the Tomcat Manager ===
  Tomcat5.5 under Debian Etch comes pre-installed with a handfull of simple 
webapps.  Clicking on the ''Tomcat Manager'' link from the Tomcat home page 
will show you a list of these applications and their execution status.  Later 
we will return to this page to verify that our nutch applications are running.
  
@@ -58, +60 @@

  Under Debian Etch, the Catalina configuration files are located under 
'''/etc/tomcat5.5/policy.d'''  At runtime they are combined into a single file, 
''/usr/share/tomcat5.5/conf/catalina.policy''  Do not edit the latter, as it 
will be overwrittten.<<BR>>
  At the end of /etc/tomcat5.5/policy.d/04webapps.policy include the following 
code:<<BR>>
  
+ {{{
- {{{grant codeBase "file:/usr/share/tomcat5.5-webapps/-\" {
+ grant codeBase "file:/usr/share/tomcat5.5-webapps/-\" {
      permission java.util.PropertyPermission "user.dir", "read";
      permission java.util.PropertyPermission "java.io.tmpdir", "read,write";
      permission java.util.PropertyPermission "org.apache.*", "read,execute";
@@ -67, +70 @@

      permission java.io.FilePermission "/var/lib/tomcat5.5/temp/-", 
"read,write,execute,delete";
      permission java.lang.RuntimePermission "createClassLoader", "";
      permission java.security.AllPermission;
-     };}}}
+     };
+ }}}
  '''Warning:  The last line here was necessary in order to make things work 
for me.  If anybody can supply a more restrictive permission set, please do 
so!!!  The effects of this are unknown'''<<BR>>
  
  == Install Multiple Copies of Nutch under Tomcat5.5 and Prepare for Searching 
==
@@ -75, +79 @@

   ''/usr/share/tomcat5.5-webapps''<<BR>>
  '''Contrary to the Nutch tutorial(s) it is NOT NECESSARY to remove the ROOT 
context nor is it desirable.''' It was noted above that the Tomcat Manager 
allows us to view and control our multiple applications.  Removing ROOT would 
break this functionality.<<BR>>
  Create two new folders under /usr/share/tomcat5.5-webapps, and explode the 
nutch war file into each:
+ {{{ 
- {{{ #cd /usr/share/tomcat5.5-webapps
+ #cd /usr/share/tomcat5.5-webapps
  #mkdir site1
  #mkdir site2
  #cp /usr/local/nutch/nutch-0.8.1.war site1

Reply via email to