On 9/20/2012 12:24 PM, Dana Mitchell wrote:
I'm working on installing HTTP server IMWEBSRV on a system with a read only
root zfs. The setup.sh wants to create directories under
/usr/lpp/internet/server_root which obviously doesn't work when /usr is in a RO
root. Has anyone dealt with this somehow?

thanks
Dana


Yes.

I found instead of running the setup script, I could get
by by just copying some files to a directory that is R/W.

In particular, I set up /web in my zFS and then issued these commands:

su                       <- note: you do have to be superuser
cp /usr/lpp/internet/samples/config/C/h* /web
cp /usr/lpp/internet/samples/config/C/i* /web
cp /usr/lpp/internet/samples/config/C/j* /web
cp /usr/lpp/internet/samples/config/C/l* /web
cd /web
mkdir logs
mkdir reports
mkdir pub
cp /usr/lpp/internet/server_root/pub/C/*.html /web/pub
chmod 766 *
exit
exit

Next you want to edit the configuration file, maybe:

cd /web
oedit httpd.conf

  then issue these commands:

f Port 1               (if you changed the port number in
                        the TCPIP parms, match it here)

f PidFile 1            (this value should be /web/httpd-pid)

f AccessLog 1          (this value should be /web/logs/httpd-log)

f ErrorLog 1           (this value should be /web/logs/httpd-errors)

f CgiErrorLog 1        (this value should be /web/logs/cgi-error)

f AccessReportRoot 1   (value should be /web/reports)

f sslmode 1             (ensure value is off)

f pass last 1           (for Pass /* the value should be /web/pub/*)


end                      (save and exit)

Then your HTTPD proc to start the server should look something like this:

//HTTPD  PROC P1='-B',
// P2='-r /web/httpd.conf',
// P3='ENVAR("_CEE_ENVFILE=/web/httpd.envvars")/ -vv'
//WEBSRV1 EXEC PGM=IMWHTTPD,REGION=0K,TIME=NOLIMIT,
// PARM=('&P3 &P2 &P1')
//SYSIN DD DUMMY
//OUTDSC OUTPUT DEST=HOLD
//SYSPRINT DD SYSOUT=*,OUTPUT=(*.OUTDSC)
//SYSERR DD SYSOUT=*,OUTPUT=(*.OUTDSC)
//STDOUT DD SYSOUT=*,OUTPUT=(*.OUTDSC)
//STDERR DD SYSOUT=*,OUTPUT=(*.OUTDSC)
//SYSOUT DD SYSOUT=*,OUTPUT=(*.OUTDSC)
//CEEDUMP DD SYSOUT=*,OUTPUT=(*.OUTDSC)

============================

There's more, but this is the essence.


All this and more is included in my paper "Setting
Up the IBM HTTP Server" that used to be available
for free on our website. But now, I have set up
"The Collected Papers of Steve Comstock" for sale as
a package that includes over 20 papers and, for some
papers, supporting files so you can test / experiment
for yourself.

See:

http://www.trainersfriend.com/SpecialSale/

and

http://www.trainersfriend.com/SpecialSale/LicenseOrderForm.html


--

Kind regards,

-Steve Comstock
The Trainer's Friend, Inc.

303-355-2752
http://www.trainersfriend.com

* Check out our sale of training materials at
  http://www.trainersfriend.com/SpecialSale/

  (sale absolutely ends 19 October, 2012)

* Let us know if you are interested in our
  training materials reseller program

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to