silica Posted August 25, 2004 Posted August 25, 2004 I'm trying to install a PERL script to operate a calendar. I've installed the program files in a folder in my "public_html/cgi-bin" directory. The name of the script is calcium39.pl. The script contents are >#!/usr/bin/perl use strict; BEGIN {$Defines::calendar_root = 'CalciumDir39';} use lib "$Defines::calendar_root"; use lib "$Defines::calendar_root/upgrades"; use Calendar::CalciumStart; CalciumStart::go; The main program folder, "CalciumDir39" is located in the cgi-bin folder. When I enter "www.****/cgi-bin/calcium39.pl" in my browser, I get a page not found error message. I did set the permissions for the folder to allow execution of the script. Anyone with any ideas where this is going wrong? Quote
TCH-Bruce Posted August 25, 2004 Posted August 25, 2004 Did you upload the file in ASCII mode? Set permissions to 755. You should get something other than "page not found" if the path is correct. Double check to be sure you put it in your cgi-bin folder and that the case is correct. Quote
silica Posted August 25, 2004 Author Posted August 25, 2004 The error is a HTTP 404 error - file not found. I reuploaded everything, making sure it was in ASCII. Still get the same error. Do I need a cgi-bin directory in the root folder, or is having one in the public_html folder OK? The later is where I located the folder. Any other files necessary in the cgi-bin folder? Quote
borfast Posted August 25, 2004 Posted August 25, 2004 Well, if you're absolutely sure that you uploaded the script to the correct path... err... ... Have you checked to see if the script filename begins with an uppercase character? Like Calcium39.pl? I can't thinkof anything else... Quote
silica Posted August 25, 2004 Author Posted August 25, 2004 Well, something changed. I reuploaded everything one more time, made sure the script file was in lowercase, rentered the URL and there it was! Isn't computing wonderful! thanks for the help in getting me started on this project. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.