Installation, 30.11.2009#
Note. If the packages are not find, search with (for example for java jdk):
apt-cache search jdkYou may also append the list of sources under /etc/apt/sources.list
Install MySql#
1. Installsudo apt-get install mysql-server2. Set root password
3. Check version
/usr/bin/mysqladmin -h localhost -u root -p version > Copyright (C) 2000-2006 MySQL AB This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL license Server version 5.0.75-0ubuntu10.2 Protocol version 10 Connection Localhost via UNIX socket UNIX socket /var/run/mysqld/mysqld.sock Uptime: 39 min 42 sec Threads: 1 Questions: 218 Slow queries: 0 Opens: 148 Flush tables: 2 Open tables: 17 Queries per second avg: 0.092 ---- mysql -h localhost -u root -p Enter password: > Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 35 Server version: 5.0.75-0ubuntu10.2 (Ubuntu) Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | +--------------------+ 2 rows in set (0.00 sec)4. Create Database (Consider Character Set Before, UTF-8 recommended !)
mysqladmin create <databasename> character set UTF-8
Install Java#
1. Installsudo apt-get install default-jdk2. Check version
java -version > java version "1.6.0_0" OpenJDK Runtime Environment (IcedTea6 1.4.1) (6b14-1.4.1-0ubuntu12) OpenJDK Server VM (build 14.0-b08, mixed mode)
Install Tomcat#
1. Installsudo apt-get install tomcat62. Find base directory
find / -name startup* > /usr/share/tomcat6/bin/startup.sh3. add missing folders (logs and conf)
cd /usr/share/tomcat6 mkdir logs ln -s /etc/tomcat6 /usr/share/tomcat6/conf4. Check version
/usr/share/tomcat6/bin# ./version.sh > Using CATALINA_BASE: /usr/share/tomcat6 Using CATALINA_HOME: /usr/share/tomcat6 Using CATALINA_TMPDIR: /usr/share/tomcat6/temp Using JRE_HOME: /usr/lib/jvm/default-java Server version: Apache Tomcat/6.0.18 Server built: Jun 10 2009 08:27:38 Server number: 6.0.0.0 OS Name: Linux OS Version: 2.6.26-2-openvz-amd64 Architecture: i386 JVM Version: 1.6.0_0-b14 JVM Vendor: Sun Microsystems Inc.5. Start
export JAVA_HOME=/usr/lib/jvm/default-java export CATALINA_OPTS="-Xmx64m -Xms64m" export JAVA_OPTS="-server -Xmx64m -Xms64m -XX:PermSize=32m -XX:MaxPermSize=32m" /usr/share/tomcat6/bin/startup.sh > Using CATALINA_BASE: /usr/share/tomcat6 Using CATALINA_HOME: /usr/share/tomcat6 Using CATALINA_TMPDIR: /usr/share/tomcat6/temp Using JRE_HOME: /usr/lib/jvm/default-java6. Test
http://188.40.154.89:8080/7. Stopping Tomcat
/usr/share/tomcat6/bin/shutdown.sh /usr/share/tomcat6/logs/localhost...8. Update Config under /etc/tomcat6 (see item 3)
vi server.xml /8080 change port9. Install "manager" und "host-manager" under /usr/share/tomcat6-admin
sudo apt-get install tomcat6-admin10. Install docs /usr/share/tomcat6-docs
sudo apt-get install tomcat6-admin11. Extend /etc/tomcat6/tomcat-users.xml
<tomcat-users> <role rolename="manager"/> <role rolename="admin"/> <user username="your name" password="123xyz" roles="manager,admin"/> </tomcat-users>
12. Start again and Test
http://www.ebel-computing.de/default_root/
http://www.ebel-computing.de
http://www.ebel-computing.de/manager/html
http://www.ebel-computing.de/host-manager/html
http://www.ebel-computing.de/docs/
The webapps folder is defined in :/var/lib/tomcat6/conf/Catalina/localhost/<webapp>.xml
Read also the notes in the start page (default_root).
CATALINA_HOME (bin) is in /usr/share/tomcat6
CATALINA_BASE (webapps) is in /var/lib/tomcat6
Tomcat's default webapp is "ROOT", not "default_root" like above.
Rename default_root into ROOT and restart tomcat, to make the default
address work (and adjusting ROOT/index.html).
Install JSPWiki#
1. Install, check latest version1. wget http://www.ecyrd.com/~jalkanen/JSPWiki/2.8.3/JSPWiki-2.8.3-bin.zip 2. unzip JSPWiki-2.8.3-bin.zip 3. cp /markus/JSPWiki/JSPWiki.war /usr/share/tomcat6/webapps 4. start tomcat 5. Install: Basis URL with ending backslash !!! http://www.ebel-computing.de/JSPWiki/ 6. mkdir /markus/jspwikiData 7. cp /markus/download/JSPWiki/JSPWiki-corepages_en.zip /markus/jspwikiData 8. cd /markus/download/JSPWiki 9 unzip JSPWiki-corepages_en.zip 10 enable in webapps/JSPWiki/jspwiki.properties jspwiki.specialPage.FindPage = Search.jsp 11. mkdir /markus/jspwikiLog2. Test
http://188.40.154.89/JSPWiki/