2008-11-07 22:28:42 UTC
I have it half way setup but are having some issues. Any help would be awesome. Here is the website to the calendar
http://www.pba-cwk.org/cgi/calendar3/index.cgi
1. I cant get the images to work. I know it's the correct path though.
#This is the URL for add.gif. If your server is set up like mine, you can't serve up images
#from the cgi-bin. I have to copy the gifs to another location on the web server. I serve mine up from
#the web root. $value{addGifUrl} should resolve to something like
#http://www.yourserver.com/images/add.gif
$value{"
http://www.pba-cwk.org/images/add.gif"} = $value{"server"}."images/add.gif" ;
#Ibid for delete.gif
$value{"
http://www.pba-cwk.org/images/delete.gif"} = $value{"server"}."images/delete.gif" ;
#Ibid for edit.gif
$value{"
http://www.pba-cwk.org/images/edit.gif"} = $value{"server"}."images/edit.gif" ;
#Ibid for next.gif
$value{"
http://www.pba-cwk.org/images/next.gif"} = $value{"server"}."images/next.gif" ;
#Ibid for previous.gif
$value{"
http://www.pba-cwk.org/images/previous.gif"} = $value{"server"}."images/previous.gif" ;
2. When i click on a date on the calendar it will go to that date and display any events if any. Right above that is a link that is supposed to go back to the calendar. That does not work for some reason.
3. When i go and fill out the info to make an event and then hit the "Add Event" button the green bar down below just goes very very slow and really never finishes. If i go back to the main page though and hit refresh it will show up. Shouldnt after you hit the "Add Event" button it adds it and automatically takes you back to the calendar? I am not sure though i have never seen this in action before.
4. I can log into the CGI administration from Godaddy and get the log files. so here they are.
Wide character in print at /home/content/d/a/r/darrell10/html/cgi/calendar3/index.cgi line 491.
SoftException in Application.cpp:636: Could not execute script "/home/content/d/a/r/darrell10/html/cgi/calendar3"
Caused by SystemException in API_Linux.cpp:434: execve() for program "/home/content/d/a/r/darrell10/html/cgi/calendar3" failed: Permission denied
[Fri Nov 7 15:23:11 2008] [error] [client 66.35.39.121] Premature end of script headers: /var/chroot/home/content/d/a/r/darrell10/html/cgi/calendar3
5.Here is the jconfig.pm file
#!/usr/bin/perl
#
# jconfig.pm, a perl module used to store CGI Calendar configuration values.
# By Jay Eckles
# Copyright 2004 Jay Eckles
# $Id: jconfig.pm,v 1.10 2006/06/30 18:08:39 espergreen Exp $
# This file is licensed under the GPL version 2 and is provided without warranty.
# See
http://www.gnu.org/copyleft/gpl.html for license details.
#
#
# Created on 2/16/2004
# Last Modified 11/14/2004
#
# This module is used to configure CGI Calendar. It's nice because you can define everything all in one
# place. This file should be stored in the same directory as index.cgi.
#
# The comments below indicate what each $value{""} variable is for. Using the examples given below, you
# should be able to figure out how to configure CGI Calendar for your installation.
#
# To make things modular, you'll see that I've used previously-defined variable names to define
# later names. For example,
# $value{"cgiUrl"} = $value{"server"}.$value{"cgiPath"}."index.cgi" ;
# means that cgiUrl is the server followed by the cgiPath followed by the string "index.cgi".
### Don't touch these next seven lines!
package jconfig ;
require Exporter ;
@ISA = qw( Exporter ) ;
@EXPORT = qw( loadConfig ) ;
@EXPORT_OK = qw(%value) ;
sub loadConfig{
### Don't touch the previous seven lines!
#OK, just below here is where you start changing configuration values.
#This is the password for web-based administration. You MUST change this
#password for CGI Calendar to work, even if you don't plan on using the
#web-based administration features. You may not use the empty string ("")
#as the password.
$value{"password"} = "XXXXXXX";
#This flag determines whether web-based administration is enabled. If so, an
#link to the administration page will be displayed on the calendar, though
#the administrator password will be required to access it.
$value{"enableWebAdmin"} = "true" ;
#This is the URL of your web server...Example:
http://www.yourserver.com/ (the trailing '/' is important!)
$value{"server"}="
http://www.pba-cwk.org/" ;
#This is the path to the calendar3 directory on your web server.
#Example: if your calendar3 directory is at
http://www.yourserver.com/cgi-bin/calendar3/, the value
# would be cgi-bin/calendar3/ (the trailing '/' is important!)
$value{"cgiPath"}="cgi/calendar3/" ;
#The path to index.cgi. If you set the previous two variables correctly, you probably don't need to
#change this one. $value{"cgiUrl"} should resolve to something like
#http://www.yourserver.com/cgi-bin/calendar3/index.cgi
$value{"
http://www.pba-cwk.org/cgi/calendar3/index.cgi"} = $value{"server"}.$value{"cgi/calendar3/"}."index.cgi" ;
#This is the URL for add.gif. If your server is set up like mine, you can't serve up images
#from the cgi-bin. I have to copy the gifs to another location on the web server. I serve mine up from
#the web root. $value{addGifUrl} should resolve to something like
#http://www.yourserver.com/images/add.gif
$value{"
http://www.pba-cwk.org/images/add.gif"} = $value{"server"}."/html/images/add.gif" ;
#Ibid for delete.gif
$value{"
http://www.pba-cwk.org/images/delete.gif"} = $value{"server"}."images/delete.gif" ;
#Ibid for edit.gif
$value{"
http://www.pba-cwk.org/images/edit.gif"} = $value{"server"}."images/edit.gif" ;
#Ibid for next.gif
$value{"
http://www.pba-cwk.org/images/next.gif"} = $value{"server"}."html/images/next.gif/" ;
#Ibid for previous.gif
$value{"
http://www.pba-cwk.org/images/previous.gif"} = $value{"server"}."images/previous.gif/" ;
#This is the URL for the calendar stylesheet. It doesn't have to be named calendar.css, and it can be
#anywhere on the web. I serve mine up from the document root. $value{"cssUrl"} should resolve to something
#like
#http://www.yourserver.com/css/calendar.css
$value{"
http://www.pba-cwk.org/css/calendar.css"} = $value{"server"}."css/calendar.css" ;
#This flag determines whether multiple languages is enabled. If you enable it,
#the user will be able to choose which language he or she wishes to use
#via a drop-down menu. If you disable it, the calendar will only be displayed
#in the default language specified below.
#When "true", multi language feature is enabled.
#When "false, multi language feature is disabled.
$value{'enableLanguages'} = "true";
#This is the default language to use. See language.pm for the list of
#defined languages. "en-us" is US English.
$value{'defaultLanguage'} = "en-us";
#This flag determines whether the "groups" feature is enabled. If you
#enable it, the user will be able to choose which .db file he or she wishes
#to view (except empty.db, which is not shown to the user as an option).
#For example, if you had Accounting.db, Human_Resources.db, and Sales.db, the
#user would be able to choose whether to view events for the "groups"
#Accounting, Human_Resources, or Sales.
#When "true", the user is able to choose among groups.
#When "false", the user is unable to choose among groups and only the
#default database is displayed.
#
#NOTE: if only one *.db file (not counting empty.db) is present, groups
#will be automatically disabled, regardless of the value set here.
$value{"enableGroups"} = "true" ;
#This is the default database to use. If no db is specified on the querystring, this is the database that
#will be used. It doesn't necessarily have to be calendar.db. You do NOT need to put any server information
#before the name of the file. This is the file name only (no
http://, no /, etc.)
$value{'defaultDb'} = "CWK.db";
#That's all, folks.
return %value ;
}