ISS 5.1, cgi og Perl
Jeg kører Windows XP Pro, herunder ISS 5.1 - som jeg er helt nybegynder i.Jeg har sat serveren op (dvs. installeret den), og kunne godt tænke mig at
benytte nogle cgi-scripts, men hvor skal jeg lægge filerne, og hvordan giver
jeg dem de rigtige rettigheder?
Min mappe struktur er som følgende:
D:\Inetpub\AdminScripts
\iisamples
\mailroot
\Scripts
\wwwroot
Jeg slettede alt, hvad der var i wwwroot og lagde mine egne filer deri,
hvorefter jeg satte "index.html" til at være den side der automatisk
indlæses.
Filerne til scriptet består af to dele "dictionary.txt" og "dictionary.cgi",
den første skal have rettighederne 666 og den anden 755, hvordan gøres dette
og i hvilken mappe skal de placeres?
Filen "dictionary.cgi" begynder med linien "#!/usr/bin/perl". Og de dele
deri der skal rettes er gengivet her:
#STEP B================================
#You MUST modify each of the variables in this this section
#B1. REQUIRED: The location of data file on your server. This must
#be the PATH to your data file, not the URL of your data file!
# MUST BE CHMOD TO 666. PLACE IT IN PARALLEL TO WITH YOUR ROOT DIRECTORY
# FOR HIGHEST SECURITY.
$data="D:/Inetpub/wwwroot/dictionary.txt";
#B2. REQUIRED: The URL of this file in your cgi-bin directory. You must
#provide the full URL, beginning with http
# MUST BE CHMOD TO 755.
$thisurl="http://212.242.157.86/dictionary.cgi";
#B3. OPTIONAL: You can format the and closing HTML
#of your results page in a separate file that can be written in
#regular HTML and saved on your server. If your script can't
#find this file and open it, the default result screen is displayed
#instead. For ease of configuration, place it in the same directory
#as your data file. Note: this file must have three plusses +++
#where you want your search results inserted.
$openinghtml="D:/Inetpub/wwwroot/ordbog-resultater.html";
#B4. REQUIRED TO ADD, DELETE, OR MODIFY. See
#important information in the help files about adding additional
#Security features to your script.
#Change password to any combination of letters (A-Z, a-z) and
#numbers 0-1. USE ONLY LETTERS AND NUMBERS
$adminpassword="her er mit kodeord";
#B5. URL to send users to after posting, editing, or getting errors.
#This is usually the main page for this section of your site
$forwardingURL="http://212.242.157.86/ordbog.html";
#B13. URL to the base image directory for field: Picture
#When you created your script, you specified that that the field
#Picture contained filenames to graphic files stored on your server.
#For these files to be accessible, you need to specify the
#base URL where they can be accessed. The URL should end with a
#forwardslash. No image size is specified here. For the output page to be
#generated fast, go to K15 and manually add in the images sizes.
#Eg. height=\"50\" width=\"50"
$baseurltoPicture="http://212.242.157.86/billeder/";
Jeg har prøvet at udfylde delene, men det er gætværk - har jeg ramt rigtigt?
Jeg er på bar bund og håber på hjælp i denne gruppe. På forhånd tak!
Venlig hilsen Jesper
PS.
Jeg har ikke installeret noget Perl, skal jeg gøre det?