This is a first draft
When getting started with a Virtual Office Hours operation, the first thing that one needs to do is get a directory from which to start. This can be a directory underneath the server root, as it is with the Department of Chemistry and Biochemistry at UCLA (the site at which this service was developed, henceforth referred to as our site), or it (the directory) can be an individual's home account (such as http://www.some.site.edu/~user/voh), an option which is particularly useful if your sysadm will give you an account just for the voh service.
At our site we are taking advantage of the fact that with most
server's when a directory is requested by a browser, the file index.html
is automatically accessed. This allows us to use the short and easy to
remember URL:
http://www.chem.ucla.edu/uclavoh
Therefore our "home page" is actually called index.html.
Each of the classes that the site services is a directory of its own, and the motif of above is extended. Each class's home page is an index.html file that resides under a directory named for that class, giving, again, a fairly short, easy to remember URL.
<!-- begin -->
line for prepending
(this can be removed, but the script has to be modified). Both of these
files must be editable by the owner of the server's process (which is often
user=nobody group=nogroup). We do this by making both files owned by the
group nogroup and giving the group write permission (775 for the directory
and 664 for the qa.html file).
That should be it...
Virtual Office Hours is fairly easy to install. The following steps should get you to a working site in about 15 minutes. All kinds of customization can be done, but that takes more work and is up to the user.
tar xvf voh_1.0.tar
whereis perl
You need to mv the directory.
mv VOH newname
and crunch all occurrences of /VOH in the files. You have to be careful not to do this to the VOH_setup file in the perlscripts directory however. You can try something like moving VOH_setup somewhere else in the tree and then
perl -pi -e 's#/VOH#/newname#g' */*
I'd just use VOH for the first try...
$blanks_path = "/net/etc/httpd/htdocs/VOH/blanks";
$qaarf_path ="/net/etc/httpd/htdocs/VOH/profs";
$temp_path="/net/etc/httpd/htdocs/VOH/temp";
$VOH_EMAIL="voh@u.edu";
$voh_uid = "9000";
$nogroup_gid = "65534";
The first three refer to where the blanks, profs and temp directories are located in your tree. These could be lots of places, but I've included them in the tar so they exist and are the same. You should only need to change the part up to VOH unless you've renamed your site in step 4.
VOH_EMAIL is the email address that will be on the bottom of all of the pages. This should be the account answered by the person responsible for fixing problems with the pages.
voh_uid is the user id number for the account under which the pages will be edited. Some systems will want to create a special account for this, some will just use an account number. You can find this information out by looking at the password file
cat /etc/passwd
or by looking at files owned by the user with an ls -n
.
nogroup_gid is the group id under which the web server is running. Because the web server must create and edit files owned by you, it must have access. One way to give the server access while not giving everyone access is to make the edited files owned by the group under which the server is running, and give the group write access. This requires that you ask your sysadm to make your voh user also a member of that group so that you may actually chgrp files to this group.
For instance. Your system is using the NCSA HTTPd web server running as user nobody and group nogroup. You can ask your system administrator to add your voh user (say vohadm) to the the nogroup group. You then can find the nogroup number in the /etc/group file (it's often 65534 or 60002). Put this number in nogroup_gid and you're ready to go.
path_to_VOH_setup/VOH_setup path_to_conf/voh.conf
specifically from the VOH directory:
perlscripts/VOH_setup conf/voh.conf
cd temp
mv * ../
and then move the qaarf.html and af.html files into profs
mv qaarf.html profs
mv af.html profs
open(MAIL, "|/usr/bin/mailx -r $in{email} -s \"VOH Confidential Submission\"
$conf[3]") || (&Failure(14));
the /usr/bin/mailx needs to point at an appropriate mailer on your system. See the man pages to verify that the -s and -r commands send the Subject and Return address respectively. If your mailer doesn't allow these, you may have to modify the notice in the mail to indicate to the professors that they cannot simply reply to the message.
Give it a try, it will make better sense.