From owner-freebsd-questions@FreeBSD.ORG Mon Mar 7 00:29:47 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AE70D16A4CE for ; Mon, 7 Mar 2005 00:29:47 +0000 (GMT) Received: from smtp815.mail.sc5.yahoo.com (smtp815.mail.sc5.yahoo.com [66.163.170.1]) by mx1.FreeBSD.org (Postfix) with SMTP id 577F543D3F for ; Mon, 7 Mar 2005 00:29:47 +0000 (GMT) (envelope-from pauls@utdallas.edu) Received: from unknown (HELO George) (pschmehl@sbcglobal.net@66.138.73.155 with login) by smtp815.mail.sc5.yahoo.com with SMTP; 7 Mar 2005 00:29:47 -0000 Message-ID: <02c001c522ac$c4211970$6702a8c0@George> From: "Paul Schmehl" To: "Shawn B" , References: <20050306221902.57767.qmail@web30204.mail.mud.yahoo.com> Date: Sun, 6 Mar 2005 18:29:45 -0600 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Subject: Re: CGI script executing and Apache help (2nd try & important) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Mar 2005 00:29:47 -0000 ----- Original Message ----- From: "Shawn B" To: Sent: Sunday, March 06, 2005 4:19 PM Subject: CGI script executing and Apache help (2nd try & important) >I am running FreeBSD-4.8 with Apache 1.3 installed. I > changed the htdocs directory in httpd.conf to > /home/user1/public_html/ and I added a /cgi-bin/ in > the same user directory. Scripts will not execute from > the cgi-bin, as the scripts contents are displayed in > the browser window. I went through httpd.conf using > the search feature in Easy Editor, editing sections > that have .cgi in it. Now, I am stumped as to how to > get the CGI scripts to execute. > In order to get CGI scripts to run in a directory other than the default cgi-bin directory, you have to define the directory and include the option +ExecCGI So, in your case, it would be something like this: Options +ExecCGI But, as others have said, you really should read the Apache docs and familiarize yourself with the syntax. Also consider using mod_security to protect your server from attack. Paul Schmehl (pauls@utdallas.edu) Adjunct Information Security Officer University of Texas at Dallas AVIEN Founding Member http://www.utdallas.edu/