[BC3] Tomcat + Apache (linux)

Pagina: 1
Acties:

  • rickiii
  • Registratie: Maart 2000
  • Laatst online: 26-07 09:49
Ik heb Apache werken en wil tomcat daarbij.
Die heb ik gewoon uitgepakt en werkt gewoon.

nu wil ik de apache+tomcat koppeling en doe dit in httpd.conf:
Include "/usr/local/jakarta-tomcat/conf/mod_jk.conf-auto"

mod_jk.so in /apache/libexec

- start tomcat (werkt nog steeds)
- start apache (werkt niet meer)

hij kent mod_jk.so niet
ik heb em goed gedownload (geen corrupte file)

wat kan ik nog meer over het hoofd gezien hebben ? Volgens de howto is zelf compilen NIET nodig.

Ik denk altijd heel goed na voordat ik iets stoms zeg


Verwijderd

Wat voor een foutmelding krijg je (ff een dump van je xterm)?

<persoonlijk>
Compilen blijf ik beter vinden: Je kunt alles tot in de finesses customizen en optimizen. Enige nadeel is de lange buildtijd (zoals de p3 hier, waar ik vanaf 0500 vanochtend kde-2.2alpha1 aan het compilen ben... *sucht* )
</persoonlijk>

/me loves Free Software :)

  • rickiii
  • Registratie: Maart 2000
  • Laatst online: 26-07 09:49
Console-dump:
Sytax error on line 8 of /usr/local/jakarta-tomcat/conf/mod_jk.conf-auto: Invalid command ''LoadModule'', perhaps mis-spelled or defined by a module not included in the serverconfiguration
./apachectl start: httpd could not be started

<mod_jk.conf-auto>
LoadModule jk_module libexec/mod_jk.so

JkWorkersFile /usr/local/jakarta-tomcat-3.2.1/conf/workers.properties
JkLogFile /usr/local/jakarta-tomcat-3.2.1/logs/mod_jk.log

JkLogLevel error

..... etc
</mod_jk.conf-auto>

EDIT: Wat blijkt -> GEEN DSO Support in mijn versie van Apache.. dwz geen mogelijkheid om mod_jk.so zelf te compileren ookal zou ik ''t willen (wat niet eens nodig hoeft te zijn)

Ik denk altijd heel goed na voordat ik iets stoms zeg


  • rickiii
  • Registratie: Maart 2000
  • Laatst online: 26-07 09:49
Dit doe ik (ik dacht dat het goed was)
Eerst een schone install van Red Hat 7.0

01: cd /tmp/apache1.3.19
02: ./configure --prefix=/usr/local/apache --enable-module=so
03: cd /tmp/php4.0.4
04: ./configure --with-mysql --with-apache=../apache1.3.19 --enable-track-vars
05: make
06:.make install
07: cd /tmp/apache1.3.19
08: ./configure --activate-module=src/modules/php4/libphp4.a
09: make
10: make install
11: cd /tmp/php4.0.4
12: cp php.ini-dist /usr/local/lib/php.ini

*** edit httpd.conf ***
13: AddType application/x-httpd-php .php

**** unzip/tar Tomcat to /usr/local/jakarta-tomcat ***
14: cd /usr/local/jakarta-tomcat/bin

**** edit tomcat to let tomcat know where the JDK is ***
15: ./startup.sh

**** copy mod_jk.so to /apache/libexec ***
*** edit httpd.conf ***
Include "/usr/local/jakarta-tomcat/conf/mod_jk.conf-auto"

16: cd /usr/local/apache/bin
17: ./apachectl start

the SAME error again
-------------------------------------------------------------------------------------------------
Sytax error on line 8 of /usr/local/jakarta-tomcat/conf/mod_jk.conf-auto:
Invalid command ''LoadModule'', perhaps mis-spelled or defined by a module not
included in the server configuration
./apachectl start: httpd could not be started
-------------------------------------------------------------------------------------------------

Nu kan ik weer van begin af aan beginnen :(
Weet iemand de configuratie om LoadModule enabled te zetten ? En bij welke stap ik die regel moet typen.

bvd
rick

Ik denk altijd heel goed na voordat ik iets stoms zeg


  • rickiii
  • Registratie: Maart 2000
  • Laatst online: 26-07 09:49
Nou ik ben er achter gekomen via de Tomcat-usersgroup..

je moet --enable-module=so bij de configuratie instellen.

Mocht mod_jk.so dan nog niet werken, kun je die zelf compileren (zie mod_jk.so-howto)

Ik denk altijd heel goed na voordat ik iets stoms zeg