Installing WebObjects 5 on Linux

I installed WebObjects 5.0 successfully on debian 2.2 (testing).

Here's what I did:
* download jdk 1.3.1 from sun and put it in /usr/local
  -- available from http://java.sun.com/j2se/1.3/download-linux.html

* install webobjects after renaming the files 
  (they were mounted as all lowercase for me) using install.sh

* set up my NEXT_ROOT and PATH environment variables in my .profile
   -- export NEXT_ROOT=/var/Apple
   -- export PATH=${PATH}:/usr/local/jdk1.3.1/bin 
   (this is bash syntax; for tcsh, try setenv NEXT_ROOT /var/Appple, etc.)

* compile the apache adaptor
  -- we want to change the default OS to HPUX
>># Define the OS.
>>ifeq "" "${OS}"
>>OS = HPUX
>>endif

  -- and change the adaptors built for HPUX
  -- make sure to set the correct path for apxs
>>ifeq "HPUX" "$(OS)"
>>ADAPTORS = CGI Apache
>>APXS = /usr/bin/apxs
>>endif

  -- change CGI/Makefile to eliminate the annoying warning messages
     during compile
>>#ifeq "HPUX" "$(OS)"
>>#CFLAGS += -nopdolib
>>#endif

* install the module like so
	apxs -i -n WebObjects mod_WebObjects.so

* add this line to httpd.conf:
    Include /var/Apple/Library/WebObjects/Adaptors/Apache/apache.conf 
  -- change the LoadModule line to /usr/lib/apache/1.3/mod_WebObjects.so 
     (it may be different for RedHat, SuSE, etc.)

* start up wotaskd:
    /var/Apple/Library/WebObjects/Executables/WOServices start

* start up JavaMonitor:
  /var/Apple/Library/WebObjects/JavaApplications/JavaMonitor.woa/JavaMonitor &

notes
-----
I had to install a few weird debian packages (using apt-get instal XXX). These included:
* libdb3-dev (to compile the apache adaptor)
* libstdc++2.9-glibc2.1_2.91.66 (for java)
* apache-dev (to get apxs)

Leave a Reply

Your email address will not be published. Required fields are marked *