Jump to content

Recommended Posts

Posted

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?

Posted

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.

Posted

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?

Posted

Well, if you're absolutely sure that you uploaded the script to the correct path... err... :unsure:...

Have you checked to see if the script filename begins with an uppercase character? Like Calcium39.pl?

I can't thinkof anything else... :unsure:

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...