Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunitySetup and InstallationInstallation and Setup (Moderators: scott, DanO, Marty)CGIWrap Error: Script File Not Found!
Pages: [1]   Go Down
Print
Author Topic: CGIWrap Error: Script File Not Found!  (Read 400 times)
0 Members and 1 Guest are viewing this topic.
DanR
New Member
*

Karma: 0
Offline Offline

Posts: 0

busy


WWW
« on: April 10, 2002, 10:12:00 PM »

Accidently posted in General Use, reposting here...


Apparently installed software successfully as I reached the first admin screen.

Running debug yields the following:

CalendarScript Debugger

Success!

No problems were found with your installation.
You should be able to run calendar and calendar_admin successfully!


I get to the first admin screen:

Calendar Administration : Setup Wizard

Welcome to the CalendarScript Setup Wizard!

The fact that this screen is displayed means your web server is configured correctly to run Perl CGI applications and CalendarScript can find the files it needs to run.

BUT, when I click to continue, I get the following:


CGIWrap Error: Script File Not Found!

NOTE: CGIWrap can not be disabled for security reasons aand the site admin advises this should not cause a problem.

Any thoughts? Matt, I can separately email access if you could take a look.

Running on a unix servier, CHMOD's all correct. Using Active Communications as host (www.activecom.net).

Stan Richards recommended this and I'd really like to get it working.

Thanks,
Dan

Logged
DanR
New Member
*

Karma: 0
Offline Offline

Posts: 0

busy


WWW
« Reply #1 on: April 13, 2002, 10:13:00 PM »

More information on the problem....

It seems when the program runs, it inserts an extra directory name into the series of directories/subdirectories.

The paths for the configuration seem wrong. When you click the button it tries to go to http://www.fyao.org/cgi-bin/fyaoweb/calendar_admin.pl

when it should go to: http://www.fyao.org/cgi-bin/calendar_admin.pl

Notice the extra fyaoweb after cgi-bin

Comment from the host ech support:
Everything you put inside cgi directory becomes available under www.fyaoweb.org/cgi-bin/  So if there is an extra fyaoweb in there than the actual path becomes cgi/fyaoweb/program....There should be a place where you define these paths inside the configuration.

Ok, so fooled with it some more, no luck.  Got more help from the host tech support, trying the following:


From tech support after looking at the files:

Here is what I found out. The file alendarscript/config.txt has two variables.

calendar_url
and
calendar_admin_url

These need to be set to the url of the calendar.pl and calendar_admin.pl programs. I have done this for you. However this is not enough either. If these variables are not set than the program is supposed to guess these
values and it comes up with /cgi-bin/fyaoweb/calendar.pl instead of /cgi-bin/calendar.pl etc.. So putting these values should fix the problem.

BUT there is a problem on the program. It seems all the scripts look for this variable and if it doesn't exist guess the values, but calendar_admin.pl tries to guess it all the time and doesn't obey the value set in the config file.

The line numbered 322 on the calendar_admin.pl script should be changed

FROM
$Template::CGI_URL = $ENV{'SCRIPT_NAME'} | | $ENV{'REQUEST_URI'};  

TO
$Template::CGI_URL = $AdminConfig->get("calendar_url") | |
$ENV{'SCRIPT_NAME'} | | $ENV{'REQUEST_URI'};

Tell you the truth, I don't know the full implications of this change. So you should check with the people who are selling this software to make sure my assumptions are correct. But I made this change and it seems to be
working now.

However, this appeared to help, but the change made works to get to admin screen two, but then the next admin screen gets bypassed, proceeding right to the calendar login, not admin login - or whatever should sho on admin screen 3.

So, I went back a reloaded evrything, making sure in ASCII and manually checking all the permissions. Allo loks OK.  Of course, Debug says all is well and that it should run.

The key seems to be why the script wants to stick the extra "fyaoweb" int he directory string.  If this can be eliminated, it might work.

At this point I need some assistance from here...  Either that, or I'll give up on it.  The beauty of this calendar is that I can set up others to update it without having to revise web pages/know html which, for our organization, would be a real help.

Any ideas?

Thanks,
Dan


------------------

Logged
TubaDave
New Member
*

Karma: 0
Offline Offline

Posts: 0

Student


WWW
« Reply #2 on: April 14, 2002, 01:34:00 AM »

Hey!  I think you've just found the solution to the CGIWrap problems (or your tech support has).  At least it's really close.  Change the line your tech support told you to, only make it:

$Template::CGI_URL = $AdminConfig->get("calendar_admin_url") | | $ENV{'SCRIPT_NAME'} | | $ENV{'REQUEST_URI'};

(change calendar_url to calendar_admin_url) and I bet that will get you working right.  The line that has the same purpose in the calendar.pl script is correct.

------------------
David Whittaker
http://www.uabcm.com/
http://www.csworkbench.com/

Logged

DanR
New Member
*

Karma: 0
Offline Offline

Posts: 0

busy


WWW
« Reply #3 on: April 14, 2002, 10:45:00 AM »

Tuba,
Thanks...

I think that I did try this, and it got past the second page, but then got hung up again.  I'll try it again and see what happens.

Dan

------------------

Logged
DanR
New Member
*

Karma: 0
Offline Offline

Posts: 0

busy


WWW
« Reply #4 on: April 14, 2002, 07:39:00 PM »

Ok, and update.

Went back and checked everything again, changing the new code to calendar_admin.pl from the calendar.pl

It now is working just fine, at least into trying out a few entries.

The recommended changes appear to solve the problem.

I must admit though, I thought the better part of the solution would have come from this board.  

Regards,
Dan

------------------

Logged
afbroman
New Member
*

Karma: 0
Offline Offline

Posts: 0


WWW
« Reply #5 on: March 01, 2004, 06:34:00 PM »

Thanks for this information -- nearly a year later, and it's the perfect solution to all the problems I'm having in setting up CalendarScript.

Andrew

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: