Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jul 2001 14:58:22 +0100
From:      Alex Dyas <ADyas@twowaytv.com>
To:        jasonla@pobox.com, freebsd-questions@freebsd.org
Subject:   RE: CGI / Apache / mod perl
Message-ID:  <911D8F660DF6D411B61F00500462BA01C58688@exchange.twowaytv.co.uk>

next in thread | raw e-mail | index | archive | help
> 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
<Directory ..> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?911D8F660DF6D411B61F00500462BA01C58688>