Changes between Version 9 and Version 10 of InstallationTips
- Timestamp:
- May 19, 2011, 5:01:29 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallationTips
v9 v10 8 8 All our testing and configuration is done against Debian servers. [[BR]] 9 9 10 * Install sun-java 5, 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: 11 11 {{{ 12 12 dpkg --get-selections |grep gcj … … 14 14 Note: The above search command must return NO packages. 15 15 {{{ 16 aptitude install sun-java 5-jdk16 aptitude install sun-java6-jdk 17 17 }}} 18 18 19 19 * Install tomcat: 20 20 {{{ 21 aptitude install tomcat 5.521 aptitude install tomcat6 22 22 }}} 23 23 … … 29 29 '''Tomcat''' 30 30 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 36 Only Debian Lenny (old stable): 35 37 * To work around a java.lang.!UnsatisfiedLinkError in Debian Lenny run the following commands: 36 38 * i386: ln -s /usr/lib/jvm/java-1.5.0-sun/jre/lib/i386/libmlib_image.so /usr/lib … … 39 41 * Note: 40 42 * 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.42 43 43 44 '''Memory Tips''' 44 45 45 46 * !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. 47 48 * 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) 48 49 * 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. … … 53 54 * This is an apache example config using libapache2-mod-jk: 54 55 {{{ 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> 56 JkMount /gnuMims/* ajp13_worker 62 57 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> 64 71 }}} 65 72 * To enable libapache2-mod-jk in Debian set these lines in /etc/apache2/mods-available/jk.conf: … … 73 80 * To configure mod-jk in Debian double check these lines in /etc/libapache2-mod-jk/workers.properties: 74 81 {{{ 75 workers.tomcat_home=/usr/share/tomcat 5.576 workers.java_home=/usr/lib/jvm/ java-1.5.0-sun82 workers.tomcat_home=/usr/share/tomcat6 83 workers.java_home=/usr/lib/jvm/default-java 77 84 }}} 78 85 * Then run: … … 89 96 90 97 * 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. 92 99 93 100 === One again, please contact us if any of this does not work for you. ===