Cal Poly Pomona

Master Calendar - Setup Instructions


Return to main menu
To set up your calendar for the first time, follow the instructions below:

  1. Perl 5.001 or higher is required and is assumed to be in /usr/local/bin/perl.

  2. 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
    

  3. Set directory permissions for /www/calendar to 755 (rwxr-xr-x) by entering:
    	chmod 755 calendar
    
    from the /www directory.

  4. Set directory permissions for /www/calendar/public to 777 (rwxrwxrwx) by entering:
    	chmod 777 public
    
    from the /www/calendar directory.

  5. Set directory permissions for /www/calendar/private to 755 (rwxr-xr-x) by entering:
    	chmod 755 private
    
    from the /www/calendar directory.

  6. Edit sub GlobalVars() in cgi.pl as follows:

  7. Copy the following files to $html_path:
    	cp_logo2.gif
    	readme.htm
    	small_left.gif
    	small_right.gif
    	stopsign.gif
    
    

  8. 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
    

  9. Copy the following files to $cgi_path/private:
    	addevent.pl
    	addnote.pl
    	filter.pl
    	mvevent.pl
    	mvnote.pl
    	purge.pl
    

  10. 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.

  11. 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
    

  12. 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.

  13. 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.

  14. 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
    

Cal Poly Pomona home page