Koozali.org: home of the SME Server

WebCalendar

Mark S

WebCalendar
« on: July 08, 2002, 04:48:09 AM »
I am trying to install WebCalendar http://linux91.ma.utexas.edu/i/index.html

can someone figure out how to modify the perl install script for SME 5.1.2?  This would be nice to have setup for primary and virtual domains.

guestHH

Re: WebCalendar
« Reply #1 on: July 08, 2002, 09:36:02 AM »

Mark S

Re: WebCalendar
« Reply #2 on: July 08, 2002, 08:13:20 PM »
Thanks for the reply.  The existing How-To is for a different webCal.  The one at http://linux91.ma.utexas.edu/i/index.html seems to have many more features.  I've been trying to install it with not much luck.  Perl scripts run but seem to encounter configuration errors.
Mark

Michiel de Jager

Re: WebCalendar
« Reply #3 on: July 08, 2002, 11:07:41 PM »
Hello,

I have tried the webCalendar and I didn't get it running smoothly either.
But I will try to find out how to get it working.
But if anyone knows how to, please tell, that saves a lot of time.

greetz
Michiel de Jager

Mark S

Re: WebCalendar
« Reply #4 on: July 09, 2002, 07:17:05 AM »
I've tried downloading WebCal2.7.9.tgz to:

/home/e-smith/files/ibays/virtual/cgi-bin

than tar -xzf webCal2.7.9.tgz

cd webCal2.7.9

pico install.pl and modify to look like:

#!/usr/bin/perl

#------------------------------------------------------------------------------------------
# Edit the settings below and run
#      perl install.pl
#
# Please: Double check your httpd owner! if unsure run "ps auxww |grep httpd"
#
#------------------------------------------------------------------------------------------
    #
    # CGIDIR is the directory where web calendar cgi scripts reside.

    $CGIDIR="/home/e-smith/files/ibays/virtual/cgi-bin/webCal2.7.9";

    # used only when htpassword authentication is selected. It is
    # shared by all your virtual servers.
    $SIGNUPCGINAME="/home/e-smith/files/ibays/virtual/cgi-bin/webCal2.7.9/wcalsignup/signup.pl";

    # IMAGEDIR is the directory to store webcalendar icons. Must be
    # accessible by your webserver.
     
    $IMAGEDIR="/home/e-smith/files/ibays/virtual/cgi-bin/webCal2.7.9/images";

    # webCal support two types of authentication: HTTP_COOKIE and HTTP_PASSWORD
    # Use cookie authentication if at all possible. Most modern browser support
    # cookies.

    #$AUTHMETHOD="password";
    $AUTHMETHOD="cookie";

    # if you run sendmail on your webserver, the path of sendmail
    # $SENDMAIL="/usr/bin/sendmail";
    # otherwise, choose smtp and define SMTPTO and SMTPFROM.
    # SMTPTO   is the DNS name of your smtp server.
    # SMTPFROM is the DNS name of your web server.
    $SMTPTO="mail.virtual.com";
    $SMTPFROM="mail.virtual.com";

    # CGINAME is the REAL FULL PATHNAME of the cgi script, this is where the
    # script is installed. Your server should be able to execute script from
    # this location. CGILINK, CGIUPLOAD and CGIIMPORT are help scripts used
    # by webcalendar.
 
    $CGINAME="$CGIDIR/x.pl";
    $CGILINK="$CGIDIR/x-link.pl";
    $CGIUPLOAD="$CGIDIR/x-upload.pl";
    $CGIIMPORT="$CGIDIR/x-import.pl";

    # DAEMONNAME is the full pathname of the webcald. If you want your calendar
    # to send you email reminders, you need to have a way to start this daemon
    # each time your server is rebooted.
    #
    $DAEMONNAME="$CGIDIR/wcald";

