About HyperNews
 Next-in-Thread Next-in-Thread
 Next Message Next Message

SCRIPT_NAME inconsistency 

Forum: HyperNews Installation
Re: HyperNews' setup-form wants to tack on a unix path to a URL. (Steven Peterson)
Date: 1996, Feb 01
From: Daniel M LaLiberte <liberte>

The problem arises because of the following line in setup-form.pl

  $setupURL = "\$http$ENV{SCRIPT_NAME}";
For you, it appears that $ENV{'SCRIPT_NAME'} is the absolute path to the script. For us, and most other folks, it appears, we get a full path (starting with '/') relative to the server root. A couple other problems may arise in the setup process due to this inconsistency. What server are you using, by the way.

You could hardcode this to assign the right URL. Or, better yet a relative URL would work just fine. Change that whole block of code to be:

#====================================
# Compute whether to use .pl or .cgi suffix

$plorcgi = '';

if ($ENV{'SCRIPT_NAME'} =~ m,\.cgi$,) {
  $plorcgi = "CHECKED";
}

if ($plorcgi)
  $setupURL = 'setup.cgi';
} else {
  $setupURL = 'setup.pl';
}

 Next-in-Thread Next-in-Thread
 Next Message Next Message
Inline:
 1 1
 All All
Outline:
 1 1
 2 2
 All All

1 Hoping to avoid further problems . . . by peterson@frontier-news.com, 1996, Feb 01
(_ Feedback: No end of problems, from my perspective anyway by liberte@hypernews.org, 1996, Feb 01
(_ More: Oops - my mistake by liberte@hypernews.org, 1996, Feb 01
(_ hndocsURL still used by jay mortensen, 1996, Feb 08

This forum is closed.

 Members Members
 Subscribe Subscribe
 Admin Mode Admin Mode
 Show Frames Show Frames
 Help Help


|| About || Instructions || Test || Guestbook || Future || || Source || Installation || Consortium ||

Earn money with Scour!
Google
 
Web www.HyperNews.org
Earn money with Scour!