Edit the random.cgi file
Make sure the first line of the file points to the Perl 5 executable
on your web server. This is usually /usr/bin/perl or /usr/local/bin/perl,
but it might be /usr/local/bin/perl5 or something else.
Set the "$default_file" variable to a filename on your system
containing URLs to use as a default. Be sure to include enough of
the path for the program to find the file. On some systems, you may
be able to use relative paths (beginning with "../"), but you may need
to use a full path starting with the root directory. This file will be
used when you didn't ask for an explicit file as part of the URL.
Install random.cgi on your web server
Put it in a directory where you are allowed to run CGI scripts.
Usually it's called cgi-bin/ but it may be different on your system.
Make sure your web server knows how to run it.
On a unix server, this means setting the execute permissions on the file
or associating the file extension with the perl interpreter on your Windows
server. Set the execute permissions on a unix server by running
"chmod 755 selection.cgi."
|