#------------------------------------------------------------------------------------------
#
#
%servers = (
  # you have to have a default server. It must be named 'default_server'.
  # It is the only server if you don't install webcal on more than one virtual servers.

  'default_server' =>  {  
      'servername'       => 'virtual.com',
      'http'             => 'http',             # http or https
      'owner'            => 'www',           # owner of http*d

      # email address to be used on the From line of email reminders
      'daemonEmail'      => 'webcal@virtual.com',

      # Directory to store calendar data
      'spooldir'         =>
      '/home/e-smith/files/ibays/virtual/cgi-bin/webCal2.7.9/spool',    

      # if you use htpassword authentication and you have more than one
      # virtual servers, define the next variable. The CGI scripts
      # must resides on a distinct subdirectory for each virtual
      # server. You have to reconfigure your virtual web servers
      # so that they can execute webcal scripts. For apache,
      # insert a ScriptAlias directive in your httpd.conf for
      # each cgidir.
      ## 'cgidir'            => '/home/e-smith/files/ibays/virtual/cgi-bin/webCal2.7.9',

      # URLs of cgi, relative to /
      'cginame'           => '/home/e-smith/files/ibays/virtual/cgi-bin/webCal2.7.9/wcal.pl',
      'cgilink'           => '/home/e-smith/files/ibays/virtual/cgi-bin/webCal2.7.9/wcal-link.pl',
      'cgiimport'         => '/home/e-smith/files/ibays/virtual/cgi-bin/webCal2.7.9/wcal-import.pl',
      'cgiupload'         => '/home/e-smith/files/ibays/virtual/cgi-bin/webCal2.7.9/wcal-upload.pl',

      'imgdirurl'        => '/home/e-smith/files/ibays/virtual/cgi-bin/webCal2.7.9/images',
      
      # the next variable is used only if you use htpassword authentication  
      #'signupurl'        => '/home/e-smith/files/ibays/virtual/cgi-bin/webCal2.7.9/wcalsignup/signup.pl',
     
      # subdirectories to hold user uploads. They are sub directories of $IMAGEDIR
      'uploadtmpsubdir'  => 'uploads',
      'uploadsubdir'     => 'uis',
     
      # banner setup, if any. See banner.perl for examples
      'banner'           => '',
     
      # Greeting page setup
      'greetingfile'     => '/home/e-smith/files/ibays/virtual/cgi-bin/webCal2.7.9/index.html',
      'greetingurl'      => '/home/e-smith/files/ibays/virtual/cgi-bin/webCal2.7.9/index.html',

      # Other variables in %webcalConcig:c may also be redefined.
      # See webcalConfig for a complete list of configurable variables.
  },
       
  # Define the above table for each virtual server you plan
  # to run webcalendar.

);


#==========================================================================================
#  You don't need to edit the rest of this file


Than perl install.pl


I try to access... http://www.virtual.com/cgi-bin/webCal2.7.9/webcal.pl

and get this error...

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@virtual.com and inform them of the time the error occurred, and anything you might have done that
may have caused the error.

More information about this error may be available in the server error log.


My log files say...

webcalConfig.pm did not return a true value at webcalSupport.pm line 32.
BEGIN failed--compilation aborted at webcalSupport.pm line 32.
Compilation failed in require at /home/e-smith/files/ibays/mowtime/cgi-bin/webCal2.7.9/webcal.pl line 28.
BEGIN failed--compilation aborted at /home/e-smith/files/ibays/mowtime/cgi-bin/webCal2.7.9/webcal.pl line 28.
[Mon Jul  8 18:41:05 2002] [error] [client 192.168.0.1] Premature end of script headers: /home/e-smith/files/ibays/mowtime/cgi-bin/webCal2.7.9/webcal.pl


file webcalSupport.pm line 32 shows...

32 use webcalConfig;

cat webcalConfig
no such file or directory

  Stuck here.

Mark

Michiel de Jager

Re: WebCalendar
« Reply #5 on: July 09, 2002, 05:09:28 PM »
Well, I think I am a little ahead.

I have a successfull install, but when trying to access webcal I get the message that I am not allowed.

So I think I must set some rules in httpd.conf so the client is allowed to access the folders of webcal.

When I look at your install.pl file, I think I can see why it fails to install.

try to do it like this;









