- Perl 5.001 or higher is required and is assumed to be in /usr/local/bin/perl.
- Create a directory in your web server's document root (/www/calendar is one obvious choice) with two subdirectories under it called /public and /private. Your directory structure should look something like this:
/www/calendar/private
/www/calendar/public
- Set directory permissions for /www/calendar to 755 (rwxr-xr-x) by entering:
chmod 755 calendar
from the /www directory.
- Set directory permissions for /www/calendar/public to 777 (rwxrwxrwx) by entering:
chmod 777 public
from the /www/calendar directory.
- Set directory permissions for /www/calendar/private to 755 (rwxr-xr-x) by entering:
chmod 755 private
from the /www/calendar directory.
- Edit sub GlobalVars() in cgi.pl as follows:
- Copy the following files to $html_path:
cp_logo2.gif
readme.htm
small_left.gif
small_right.gif
stopsign.gif
- Copy the following files to $cgi_path:
calendar.pl
cgi.pl
daily.pl
date.pl
maileven.pl
mailnote.pl
monthly.pl
search.pl
weekly.pl
- Copy the following files to $cgi_path/private:
addevent.pl
addnote.pl
filter.pl
mvevent.pl
mvnote.pl
purge.pl
- Set the permissions for the perl scripts in /www/calendar and /www/calendar/private to 755 (rwxr-xr-x) by entering the following command:
chmod 755 *.pl
from within the /www/calendar and /www/calendar/private subdirectories.
- Create two symlinks in /www/calendar/private that point to cgi.pl and date.pl in /www/calendar. In other words, chdir to /www/calendar/private and enter:
ln -s /www/calendar/public/cgi.pl cgi.pl
ln -s /www/calendar/public/date.pl date.pl
- If you don't want the world to see your calendar, then set up password authentication for /www/calendar. Each web server is different, so follow the instructions for your particular server to password-protect this directory. If you don't care who sees the events and notes on the calendar, then do not restrict access to this directory.
- If you want to restrict the ability to add, change, or delete events, then you must set up password authentication for /www/calendar/private. Each web server is different, so follow the instructions for your particular server to pasword-protect this directory. If you don't care who adds, changes, or deletes events, then do not restrict access to this directory.
- Point your browser (preferably Netscape 2.0 or above) to:
http://www.domain.edu/calendar/calendar.pl
and away you go! (Note: Netscape browser versions less than 2.0 do not display the monthly select menu correctly.) Also, your browser must be able to display tables, or the calendar will appear as a single string of numbers, like this:
123456789101112131415161718192021222324252627282930