PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : SuSE 8.1, Apache2, PHP5, Tomcat 5.5, mod_jk2



housekatze
07.10.04, 21:05
Hallo,

Habe Linux SuSE 8.1 und mir da den neusten Tomcat und Apache2 mit PHP5 installiert. Letzteres durch das Paket XAMPP. :)

Verzeichnisse:
/opt/lampp : da liegen MySQL und Apache2
/data/programs/catalina : Tomcat 5.5

Ich hab dem Apache auch mod_jk2 beigebracht. Das lädt er auch anstandslos... allerdings fehlt mir da der Durchblick, was ich da alles konfigurieren muß, damit z.B. ein Directory wie z.B. http://server/meineJSPs auf den Tomcat zeigt und da sich dann JSP's ausführen lassen.

Ich weiß nur in der httpd.conf, workers2.properties und server.xml muß was konft werden, nur wie mach ichs richtig? :confused:

Gruß, housekatze !

housekatze
08.10.04, 00:53
Also:

in der workers2.properties in /opt/lamp/etc :
# Defines a load balancer named lb. Use even if you only have one machine.
[lb:lb]

# Example socket channel, override port and host.
[channel.socket:localhost:8009]
port=8009
host=127.0.0.1

# define the worker
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009
group=lb

# Map the Tomcat examples webapp to the Web server uri space
[uri:/servlets-examples/*]
group=lb
[uri:/jsp-examples/*]
group=lb
[uri:/ROOT/*]
group=lb
[uri:/manager/*]
group=lb
[uri:/tomcat-docs/*]
group=lb
[uri:/webdav/*]
group=lb

[status:]
info=Status worker, displays runtime information

[uri:/jkstatus/*]
info=The Tomcat /jkstatus handler
group=status:

mit den uri-tags mapped man die Applikationen aus dem webapps-Pfad

in der httpd.conf muß das stehen:
LoadModule jk2_module modules/mod_jk2.so
JkSet config.file /opt/lampp/etc/workers2.properties

Die zweite Zeile hatte bei mir gefehlt, deshalb gings nicht.

in der server.xml dann nur den http-Server auf Port 80 auskommentieren, und schon sollte es laufen !

:)