http://hoohoo.ncsa.uiuc.edu/docs/Overview.html
.
/l/src/httpd
and executable in
/usr/local/bin
), you have a number of alternatives
and instruction sets to go about this. If downloading software
packages, eg, compressed tar archives, from the net is new to you,
be sure to use this opportunity to do so with the HTTPd sources.
If compiling programs from sources under Unix is new to you, do so
with the HTTPd sources according to the instructions in the online
documentation. Make sure to configure StartServers 1
and MaxServers 3
(or less) in httpd.conf
as
instructed in class. Also, use /u/USERNAME
as your home directory instead of the output of pwd
(eg, not /nfs/paca/home/user3/USERNAME
).
$0
and
@ARGV
)`pwd`
)
sprintf("%03o", umask)
)
$<
,
$>
, $(
, $)
,
getpwuid(UID)
, getgrgid(GID)
)%ENV
)keys
and sort
functions can come
in handy here.
man perl
or online in the
Perl resources) for more detailed
information about any of these items, if the Learning
Perl text doesn't cover them. Also, if your script output
is in HTML, make sure to escape any special HTML characters in your
text, eg:
- s/&/&/g
- s/</</g
- s/>/>/g
starthttpd
in your home directory to use as a
server start/restart/kill convenience command. Also, register a
starthttpd
command in your personal crontab to run at
15 minute intervals to ensure that your web server remains up at
all times. Make sure your intervals aren't exactly on the quarter
hours so that the machines don't experience a load spike every 15
minutes from everyone running their starthttpd
's at
the same time. Register a starthttpd -r
command to
run once a day to minimize the number of surplus servers you have
running. See the man pages for crontab
for complete
information about crontabs. Kill any running server and restart
one with starthttpd
. Finally, use your script to make
sure the CGI environment is exactly as you want it, configuring your
starhttpd
and your server configuration files as needed.
starthttpd
crontab command to ensure that your server
doesn't remain down without notice and is up when we visit to grade it.<kinzler@cs.indiana.edu> 6 February 1996