FutureQuest, Inc. FutureQuest, Inc. FutureQuest, Inc.

FutureQuest, Inc.
Go Back   FutureQuest Community > FutureQuest Site Owners (All may read - Only Site Owners May Respond) > Moving your site
User Name
Password  Lost PW

Reply
 
Thread Tools Search this Thread Display Modes
Old 07-05-2023, 04:07 PM   Postid: 189264
rick-k
Site Owner
 
rick-k's Avatar

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: Sep 2000
Location: Ottawa, IL 61350
Posts: 36
Pair.com cgi adjustments

Instead of this line at the beginning of your Perl scripts:
#!/usr/local/bin/perl

use:
#!/usr/bin/perl

The first generates errors.

Also, check your domain paths within scripts. Instead of the "/big/dom/xyourname" structure, you'll use something like "/usr/home/yourname/public_html/yourdomain.com"

I didn't have to make any changes to the way SSIs are called within shtml pages. One of the scripts needed one of the above adjustments though.

At least sometimes,
use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
will send warnings and fatal error messages to your browser. If you use that in your Perl script's second line and get an error without anything specific, Perl is probably not getting the Carp command. The problem could be on the very first line--telling where Perl is. If Perl's not at that place, Perl isn't even running. That's why it's not following the Carp command.

Things I never had to worry much about because once you got something to work on FutureQuest you never had to think about it again. I'm sharing in case it helps someone.
rick-k is offline   Reply With Quote
Old 07-05-2023, 05:25 PM   Postid: 189266
tril
Site Owner

Forum Notability:
10 pts: User-friendly
[Post Feedback]
 
Join Date: Dec 2004
Posts: 43
Re: Pair.com cgi adjustments

Quote:
Originally Posted by rick-k View Post
Also, check your domain paths within scripts. Instead of the "/big/dom/xyourname" structure, you'll use something like "/usr/home/yourname/public_html/yourdomain.com"
The DOCUMENT_ROOT environment variable is useful for this, at least under Apache. (In a Perl CGI you could get it with $ENV{DOCUMENT_ROOT})
tril is offline   Reply With Quote
Old 07-05-2023, 05:30 PM   Postid: 189267
 Kevin
Systems Administrator
 
Kevin's Avatar
 
Join Date: Aug 2001
Location: Orlando, FL
Posts: 2,986
Re: Pair.com cgi adjustments

Quote:
Originally Posted by rick-k View Post
Instead of this line at the beginning of your Perl scripts:
#!/usr/local/bin/perl

use:
#!/usr/bin/perl

The first generates errors.
To be fair, that is the correct path on our servers too we just have a symlink to make both work.
__________________
Kevin
Kevin is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 visitors)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 12:27 AM.


Running on vBulletin®
Copyright © 2000 - 2019, Jelsoft Enterprises Ltd.
Hosted & Administrated by FutureQuest, Inc.
Images & content copyright © 1998-2019 FutureQuest, Inc.
FutureQuest, Inc.