###################################################################### # # Dream Catchers CGI Scripts Feel free to modify # Free Linkage this script to your # Created by Seth Leonard needs, but please # for Dream Catchers Technologies, Inc. keep this portion so # that I get credit. # http://dreamcatchersweb.com/scripts The same goes for # distribution. # # (c)1996/1997 Dream Catchers Technologies, Inc., # All Rights Reserved # ###################################################################### Dream Catchers Technologies, Inc. provides this script free of charge. However, if you do use this script, a $1.00 donation is appreciated to help support this free resource. Please send $1.00 to: Dream Catchers Technologies, Inc. P.O. Box 8600 Kirkland, WA 90834 (make payments payable to Dream Catchers Technologies, Inc.) Step by step instructions for Free Linkage CONTENTS: free.cgi - the cgi script which operates your free link program readme - this file free.htm - an example html page to use to fill out the link info needed Follow these easy steps: 1. Contact your server. Ask them to create a cgi-bin directory. Also ask them how one can access a file in that directory from WWW. Usually this is "http://www.server.com/you/cgi-bin/". 2. If you have telnet access to your server, log onto your server. At the command prompt, type "which perl". Write down the line given to you. Usually this is /usr/local/bin/perl. Next, type "which sendmail". Write down the line given to you. Usually this is /usr/bin/sendmail. If there is not sendmail program, type "which mail" and use this instead. Next, type "which date". Write down the line given to you. Usually this is /bin/date. If you do not have telnet access, ask your server where the perl, mail, and date programs reside. 3. Using your favorite text editor, open the free.cgi file included in the files you downloaded from the Dream Catchers CGI Scripts page. 4. The first line of free.cgi has the line: #!/usr/local/bin/perl If the line you recieved from your server when you typed "which perl" is different, replace the one there. Keep the #! and don't change anything if it is the same one you were given. 5. Find the section that says "ONLY EDIT THIS PART OF THE SCRIPT" and change the vaiables so that the match your home directory. NOTE: The values already placed there are examples!! These are the common formats for how servers set up directories. You need to fill in your own values! DO NOT DELETE THE CHARACTERS OUTSIDE OF THE VALUES: ' " ; For example, guestlocation is the url for your guestbook, so you would change: $freelocation = "http://www.something.com/~you/free.htm"; you would change to: $freelocation = "http://www.microsoft.com/~bill_gates/free.html"; Change the values of: $freelocation = the url of your free links page $freepath = the actual path through your home directory to your free links page $cgilocation = the url of the free.cgi file 6. You are done changing this file. Save the file as free.cgi in text form. 7. Open the free.htm file that came with the free10.zip files you downloaded off of Dream Catchers CGI Scripts Page. 8. Find the section: There are very few things that you should change withing the
Homepages
Internet & WWW
tags. These are the Category Titles (Homepages, Internet & WWW). These can be changed to any category names you would like. DO NOT CHANGE THE TABLE TAGS OR THE LINES!! If you do not want all ten categories, simply delete the ones you don't want. Do so by deleting the entire section above (OF THE ROW YOU ARE DELETING!!) 9. Find the section:
Add Your Own Page
Page URL:

Page Title:

Page Category:
Homepages Internet & WWW You must change the url to fit the path to the free.cgi file on your server. You can also change the Category Names here. Please make sure that they reflect the changes that you made in the first set of categories. (note that the categories go left to right, not up to down) 10. Save free.htm. 11. Upload all .cgi files into your cgi-bin and .htm or .html files to any directory that can be accessed via the web (many servers require that you upload these types of files in ASCII format, check with your server administrator to be sure). 12. You now need to set the permissions of the files you've uploaded. You can do this one of two ways. 1. TELNET - telnet into your server and go to the directory which holds the files. Type chmod [permission] filename. For example: chmod 755 file.cgi. 2. FTP SOFTWARE - you'll need to find out how to change permissions of the files using your specific program. Using WS_FTP (recommended), select the file you want to change permissions of and click your right mouse button and select CHMOD (UNIX). A box will appear with the option to select any number of 9 separate boxes (top row for read, middle row for write, bottom row for execute). These translate into actual unix permissions. If the file needs to be a+rx or 755, select every read box and every execute box (that is every box on the top and bottom rows). If the file needs to be a+rw or 666, select every read box and every write box (that is every box on the top and middle rows). These are the only two permissions you need to worry about. The files included need to following permissions: free.cgi a+rx or 755 If you have telnet access, you can also check your scripts for errors by going to the directory they reside in and typing either perl filename.cgi or filename.cgi (depends on your server). If you get an error, you most likely edited the script where you shouldn't have or forgot to put a " or ; on one of your variable definitions. 13. Load the free.htm page from the internet, fill in the form, and submit it to make sure that you get the response page telling you what you filled in. Go back to your free links page and make sure that the new entry is there. Everything working? 14. Smile, you're done... All working? Great! You now have Free Linkage. If there are problems, please consult http://dreamcatchersweb.com/scripts and chose the Frequently Asked Questions option. You can also post a message on the User Forum asking for help from other users. Please do not send email, it WILL NOT be answered. I apologize for this, but there were just too many requests to be able to offer quality help for all as well as work on new projects.