Go For It! Part 1

by

Pasta

Pasta's Pissers

Autogallery

Mr.Boo's making of a TGP

Setting it up

I am a firm believer that you can depend on people some of the time. When you need them the most, they won’t be available. What I mean is, you want to start a tgp or linklist for that matter. Set up and get to know the workings of your script. It will make you a better webmaster and it will get the creative juices flowing. Let’s setup Autogallery.

First step to setting up the script, any cgi script for that matter, is to locate your perl interpreter. It varies from server to server usually #!/ usr/local/bin/perl or #!/usr/bin/perl or #!/usr/sbin/perl. To find the path to perl, telnet into your server. Type: whereis perl. If you don’t know how to use telnet, refer to a newbie article by Barron. You’re also going to need to know the correct paths to your directories and cgi files. You could also run a little cgi file called server.cgi or echo.cgi, specifically written to give you server and directory information. That makes editing script files a snap, even for a DFN.Server.cgi

I use the Sql version of Autogallery. It provides a few more features than the cgi version of the script. It will also require that you contact your host, as they will need to set up a mysql database for you. You will need to provide a username, password, and a database name. They will give you the path to the mysql server. Once you have that information you can edit the ags.pl file.

Below is a brief explanation of server.cgi:

Document Root- This is the full path to the root directory on the server. Your root Index.html.

Current Directory - Is the current directory that the script server.cgi was called from. Most of the scripts that I have set up required the full server path in the set up files

Send Mail Location - This is the full path for the send mail executable on your server.

Running as User, Running as group when you get your own server worry about these

The Operating System, Server Software, and Perl Version are useful if you have to correspond with tech support.

You have all the server information you need to proceed with the editing of the setup of your script files. The script is commented well, the setup instructions easy to follow. The File Permissions are detailed, just remember to 777 the directory within the cgi-bin where you put all the script files.

Pasta's Cool DFN Link Of The Week

How You Doin?
Mirror Mirror

Setup

You have all your server information. You will need to create some directories on your server. Within the cgi-bin create a folder called tgp. This is where all your script files will be installed.

Once you have edited the following file: cgiworks.pm to point the script at your data and templates directory, save the file. Next, your htacces file for the admin script will have to be edited You will only have to edit the line AuthUserFile to point towards the htpassword file. This must be the full path to the file. DO NOT create an htpasswd file externally! Let the script create it for you. Otherwise, it will definitely give you a 500 error :) Where ever you extracted the files to on your hard drive, just upload that directory structure to the directory you created for the script.

The remainder of the admin setup will make reference to the following page. Each form filed is number to a corresponding explanation. Admin Reference

Continued on Page 8..

"I may not have gone where I intended to go, but I think I have ended up where I intended to be."
Douglas Adams

©2001 VNWR. All rights reserved.