#
    # CGIDIR is the directory where web calendar cgi scripts reside.

    $CGIDIR="/home/e-smith/files/primary/cgi-bin/wcal";

    # used only when htpassword authentication is selected. It is
    # shared by all your virtual servers.
    $SIGNUPCGINAME="/home/e-smith/files/primary/cgi-bin/wcalsignup/signup.pl";

    # IMAGEDIR is the directory to store webcalendar icons. Must be
    # accessible by your webserver.
     
    $IMAGEDIR="/home/e-smith/files/primary/html/wcal/images";

    # webCal support two types of authentication: HTTP_COOKIE and HTTP_PASSWORD
    # Use cookie authentication if at all possible. Most modern browser support
    # cookies.

    #$AUTHMETHOD="password";
    $AUTHMETHOD="cookie";

    # if you run sendmail on your webserver, the path of sendmail
    # $SENDMAIL="/usr/bin/sendmail";
    # otherwise, choose smtp and define SMTPTO and SMTPFROM.
    # SMTPTO   is the DNS name of your smtp server.
    # SMTPFROM is the DNS name of your web server.
    $SMTPTO="localhost";
    $SMTPFROM="localhost";

    # CGINAME is the REAL FULL PATHNAME of the cgi script, this is where the
    # script is installed. Your server should be able to execute script from
    # this location. CGILINK, CGIUPLOAD and CGIIMPORT are help scripts used
    # by webcalendar.
 
    $CGINAME="$CGIDIR/x.pl";
    $CGILINK="$CGIDIR/x-link.pl";
    $CGIUPLOAD="$CGIDIR/x-upload.pl";
    $CGIIMPORT="$CGIDIR/x-import.pl";
    $CGICSS="$CGIDIR/x-css.pl";

    # DAEMONNAME is the full pathname of the webcald. If you want your calendar
    # to send you email reminders, you need to have a way to start this daemon
    # each time your server is rebooted.
    #
    $DAEMONNAME="$CGIDIR/wcald";

#------------------------------------------------------------------------------------------
#
#
%servers = (
  # you have to have a default server. It must be named 'default_server'.
  # It is the only server if you don't install webcal on more than one virtual servers.

  'default_server' =>  {  
      'servername'       => 'madern.mine.nu',
      'http'             => 'http',             # http or https
      'owner'            => 'www',           # owner of http*d

      # email address to be used on the From line of email reminders
      'daemonEmail'      => 'webcal@madern.mine.nu',

      # Directory to store calendar data
      'spooldir'         => '/home/e-smith/files/primary/wcal/server1',    

      # if you use htpassword authentication and you have more than one
      # virtual servers, define the next variable. The CGI scripts
      # must resides on a distinct subdirectory for each virtual
      # server. You have to reconfigure your virtual web servers
      # so that they can execute webcal scripts. For apache,
      # insert a ScriptAlias directive in your httpd.conf for
      # each cgidir.
      #'cgidir'            => '/usr/local/apache/cgi-bin/wcal',

      # URLs of cgi, relative to /
      'cginame'           => '/cgi-bin/wcal/wcal.pl',
      'cgilink'           => '/cgi-bin/wcal/wcal-link.pl',
      'cgiimport'         => '/cgi-bin/wcal/wcal-import.pl',
      'cgiupload'         => '/cgi-bin/wcal/wcal-upload.pl',
      'cgicss'            => '/cgi-bin/wcal/wcal-css.pl',

      'imgdirurl'        => '/wcal/images',
      
      # the next variable is used only if you use htpassword authentication  
      'signupurl'        => '/cgi-bin/wcalsignup/signup.pl',
     
      # subdirectories to hold user uploads. They are sub directories of $IMAGEDIR
      'uploadtmpsubdir'  => 'uploads',
      'uploadsubdir'     => 'uis',
     
      # banner setup, if any. See banner.perl for examples
      'banner'           => '',
     
      # Greeting page setup
      'greetingfile'     => '/home/e-smith/files/primary/html/wcal/index.html',
      'greetingurl'      => '/wcal/index.html',

      # Other variables in %webcalConcig:c may also be redefined.
      # See webcalConfig for a complete list of configurable variables.
  },
       
  # Define the above table for each virtual server you plan
  # to run webcalendar.

);

Michiel de Jager

Re: WebCalendar
« Reply #6 on: July 09, 2002, 06:05:43 PM »
whoops,  isn't there a version 4 of php installed?

Perl 5 or later is required.

Mark S

Re: WebCalendar
« Reply #7 on: July 09, 2002, 06:47:33 PM »
I'd like to use webCalendar on my virtual server.  My primary is in use.  Also, I noticed I get a "Forbiden, you don't have permission to access" error message when trying to access wcal.pl from an external connection.  From internal network I get a "sever error" message.  I also noticed webcalConfig.pm file is a blank file. Is yours blank also?

Mark