This page (revision-39) was last changed on 23-Apr-2022 17:06 by Harry Metske

This page was created on 23-Apr-2022 17:06 by Harry Metske

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
39 23-Apr-2022 17:06 8 KB Harry Metske to previous
38 23-Apr-2022 17:06 8 KB Harry Metske to previous | to last
37 23-Apr-2022 17:06 8 KB Harry Metske to previous | to last
36 23-Apr-2022 17:06 8 KB Harry Metske to previous | to last
35 23-Apr-2022 17:06 8 KB Harry Metske to previous | to last
34 23-Apr-2022 17:06 9 KB Harry Metske to previous | to last
33 23-Apr-2022 17:06 9 KB Harry Metske to previous | to last
32 23-Apr-2022 17:06 9 KB Harry Metske to previous | to last
31 23-Apr-2022 17:06 9 KB Harry Metske to previous | to last
30 23-Apr-2022 17:06 9 KB HarryMetske to previous | to last
29 23-Apr-2022 17:06 9 KB Harry Metske to previous | to last
28 23-Apr-2022 17:06 9 KB Harry Metske to previous | to last
27 23-Apr-2022 17:06 9 KB Harry Metske to previous | to last
26 23-Apr-2022 17:06 9 KB Harry Metske to previous | to last
25 23-Apr-2022 17:06 9 KB Harry Metske to previous | to last
24 23-Apr-2022 17:06 9 KB Harry Metske to previous | to last
23 23-Apr-2022 17:06 8 KB Harry Metske to previous | to last
22 23-Apr-2022 17:06 9 KB Harry Metske to previous | to last backup
21 23-Apr-2022 17:06 9 KB Harry Metske to previous | to last

Page References

Incoming links Outgoing links
Jspwiki-vm...nobody

Version management

Difference between version and

