Changes between Version 9 and Version 10 of InstallationTips


Ignore:
Timestamp:
May 19, 2011, 5:01:29 AM (14 years ago)
Author:
Gavin
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallationTips

    v9 v10  
    88All our testing and configuration is done against Debian servers. [[BR]]
    99
    10  * Install sun-java5, be sure that no gcj (GNU java) packages are installed:
     10 * Install sun-java-6, be sure that no gcj (GNU java) packages are installed:
    1111{{{
    1212dpkg --get-selections |grep gcj
     
    1414 Note: The above search command must return NO packages.
    1515{{{
    16 aptitude install sun-java5-jdk
     16aptitude install sun-java6-jdk
    1717}}}
    1818
    1919 * Install tomcat:
    2020{{{
    21 aptitude install tomcat5.5
     21aptitude install tomcat6
    2222}}}
    2323
     
    2929'''Tomcat'''
    3030
    31  * In Debian add/adjust the following lines in /etc/default/tomcat5.5:
    32   * JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun/
    33   * JAVA_OPTS="-Djava.awt.headless=true -Xmx256M"
    34   * TOMCAT5_SECURITY=no
     31 * In Debian add/adjust the following lines in /etc/default/tomcat6:
     32  * JAVA_HOME=/usr/lib/jvm/java-6-sun
     33  * JAVA_OPTS="-Djava.awt.headless=true -Xms256m -Xmx256M -XX:PermSize=80m -XX:MaxPermSize=80m -XX:+UseConcMarkSweepGC"
     34  * As always the more memory the better but gnuMims is known to run on the demo at this setting.
     35
     36Only Debian Lenny (old stable):
    3537 * To work around a java.lang.!UnsatisfiedLinkError in Debian Lenny run the following commands:
    3638  * i386: ln -s /usr/lib/jvm/java-1.5.0-sun/jre/lib/i386/libmlib_image.so /usr/lib
     
    3941 * Note:
    4042  * The above security settings should not be used in production, see http://tomcat.apache.org/tomcat-5.5-doc/security-manager-howto.html
    41   * As always the more memory the better but gnuMims is known to run at this setting and perhaps even lower.
    4243
    4344'''Memory Tips'''
    4445
    4546 * !GnuMims has been known to load and run on a 300Mhz laptop with <180MB total RAM but would not be very usable.
    46  * A Debian GNU/Linux machine with 1GB RAM and P4 equivalent processor is recommended.
     47 * A Debian GNU/Linux machine with at least 1GB RAM and P4 equivalent processor is recommended.
    4748 * For a Windows 2003 server directly running tomcat you may need more than 2G of RAM (that's why we recommend a dedicated Debian GNU/Linux)
    4849 * A vmware virtual appliance (GNU/Linux + Tomcat + Mysql) with 1G of RAM should work ok on a Windows 2003 server if you must run Windows.
     
    5354  * This is an apache example config using libapache2-mod-jk:
    5455{{{
    55 Alias /gnuMims /var/lib/tomcat5.5/webapps/gnuMims
    56 <Directory /var/lib/tomcat5.5/webapps/gnuMims/>
    57     Options FollowSymLinks Indexes MultiViews
    58     AllowOverride None
    59     order allow,deny
    60     allow from all
    61 </Directory>
     56JkMount /gnuMims/* ajp13_worker
    6257
    63 JkMount /gnuMims/* ajp13_worker
     58<VirtualHost *:80>
     59    ServerAdmin contact@example.com
     60    ServerName gnumims.example.com
     61
     62    #Requests for "/" and "/gnuMims" are redirected to "/gnuMims/"
     63    #[R] is an external redirect so the url is passed back to the browser.
     64    RewriteEngine  on
     65    RewriteRule    ^/$              /gnuMims/       [L,R]
     66    RewriteRule    ^/gnuMims$       /gnuMims/       [L,R]
     67
     68   JkMount /gnuMims/* ajp13_worker
     69
     70</VirtualHost>
    6471}}}
    6572  * To enable libapache2-mod-jk in Debian set these lines in /etc/apache2/mods-available/jk.conf:
     
    7380  * To configure mod-jk in Debian double check these lines in /etc/libapache2-mod-jk/workers.properties:
    7481{{{
    75 workers.tomcat_home=/usr/share/tomcat5.5
    76 workers.java_home=/usr/lib/jvm/java-1.5.0-sun
     82workers.tomcat_home=/usr/share/tomcat6
     83workers.java_home=/usr/lib/jvm/default-java
    7784}}}
    7885  * Then run:
     
    8996
    9097 * Every server must have a firewall, we use shorewall firewall.
    91  * Ports of interest - http:80, https:443, Tomcat(Debian):8180, MySQL:3306.
     98 * Ports of interest - http:80, https:443, Tomcat(Debian):8180 or 8080, MySQL:3306.
    9299
    93100=== One again, please contact us if any of this does not work for you. ===