From owner-freebsd-questions Fri Jul 13 7: 2: 6 2001 Delivered-To: freebsd-questions@freebsd.org Received: from exchange.twowaytv.co.uk (exchange.twowaytv.co.uk [194.6.2.173]) by hub.freebsd.org (Postfix) with ESMTP id 1B01337B401 for ; Fri, 13 Jul 2001 07:02:03 -0700 (PDT) (envelope-from ADyas@twowaytv.com) Received: by exchange.twowaytv.co.uk with Internet Mail Service (5.5.2653.19) id <3ZPCRZHN>; Fri, 13 Jul 2001 14:58:26 +0100 Message-ID: <911D8F660DF6D411B61F00500462BA01C58688@exchange.twowaytv.co.uk> From: Alex Dyas To: jasonla@pobox.com, freebsd-questions@freebsd.org Subject: RE: CGI / Apache / mod perl Date: Fri, 13 Jul 2001 14:58:22 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" 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 > Also, how would I configure Apache to run CGI scripts? I > have a file called try.pl in my DocumentRoot directory, and > when I try to access it (using ip_address/try.pl), my > browser asks if I want to download the file. Firstly, make sure you have the relevant cgi-bin sections in httpd.conf uncommented, particularly the ScriptAlias directive and it's associated directive. These should be included in the default httpd.conf file. Put your perl scripts in the <..>/apache/cgi-bin/ directory, make sure they are executable by the user you have configured Apache to run as. That should be enough. Don't forget to bounce Apache if you make any config changes. > Is it possible to configure it so that users can have cgi > scripts in their own public_html directores? Try http://cgiwrap.unixtools.org/ alex... To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message