From owner-freebsd-questions Tue Nov 6 19:10:36 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mitch.adsl.labyrinth.net.au (mitch.adsl.labyrinth.net.au [202.182.88.14]) by hub.freebsd.org (Postfix) with ESMTP id 7F25537B418 for ; Tue, 6 Nov 2001 19:10:31 -0800 (PST) Received: from mail.mitchells.com.au (ip30.int.mitchells.com.au [192.168.120.30]) by mitch.adsl.labyrinth.net.au (8.11.3/8.11.3) with SMTP id fA73A0m40541 for ; Wed, 7 Nov 2001 14:10:01 +1100 (EST) (envelope-from jmorgan@mitchells.com.au) Received: by mail.mitchells.com.au(Lotus SMTP MTA v4.6.7 (934.1 12-30-1999)) id 4A256AFD.00160F3B ; Wed, 7 Nov 2001 14:00:56 +1000 X-Lotus-FromDomain: MITCHELLMELB From: "Julian Morgan" To: freebsd-questions@FreeBSD.ORG Message-ID: <4A256AFD.00160EC8.00@mail.mitchells.com.au> Date: Wed, 7 Nov 2001 14:00:53 +1000 Subject: running CGI script on my server Mime-Version: 1.0 Content-type: text/plain; charset=us-ascii Content-Disposition: inline Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hey pplz, was wondering if you can help... I have just got up a web site on a FreeBSD 4.2 server that I have installed Apache on... I know that perl is running as I have the following running in /usr/local/bin directory -rwxr-xr-x 2 root wheel 766524 Oct 1 15:53 perl -rwxr-xr-x 2 root wheel 766524 Oct 1 15:53 perl5.6.1 As cgi is a new thing to me I have tried installing an application called newspro... It generates a news service on your website... I have installed the opening code in the default web directory /usr/local/share/doc/apache/ The site is up and running so I know the web config is alright... Newspro then tells me to install the following files to /usr/local/share/doc/apache/newspro .htaccess archive.tmpl arclink.tmpl ndisplay.pl news.txt newsdat.txt newspro.cgi npa_add.pl npconfig.pl nplang.pl nplib.pl nsettings.cgi readme.txt viewnews.cgi viewnews.tmpl It then tells me to config 4 things in viewnews.cgi and newspro.cgi change the top line to = the perl path exe - which I believe is #!/usr/local/bin/perl chmod's on some files If I am having trouble with .cgi extension, to rename them to .pl extensions I might have to put the cgi files into a cgi bin on the server, which I guess is /usr/local/www/cgi-bin.default Ok now it says that I can go to http:/www.(mywebsite).com/newspro/newspro.cgi and it should run the cgi script All I end up getting is a copy of that file - would you know what I am doing wrong I am sure I have put the #!/usr/local/bin/perl -path correct, do I have to do a CPAN for cgi ???? anyhelp would be great... Regards Julian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message