Go For It! Part 1
by
Pasta
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.



