Hello friends.. ... has anybody of you dealt with Jakarta Tomcat? ... if so, have u had problems with the configuration? .... moreover, would somebody send me his Tomcat config file? Thanx in advance Gabriele
On Monday 10 September 2001 16:39, Gabriele Biondo wrote: Hi,
... has anybody of you dealt with Jakarta Tomcat?
Yes.
... if so, have u had problems with the configuration?
There was couple of issues with the SuSE rpms in 7.1(or was it 7.2), where it also installs JServ, but tries to load the JServ module twice in the Apache config file.
.... moreover, would somebody send me his Tomcat config file?
Is it getting Tomcat installed and working you are having problems with, or configuring Tomcat once it is istalled and running? Phil -- Linux 2.4.4-4GB 9:07am up 11 days, 16:48, 2 users, load average: 1.67, 0.48, 0.20
Phil Shrimpton wrote:
There was couple of issues with the SuSE rpms in 7.1(or was it 7.2), where it also installs JServ, but tries to load the JServ module twice in the Apache config file.
I found both unusable and wrote up some instructions for setting it up manually in SuSE 7.2, which I'd be happy to share if anyone is interested. -- =========================================================== Glenn Holmer (gholmer@ameritech.net) ----------------------------------------------------------- Performing music well is a matter of distorting the score to produce the desired illusion, namely the existence of the score in a pure state. ----------------------------------------------------------- -Shadow, 1975 ===========================================================
On Tuesday 11 September 2001 11:16, Glenn Holmer wrote: Hi,
There was couple of issues with the SuSE rpms in 7.1(or was it 7.2), where it also installs JServ, but tries to load the JServ module twice in the Apache config file.
I found both unusable and wrote up some instructions for setting it up manually in SuSE 7.2, which I'd be happy to share if anyone is interested.
That would be great, I took the comment things out till it works approach, but it would be good to do it properly. Cheers Phil -- Linux 2.4.4-4GB 12:16pm up 11 days, 19:56, 1 user, load average: 1.56, 0.51, 0.22
Phil Shrimpton wrote:
On Tuesday 11 September 2001 11:16, Glenn Holmer wrote:
Hi,
There was couple of issues with the SuSE rpms in 7.1(or was it 7.2), where it also installs JServ, but tries to load the JServ module twice in the Apache config file.
I found both unusable and wrote up some instructions for setting it up manually in SuSE 7.2, which I'd be happy to share if anyone is interested.
That would be great, I took the comment things out till it works approach, but it would be good to do it properly.
Well, I don't know about "properly", but this works for us. Note that the instructions are biased toward using it with Apache. Running Tomcat on SuSE 7.2 -------------------------- One of the first things the Apache startup script (/etc/init.d/apache) does is look for /etc/rc.config.d/apache.rc.config and source it if found. This file includes lines to set yes/no values for HTTPD_SEC_MOD_JSERV and HTTPD_SEC_MOD_TOMCAT. If you run SuSEconfig after changing this file, you have to watch out for a console message saying "You have modified /etc/httpd/suse_include.conf, leaving it untouched..." and copy it back if so. SuSEconfig (in /sbin/conf.d/SuSEconfig.apache) writes several files in /etc/httpd. suse_loadmodule.conf, suse_addmodule.conf, and suse_include.conf get Include'd by httpd.conf; suse_define.conf and suse_text.conf get used by the apache startup script in /etc/init.d... Frankly, I find this all hopelessly Byzantine and pointless; the rest of this document explains how to enable Tomcat on 7.2 "manually". 0) First of all, since the jakarta RPM flags JServ as a prerequisite, we'll leave it installed, but disable and ignore it. We will be using the Tomcat files as installed by the SuSE RPM (jakarta). Set the HTTPD_SEC_MOD flags for both JSERV and TOMCAT to "no" in /etc/rc.config.d/apache.rc.config and run SuSEconfig. 1) First let's compile our own JServ module for Apache. Install the SuSE source RPM for jakarta. Make sure you also have the apache-devel package installed. Enter directory /usr/src/packages/SOURCES and extract the Tomcat source, then enter subdirectory jakarta-tomcat-3.2.1-src/src/native/apache/jserv and compile (as root) like this: apxs -c *.c -o mod_jserv.so When the compile completes, copy the output file to /usr/lib/apache. Note the difference in size between this file and the one provided by the JServ RPM. 2) Now let's set up Tomcat. Go to his directory (/opt/jakarta), and edit conf/server.xml to comment out the Connector on port 8080 (this is for using Tomcat as a standalone web server as well as app server; we will of course be using Apache). 3) Start Tomcat (/opt/jakarta/bin/startup.sh) to get him to write the file tomcat-apache.conf, and paste the contents of that file into httpd.conf (you can use an include, but be aware that Tomcat regenerates that file every time he starts). Make sure that the correct location for mod_jserv.so is referenced! Also make sure that ApJServLogFile points to a file that exists and is writable by Tomcat (you may have to put in a line like "ApJServLogFile /var/log/httpd/jserv.log"). 4) Start Apache. If there are any problems, see /var/log/httpd/error_log or start Apache in syntax-checking mode (-f <config-file> -t). 5) Add a context for your web application in /opt/jakarta/conf/server.xml, make sure it's reflected in the bottom part of /etc/httpd/httpd.conf (if you've copied from tomcat-apache.conf instead of including). 6) Code like a crazy monkey! -- ____________________________________________________________ Glenn Holmer gholmer@weycogroup.com Programmer/Analyst phone: 414.908.1809 Weyco Group, Inc. fax: 414.908.1601
I'm new to this thead, but rather than start again, I'm jumping in. I've
got SUSE 7.2 and installed tomcat and apache from the rpm's on SUSE's web
site. I almost have it working but...
my apache and tomcat worked standalone. I can goto http://10.1.1.100:8080
and everything works perfect.
I can run http://10.1.1.100 and I get the default apache web site
I cut and pasted my tomcat-apache.conf and put it in the jserv.conf
When I now run my http://10.1.1.100/examples
I get the correct directory, but when I run any jsp or servlet, the web
server errors with
internal error, and in my log is a bunch of ajp12: can not connect to host
127.0.0.1:8007
HELP HELP HELP
any ideas?
----- Original Message -----
From: "Glenn Holmer"
Phil Shrimpton wrote:
On Tuesday 11 September 2001 11:16, Glenn Holmer wrote:
Hi,
There was couple of issues with the SuSE rpms in 7.1(or was it 7.2), where it also installs JServ, but tries to load the JServ module twice in the Apache config file.
I found both unusable and wrote up some instructions for setting it up manually in SuSE 7.2, which I'd be happy to share if anyone is interested.
That would be great, I took the comment things out till it works approach, but it would be good to do it properly.
Well, I don't know about "properly", but this works for us. Note that the instructions are biased toward using it with Apache.
Running Tomcat on SuSE 7.2 -------------------------- One of the first things the Apache startup script (/etc/init.d/apache) does is look for /etc/rc.config.d/apache.rc.config and source it if found. This file includes lines to set yes/no values for HTTPD_SEC_MOD_JSERV and HTTPD_SEC_MOD_TOMCAT. If you run SuSEconfig after changing this file, you have to watch out for a console message saying "You have modified /etc/httpd/suse_include.conf, leaving it untouched..." and copy it back if so.
SuSEconfig (in /sbin/conf.d/SuSEconfig.apache) writes several files in /etc/httpd. suse_loadmodule.conf, suse_addmodule.conf, and suse_include.conf get Include'd by httpd.conf; suse_define.conf and suse_text.conf get used by the apache startup script in /etc/init.d...
Frankly, I find this all hopelessly Byzantine and pointless; the rest of this document explains how to enable Tomcat on 7.2 "manually".
0) First of all, since the jakarta RPM flags JServ as a prerequisite, we'll leave it installed, but disable and ignore it. We will be using the Tomcat files as installed by the SuSE RPM (jakarta). Set the HTTPD_SEC_MOD flags for both JSERV and TOMCAT to "no" in /etc/rc.config.d/apache.rc.config and run SuSEconfig.
1) First let's compile our own JServ module for Apache. Install the SuSE source RPM for jakarta. Make sure you also have the apache-devel package installed. Enter directory /usr/src/packages/SOURCES and extract the Tomcat source, then enter subdirectory jakarta-tomcat-3.2.1-src/src/native/apache/jserv and compile (as root) like this:
apxs -c *.c -o mod_jserv.so
When the compile completes, copy the output file to /usr/lib/apache. Note the difference in size between this file and the one provided by the JServ RPM.
2) Now let's set up Tomcat. Go to his directory (/opt/jakarta), and edit conf/server.xml to comment out the Connector on port 8080 (this is for using Tomcat as a standalone web server as well as app server; we will of course be using Apache).
3) Start Tomcat (/opt/jakarta/bin/startup.sh) to get him to write the file tomcat-apache.conf, and paste the contents of that file into httpd.conf (you can use an include, but be aware that Tomcat regenerates that file every time he starts). Make sure that the correct location for mod_jserv.so is referenced! Also make sure that ApJServLogFile points to a file that exists and is writable by Tomcat (you may have to put in a line like "ApJServLogFile /var/log/httpd/jserv.log").
4) Start Apache. If there are any problems, see /var/log/httpd/error_log or start Apache in syntax-checking mode (-f <config-file> -t).
5) Add a context for your web application in /opt/jakarta/conf/server.xml, make sure it's reflected in the bottom part of /etc/httpd/httpd.conf (if you've copied from tomcat-apache.conf instead of including).
6) Code like a crazy monkey!
-- ____________________________________________________________ Glenn Holmer gholmer@weycogroup.com Programmer/Analyst phone: 414.908.1809 Weyco Group, Inc. fax: 414.908.1601
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq and the archives at http://lists.suse.com
I've got apache running and want to install PHP3 module. Where do I download it from? (ie, what is the path on suse's ftp server). I'm new at this and was wondering if there is any special integration structions I need, or will apache automagically process the php files. thanks.
On September 11, 2001 06:16 am, Glenn Holmer wrote:
Phil Shrimpton wrote:
There was couple of issues with the SuSE rpms in 7.1(or was it 7.2), where it also installs JServ, but tries to load the JServ module twice in the Apache config file.
I found both unusable and wrote up some instructions for setting it up manually in SuSE 7.2, which I'd be happy to share if anyone is interested.
Yes that would be great as I spent several days trying to get it to work with no availe. Chris H,
participants (6)
-
Chris Herrnberger
-
Gabriele Biondo
-
Glenn Holmer
-
Glenn Holmer
-
Phil Shrimpton
-
pkellner