At line 11 removed 77 lines
!! Important directories and files
|| name || purpose
|/etc/init/[tomcat1.conf]|upstart bootstrap script
|/usr/local/tomcat1| tomcat home dir (symlink to ./apache-tomcat1-x.y.z)
|/usr/local/tomcat1/logs|log files tomcat1
|/usr/local/tomcat1/lib|contains jspwiki property files
|/var/jspwiki/wiki/pages|wiki pages and attachments of wiki
|/var/jspwiki/wiki/logs|wiki pages and attachments of wiki
|/var/log/apache2|webserver logs
!! Extra installed packages
* openjdk-6-jre-headless (apt)
* apache2 (apt)
* [tomcat 7.0.42|http://http://tomcat.apache.org/]
* JSPWiki v2.10.0-svn-49
* unzip (apt)
* openjdk-6-jdk (apt)
* logwatch
* mailutils
!! Configuration and installation
* __Default apache site configuration ? __ : /etc/apache2/sites-enabled/[000-default]
* __can I see apache status ? __ : Added my IP address to /etc/apache2/mods-enabled/status.conf
* __download vanilla tomcat__ :''wget 'http://apache.mirror1.spango.com/tomcat/tomcat-7/v7.0.42/bin/apache-tomcat-7.0.42.tar.gz' ''
* __create tomcat userids__ : ''useradd -m -s /bin/bash tomcat1 && useradd -m -s /bin/bash tomcat2''
* __install vanilla tomcat__ : ''cd /usr/local && tar -xf /tmp/apache-tomcat-7.0.42.tar && mv apache-tomcat-7.0.42 apache-tomcat1-7.0.42 && chown -R tomcat1.tomcat1 apache-tomcat1-7.0.42 && cp -R apache-tomcat1-7.0.42 apache-tomcat2-7.0.42 && chown -R tomcat2.tomcat2 apache-tomcat2-7.0.42 && ln -s apache-tomcat1-7.0.42 tomcat1 && ln -s apache-tomcat2-7.0.42 tomcat2 && rm -rf tomcat?/webapps/examples tomcat?/webapps/host-manager ''
* __create bootstrap scripts__ : created /etc/init/tomcat1.conf /etc/init/tomcat2.conf ==> use these to set the envvars for tomcat
* __download latest released JSPWiki__ : ''wget 'http://www.apache.org/dist/incubator/jspwiki/2.9.1-incubating/JSPWiki-2.9.1-incubating-4-bin.zip'''
* __create tomcat~[1/2~] webapp dirs__ : with user tomcat~[1/2~]: ''cd /usr/local/tomcat~[1/2~]/webapps && mv ROOT ROOT.old && mkdir ROOT && cd ROOT && jar -xf /tmp/ff/JSPWiki-bin/JSPWiki.war''
* %%strike __patch wiki vanilla jspwiki.properties__ : created ~tomcat1/jspwiki/jspwiki.properties.patch and run: ''patch /usr/local/tomcat1/webapps/wiki/WEB-INF/jspwiki.properties ~tomcat1/jspwiki/jspwiki.properties.patch''/%
* %%strike __patch doc vanilla jspwiki.properties__ : created ~tomcat2/jspwiki/jspwiki.properties.patch and run: ''patch /usr/local/tomcat2/webapps/wiki/WEB-INF/jspwiki.properties ~tomcat2/jspwiki/jspwiki.properties.patch''/%
* created /usr/local/tomcat~[1/2~]/lib/jspwiki-custom.properties (see attached files)
* __create jspwiki page logs dir__ : ''mkdir -p /var/jspwiki/wiki/pages /var/jspwiki/wiki/logs /var/jspwiki/doc/pages /var/jspwiki/doc/logs && chmod -R 755 /var/jspwiki && chown -R tomcat1.tomcat1 /var/jspwiki/wiki && chown -R tomcat2.tomcat2 /var/jspwiki/doc''
* __enable apache ajp proxy__ : ''cd /etc/apache2/mods-enabled && ln -s ../mods-available/proxy.conf proxy.conf && ln -s ../mods-available/proxy.load proxy.load && ln -s ../mods-available/proxy_ajp.load proxy_ajp.load''
* modify /etc/apache2/sites-available/[000-default]
* __patch tomcat1 server.xml (disable port 8080, change redirect port to 443)__ : ''cd /usr/local/tomcat1/conf && patch server.xml ~/jspwiki/tomcat.server.xml.patch''
* __patch tomcat2 server.xml (disable port 8080 and shift 8005 8009 up 100, change redirect port to 443)__ : ''cd /usr/local/tomcat2/conf && patch server.xml ~/jspwiki/tomcat.server.xml.patch''
* __install spam filter__ [filters.xml] to /usr/local/tomcat~[1/2~]/lib''
* __install jspwiki security policy__ [jspwiki-custom.policy] to /usr/local/tomcat~[1/2~]/lib'' (anonymous users can only view)
* __redirect root mail__ : %%strike /etc/aliases : direct "root" to harry.metske@gmail.com (and run newaliases)/% ==> puppet reverts it \\
==> edit __/etc/cron.weekly/00logwatch__ : ''logwatch --mailto harry.metske@gmail.com''
* create the /etc/logrotate.d/[tomcats] file to truncate catalina.out
* create the /etc/cron.daily/[cleanTomcatLogs] file to get rid of old log files
* create the /etc/cron.daily/[backupWikis] file to arrange the backup
!! Todo
* %%strike install apache2 with mod_ajp/%
* %%strike create user/group to run tomcats/%
* %%strike install tomcat latest release, 2 instances/%
* %%strike bootstrap scripts for tomcats/%
* have INFRA get the proxying in place:
** http://jspwiki.apache.org/wiki => http://jspwiki-vm.apache.org/wiki
** https://jspwiki.apache.org/wiki => http://jspwiki-vm.apache.org/wiki
** http://jspwiki.apache.org/doc => http://jspwiki-vm.apache.org/doc
** https://jspwiki.apache.org/doc => http://jspwiki-vm.apache.org/doc
* %%strike housekeeping (log cleaning) cron jobs/%
* %%strike get the proper userdatabase.xml (start with empty one)/%
* %%strike create the admin group and put your self in/%
* %%strike mail config => installed mailutilx/%
* %%strike backup ?/%
* analog ?
* %%strike fail2ban monitoring/%
* (nagios) monitoring
* %%strike place (apache) /var/www/favicon.ico/%
* %%strike place /var/www/[robots.txt]/%
At line 75 added 40 lines
!! Important directories and files
|| name || purpose
|/etc/init.d/tomcat1|bootstrap script
|/etc/init.d/tomcat2|bootstrap script
|/usr/local/tomcat1| tomcat home dir (symlink to ./apache-tomcat1-x.y.z)
|/usr/local/tomcat2| tomcat home dir (symlink to ./apache-tomcat2-x.y.z)
|/usr/local/tomcat1/logs|log files tomcat1
|/usr/local/tomcat2/logs|log files tomcat2
|/var/jspwiki/wiki/pages|wiki pages and attachments of wiki
|/var/jspwiki/wiki/logs|wiki pages and attachments of wiki
|/var/jspwiki/doc/pages|wiki pages and attachments of doc
|/var/jspwiki/doc/logs|wiki pages and attachments of doc
|/var/log/apache2|webserver logs
!! Extra installed packages
* openjdk-6-jre-headless (apt)
* apache2 (apt)
* [tomcat 7.0.42|http://http://tomcat.apache.org/]
!! Configurations
* Added my IP address to /etc/apache2/mods-enabled/status.conf
!! Todo
* install apache2 with mod_ajp
* create user/group to run tomcats
* install tomcat latest release, 2 instances
* bootstrap scripts for tomcats
* housekeeping (log cleaning) cron jobs
* get the proper userdatabase.xml (start with empty one)
* create the amdin group and put your self in