IDependOn-Set: 1
IDependOn-Set: 13
IDependOn-Set: 15
IDependOn-Set: 2
IDependOn-Set: 273
IDependOn-Set: 277
IDependOn-Set: 280
LastModifiedSecs: 933886173
Parent: 15
SequenceNumber: 2
Title: Installing Apache/JServ on Irix 6.5.4
Part: 0
Author-Set: jmf@melsud.res.ray.com
LastModifiedSecs: 933886173
Type: 
Lines: 147
This is how I installed Apache 1.3.6 with JServ-1.0 on an SGI O2 with Irix 6.5.4. 

Please note that I do not claim to be an expert in anything. I used directions from web sites and the apache users' group, and clues from searching the mailing list archives. Since I did need to pull the info together in a way that worked for my operating system, I am posting what I learned in case it may of use to someone else.

There were 2 stages:
A. Set-up
B. Install and  Automate

A.Set-up
1a.Download the apache and jserv tar.gz files from web, and decompress to .tar files.
1b.I used this directory structure, and my scripts reflect it:
 /usr3/downloads - .tar files for apache and jserv (decompressed from tar.gz to .tar)
 /usr3/install - apache and jserv installation files (my scripts and directions)
 /usr3 - place where apache and jserv source files are unpacked
 /usr/local/apache - place where apache is installed; this is the default
 
2.In order to get jserv compiled into apache, I needed to add 2 unix tools and use them to install both apache and jserv. The tools are gmake, which is used instead of make, and a current version of gcc, namely gcc-2.95. This was the complicated part.

2a: I first installed the developer libraries from 2 CD's that came with SGI's 6.5 release, then downloaded gmake and gcc from the Freeware section of SGI's website and installed them using SGI's software installer. Since step 2b builds a more recent gcc, I think you could skip the freeware gcc. I did need gmake. I don't know whether or not the material in the CD libraries is needed for gmake or for building the newer gcc.

2b: I downloaded gcc-core-2.95.tar.gz from <ftp://go.cygnus.com/pub/sourceware.cygnus.com/pub/egcs/releases/gcc-2.95/> and carefully followed the directions to configure and build, using 'gmake' rather than 'make' and using default configurations only. This put the current version of gcc into /usr/local/bin and also created new versions of related files. 

B.Install and Automate
I worked interactively in the shell, then put the commands into a script and directions files. I rebuilt from the scripts until they worked properly.
Now that I have it figured out, I simply run my install script and then follow the directions in my configure-directions file. I have 4 files, which are included below. The files are "summaryInstall", "conf-options", "jserv.sh", and config-directions. It's a good idea to make and test your own versions, so you can rebuild as needed without figuring out the details all over again.


-----summaryInstall - a file with directions for doing the install

To build or rebuild apache with jserv:

(before starting)
 % cd /usr3/install
 % su
 
(if needed)
 % chmod u+x jserv.sh
 
(then do this) 
1% setenv CC /usr/local/bin/gcc
2% ./jserv.sh
3% follow directions in config-direction


-----conf-options - a configure command for jserv - be sure to change the java paths to the ones that you are using on your system!

./configure \
--prefix=/usr/local/jserv \
--with-apache-src=/usr3/apache_1.3.6 \
--with-jdk-home=/usr/java2/usr/java \
--with-jsdk=/usr/JSDK2.0/lib/jsdk.jar \
--enable-apache-conf

-----jserv.sh - a shell script to do the install and keep a log, so if something doesn't work I can find out where the problem is. The absolute path for the log is needed because the script keeps changing directories.

date >> /usr3/install/install.log
echo "cd /usr3" >> /usr3/install/install.log
cd /usr3 ;
echo "rm -fr ApacheJServ-1.0 apache_1.3.6" >> /usr3/install/install.log
rm -fr ApacheJServ-1.0 apache_1.3.6;
echo "rm -fr /usr/local/apache" >> /usr3/install/install.log
rm -fr /usr/local/apache;
echo "cp downloads/?pache* ." >> /usr3/install/install.log
cp downloads/?pache* . ;
echo "tar xf apache_1.3.6.tar" >> /usr3/install/install.log
tar xf apache_1.3.6.tar;
echo "tar xf Apache_JServ_1.0.tar" >> /usr3/install/install.log
tar xf Apache_JServ_1.0.tar;
echo "rm Apache_JServ_1.0.tar apache_1.3.6.tar" >> /usr3/install/install.log
rm Apache_JServ_1.0.tar apache_1.3.6.tar;
echo "cp /usr3/install/conf-options ApacheJServ-1.0\n" >> /usr3/install/install.log
cp /usr3/install/conf-options ApacheJServ-1.0;
echo "cd apache_1.3.6" >> /usr3/install/install.log
cd apache_1.3.6;
echo "./configure" >> /usr3/install/install.log
./configure;
echo "gmake" >> /usr3/install/install.log
gmake;
echo "gmake install\n" >> /usr3/install/install.log
gmake install;
echo "cd /usr3/ApacheJServ-1.0" >> /usr3/install/install.log
cd /usr3/ApacheJServ-1.0;
echo "sh conf-options" >> /usr3/install/install.log
sh conf-options;
echo "gmake" >> /usr3/install/install.log
gmake;
echo "gmake install\n" >> /usr3/install/install.log
gmake install;
echo "cd /usr3/apache_1.3.6" >> /usr3/install/install.log
cd /usr3/apache_1.3.6;
echo "gmake" >> /usr3/install/install.log
gmake;
echo "gmake install\n" >> /usr3/install/install.log
gmake install;
echo "chgrp nobody /usr/local/apache/logs" >> /usr3/install/install.log
chgrp nobody /usr/local/apache/logs
echo "chmod ug+rwx /usr/local/apache/logs\n" >> /usr3/install/install.log
chmod ug+rwx /usr/local/apache/logs
echo "cd /usr3/ApacheJServ-1.0/example" >> /usr3/install/install.log
cd /usr3/ApacheJServ-1.0/example
echo "chmod u+x Hello.class" >> /usr3/install/install.log
chmod u+x Hello.class
echo "done; now configure with /usr3/install/config-directions" >> /usr3/install/install.log
echo "done; now configure with /usr3/install/config-directions"

------------config-directions

(adjust configuration files after running jserv.sh)

(first check that jserv has been built into apache)
/usr/local/apache/bin/httpd -l;
(the list should include mod_jserv, usually at the end when I do it)


(adjust apache config file)
vi /usr/local/apache/conf/httpd.conf
        (comment out)   #Port 80
        (add)           Port 81
        (note: with port 88, apache worked but jserv did not;
                with port 8080, apache did not work)
        (I think the port oddity is because Netscape FastTrack Server is already installed with the operating system.)  

        (add, eg. as last line in file) 
        Include /usr3/ApacheJServ-1.0/example/jserv.conf


(adjust jserv config files)
vi /usr3/ApacheJServ-1.0/example/jserv.properties
        log=true;
        log.file=/usr/local/apache/logs/jserv.log       

vi /usr3/ApacheJServ-1.0/example/jserv.conf
(catch mod_jserv errors and redirect to apache error log)
(near line 24, change ApJServLogFile entry to this )
ApJServLogFile DISABLED 


(restart apache)
/usr/local/apache/bin/apachectl restart

(test jserv)
http://machine-name:81/example/Hello


Joan Friedman
email: jmf@melsud.res.ray.com
August 5, 1999
EndPart: 0
