| At line 2 added one line |
| [{TableOfContents }] |
| At line 4 added 14 lines |
| !!ATTENZIONE TOMCAT 6 PROBLEMA ENCODING/CHARSET: |
| {{{ |
| People, Tomcat 6 has disabled the standard servlet behavior by default. |
|
| To make it work you should add |
| -Dorg.apache.catalina.STRICT_SERVLET_COMPLIANCE=true to your startup |
| script. If you don't, the server response will not include the |
| encoding bit, even if the browser has provided an Accept-Language |
| header. The symptoms are that loom will lose any accented characters |
| (áéí... you know what I mean). Adding this flag should get it fixed. |
|
| I have updated the docs and the Loom "start tomcat" eclipse config. |
| }}} |
|
| At line 29 added 7 lines |
| ! Avvio : |
| Nel caso di utilizzo di tomcat con il connettore ad apache è meglio |
| #avviare prima tomcat: /etc/init.d/tomcat start |
| #avviare apache: /etc/init.d/apache2 start |
|
| Allo stesso modo per un riavvio di tomcat sarebbe meglio spegnere apache, riavviare tomcat e avviare apache |
|
| At line 22 changed one line |
| che ricrea il file di configurazione server.xml di tomcat includendo eventuali nuovi siti. |
| che ricrea il file di configurazione server.xml di tomcat includendo eventuali nuovi siti.\\ |
| At line 46 added 7 lines |
| Inoltre può contenere le JAVA_OPTS come ad esempio |
| %%prettify |
| {{{ |
| export JAVA_OPTS="-server -Xms512M -Xmx512M -Xss128K" |
| }}} |
| /% |
|
| At line 97 added 38 lines |
| ! Connettore apache-tomcat (mod_jk) |
|
| #Procedura manuale (sconsigliata) |
| ##rinominare il connettore scaricato in mod_jk.so e metterlo ad esempio in /usr/lib/apache2/modules/ |
| ##editare /etc/apache2/apache2.conf e aggiungere in fondo LoadModule jk_module /usr/lib/apache2/modules/mod_jk.so |
| #Procedura automatica: utilizzare gli strumenti che la tua distribuzione linux offre per installare un pacchetto (ad esempio per ubuntu aptitude install libapache2-mod-jk). Verificare che il modulo sia poi presente tra quelli enabled (ad esempio in /etc/apache2/mods-enabled) |
|
| A questo punto è necessario configurare: |
| #[workers.properties] e metterlo in /opt/tomcat/conf |
| #editare /etc/apache2/apache2.conf e aggiungere |
| %%prettify |
| {{{ |
| JkWorkersFile "/opt/tomcat/conf/workers.properties" |
| JkLogFile "/opt/tomcat/logs/mod_jk.log" |
| JkLogLevel info |
| JkLogStampFormat "[%a %b %d %H:%M:%S %Y]" |
| }}} |
| /% |
|
| ! Caricare i VirtualHost creati con [addvirtual] |
| Per indicare ad apache dove prelevare le definizioni dei VirtualHost occorre editare /etc/apache/apache2.conf e |
| %%prettyif |
| {{{ |
| commentare le seguenti |
| #Include /etc/apache2/conf.d/[^.#]* |
| e anche |
| #Include /etc/apache2/sites-enabled/[^.#]* |
|
| aggiungere la seguente |
|
| Include /etc/apache2/conf.d/vhost.d/*.conf |
|
| e anche |
|
| NameVirtualHost qui |
| }}} |
| /% |
|
| At line 74 changed one line |
| IPMACCHINA qui\\ |
| IPMACCHINA qui |
| At line 90 changed one line |
| E' un tool di creazione statistiche web. le relative configurazioni sono comprese nel file /opt/template/[webalizer.conf]. |
| E' un tool di creazione statistiche web. le relative configurazioni sono comprese nel file /opt/template/[webalizer.conf].\\ |
| Per lanciare l'aggiornamento delle statistiche creare un file in /opt/script/[runstat] da lanciare con un cron tutte i giorni. |
| At line 121 changed one line |
| se nell'error.log di apache compare spesso |
| se nell'error.log di apache compare spesso\\ \\ |
| At line 123 changed one line |
| [Fri Apr 18 150145 2008] [error] [client 1] Directory index forbidden by Options directive srvwwwhtdocs |
| error client 1 Directory index forbidden by Options directive srvwwwhtdocs\\ \\ |
| At line 125 changed one line |
| in /srv/www/htdocs aggiungere un file index.htm |
| in /srv/www/htdocs aggiungere un file index.htm\\ \\ |
| At line 128 changed one line |
| Questo sembrerebbe dovuto a: |
| Questo sembrerebbe dovuto a:\\ \\ |