From owner-freebsd-questions Mon Mar 13 10:54:11 2000 Delivered-To: freebsd-questions@freebsd.org Received: from hotmail.com (f231.law3.hotmail.com [209.185.241.231]) by hub.freebsd.org (Postfix) with SMTP id 4599537B50F for ; Mon, 13 Mar 2000 10:53:58 -0800 (PST) (envelope-from spmncmb@hotmail.com) Received: (qmail 71026 invoked by uid 0); 13 Mar 2000 18:53:55 -0000 Message-ID: <20000313185355.71025.qmail@hotmail.com> Received: from 212.49.226.41 by www.hotmail.com with HTTP; Mon, 13 Mar 2000 10:53:55 PST X-Originating-IP: [212.49.226.41] From: "S M - BigHartUSA" To: freebsd-questions@freebsd.org Subject: HELP! Date: Mon, 13 Mar 2000 13:53:55 EST Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_1be87db4_5f6c6228$eec02a3" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG This is a multi-part message in MIME format. ------=_NextPart_000_1be87db4_5f6c6228$eec02a3 Content-Type: text/plain; format=flowed Hi there, I am trying to install a script onto my homepage and I do not understand some of the instructions so I have enclosed them as a file for your perusal and hopefully you might be able to help me. My questions are in red. Thanks, SPM ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com ------=_NextPart_000_1be87db4_5f6c6228$eec02a3 Content-Type: text/html; name="readme.html"; format=flowed Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="readme.html" notts.net Classifieds - Nottinghamshire's (UK) Community Site

There are three scripts to classifieds, "classifieds.cgi", "remove.cgi" and "removeall.cgi", the first is the actual script that posts the classified ads, the second allows a user to remove their ad if their item has been sold etc. and the third allows you to delete all ads placed on a certain date.

INSTRUCTIONS FOR SETTING UP THE CLASSIFIEDS.CGI SCRIPT

This script requires at least Perl v4 to run. Place it in your cgi-lib directory on your web server and "chmod 755" to turn it into an executable script.

I don't understand what he means by chmod 755 and Perl v4 (I suppose I have to put Perl v4 in my cgi-lib directory as it says above but would I have to download it and then upload it to my cgi-lib directory on my home page server?) I have not chmod 755 this as I do not know how to.

Now, you'll need to edit three of the included form html files for your own ad form. Find the files "index.html", "remove.html" and "removeall.html" and make the following changes:

  • <form method=post action="/cgi-bin/classifieds.cgi">

    Edit this to where you placed the scripts. If you simply placed them in the cgi-bin directory then this is sufficient.

    (I have put the .cgi scripts into a directory called /cgi-bin/)

  •  
  • <input type="hidden" name="ClassifiedsDir" value="/var/www/docs/classifieds/">

    Edit this to where your classified ads will be located.

    The classifieds are located in /cgi-bin/classifieds/

  •  
  • <input type="hidden" name="ViewDir" value="http://www.yourdomain.com/classifieds/">

    Edit this to the URL where your classified ads will be located.

    The URL is http://equscalibus.virtualave.net/cgi-bin/classifieds/

  •  
  • <input type="hidden" name="ErrorReturn" value="http://www.yourdomain.com/classifieds/index.html">

    Edit this for where you want the system to return the user if they make an error. It would be wise to return the user back to the adform.

    This is located in http://equscalibus.virtualave.net/error/index.html and is also located in http://equscalibus.virtualave.net/classifieds/index.html . If the user makes an error, he will be returned to the index.html file located in the http://equscalibus.virtualave.net/error/index.html directory.

  •  
  • <input type="hidden" name="ReturnURL" value="http://www.yourdomain.com/classifieds/Thanks.html">

    This is the URL for the thank you page that thanks the user for placing an ad on your system. You'll need to create this thank you page to whatever you want it to say.

    This file is located in http://equscalibus.virtualave.net/thanks/thankyou.html

  •  
  • <input type="hidden" name="return" value="You@yourdomain.com">

    This is the return email address that is used for sending emails to users.

    I use a web based e-mail program at http://www.hotmail.com so "You@yourdomain.com" is equscalibus@hotmail.com .

  •  
  • <input type="hidden" name="mailprog" value="/usr/sbin/sendmail">

    This is the location of the mailprog on your server.

    I do not understand what a mailprog is or where I would find it.

Now you'll need to create the individual files that the ads will be appended to. If you have five different topics such as "Business", "Employment", "Real Estate", "For Sale", and "Computers", you'll need a file for each different topic. It needs to be the exact name for the department you named in the form. We have included an example file 'computersoftware.html' with this script which you can copy and edit for each of the departments you use.

Take a look at the sample index file to see how the departments were added up.

Place the AdNumber.dta in the same directory as your classified ads. Make sure you chmod 777 this file and all the classified topic files that you created for each department. You'll also need to take the UserDataFile.html file and place it in the same directory and chmod 777 this file. The name and address info for each advertiser is placed in this file with a link added to the person's name to e-mail them if you need to. It also tells you what ad number it is, what department it was placed in, and the complete text of the ad.

The AdNumber.dta file is in http://equscalibus.virtualave.net/classifieds/
The UserDataFile.html is in
http://equscalibus.virtualave.net/classifieds/
But I have not "chmod 777" these files as I do not know how to.

Now you're all set. Make sure your ad form is pointed to "post" the information to the directory and file of the script. It should work. The only thing that you may need to change in the scripts files is the first line which points to your perl. The default is #!/usr/bin/perl

What does he mean by this?

------=_NextPart_000_1be87db4_5f6c6228$eec02a3-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message