• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Apache +Tomcat not working

BearX00

Senior member
Im setting up a webserver SinisterKoala and ive installed apache and ive also installed tomcat so i can use java server pages.
the directions say to install the module using the following line

apxs -c -o mod_jk.so *.c

and when i execute that i get an error saying

apxs:Error: Sorry, no DSO support for Apache available
apxs:Error: under your platform, make sure the Apache
apxs:Error: module mod_so is compiled into your server
apxs:Error: binary '/usr/local/apache/bin/httpd'.

anyone know how to fix this??? what i want to do is install tomcat as a in server module of apache, and these are the steps laid out in the directions...

 
You compiled Apache wrong if you want that option apparently. You need to get it to make mod_so by using configure options. There are a couple options --enable-module=so --enable-shared=so works as does --enable-shared=max

You will also need to make sure the httpd.conf file is setup to handle modules correctly once you've done this also. i would backup the file and then add back in your VHosting setup as it would ensure it was correct. Do this before doing make install on apache
 
how do i make sure that httpd.conf is set up to handle modules correctly? i did install the php module

also i tried the

<< --enable-module=so --enable-shared=so >>

combination and that gave me an error
 
do a make clean first and look at the output from ./configure --help it does work and just takes a few tweaks. the changes to the conf file mostly consist of adding load module statments and any configuration for those modules
 
i found this command
--add-module=/path/to/mod_jk
--enable-module=jk

and makes the configure file correctly
but then during make when it tries to do mod_jk.c
it cant find the .h files that it is looking for
but i put them in the same dir as the mod_jk, and also created a path to them
i dont know how to fix this yet
 
What directory is the config file looking for that .h file? You should be able to just grep that out of the config file and change it as necessary.

[edit]Correction, check the makefile that the config made. Sorry.[/edit]
 
ok, I'll spell this out, but you had better learn how to do this if you're running a production server. After all not everything works with this since there are newer versions out. This is simply a sample I put together when I compiled the last versions. Also this includes options and paths that relate only to the box I did this on

--------------------------------------------------------------------------
configure mod_ssl
./configure --with-apache=../apache_1.3.14
configure mod_perl
perl Makefile.PL EVERYTHING=1 APACHE_SRC=../apache_1.3.14/src USE_APACI=1
PREP_HTTPD=1 DO_HTTPD=1
make mod_perl
make install mod_perl
copy in mod_gzip.c
configure apache
CFLAGS='-O2 -DEAPI' SSL_BASE=/usr ./configure --prefix=/usr/local/apache
--enable-module=ssl --enable-module=so
--activate-module=src/modules/perl/libperl.a --enable-module=perl
--enable-module=gzip
--enable-shared=gzip
--enable-module=info --enable-shared=info
make apache
make certificate TYPE=test
make install apache
configure php
CFLAGS='-O2 -DEAPI -I/usr/include/openssl' ./configure
--with-apxs=/usr/local/apache/bin/apxs --with-mysql=/usr --enable-debug=no
--enable-memory-limit=yes
gmake php
gmake install php
 
Back
Top