From owner-freebsd-questions@FreeBSD.ORG Thu Oct 6 17:03:25 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 8A7A916A41F for ; Thu, 6 Oct 2005 17:03:25 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from mxout1.cac.washington.edu (mxout1.cac.washington.edu [140.142.32.134]) by mx1.FreeBSD.org (Postfix) with ESMTP id 39B0843D46 for ; Thu, 6 Oct 2005 17:03:23 +0000 (GMT) (envelope-from youshi10@u.washington.edu) Received: from smtp.washington.edu (smtp.washington.edu [140.142.33.9]) by mxout1.cac.washington.edu (8.13.4+UW05.04/8.13.4+UW05.09) with ESMTP id j96H3Mi7011750 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 6 Oct 2005 10:03:22 -0700 X-Auth-Received: from [128.208.7.37] (pinocchio.dyn.cs.washington.edu [128.208.7.37]) (authenticated authid=youshi10) by smtp.washington.edu (8.13.4+UW05.04/8.13.4+UW05.09) with ESMTP id j96H3Mjk000670 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Thu, 6 Oct 2005 10:03:22 -0700 Mime-Version: 1.0 (Apple Message framework v734) Content-Transfer-Encoding: 7bit Message-Id: <59E29F15-1FD7-46AC-B8D3-C0F67AE8ED92@u.washington.edu> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: FreeBSD Questions From: Garrett Cooper Date: Thu, 6 Oct 2005 10:04:38 -0700 X-Mailer: Apple Mail (2.734) X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='__CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' Subject: re: Enabling cgi scripts in apache X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Oct 2005 17:03:25 -0000 On Oct 5, 2005, at 9:41 PM, Glenn Dawson wrote: > At 09:31 PM 10/5/2005, Garrett Cooper wrote: > > >> Hi, >> Just having problems again enabling cgi script execution in >> apache. The script exists, it's the right set of permissions, and the >> perl interpreter is reference correctly, as well as the following >> line in the httpd.conf file: >> >> AddHandler cgi-script .cgi >> >> > > Without being able to see the config, the name of the script, the > contents of the script, or the directory it's in, the simple stuff > comes to mind. > > Does the AddHandler directive actually apply to the directory that > contains the script? > > Does the script end in .cgi ? > > What shows up in your apache error log? > > What error shows up in the browser when you try to browse to the > script? > > -Glenn > Ah, yes... should have explained more in that regard. The server serves the file exacting as written and doesn't display the result that I want on the server (which is the script doing something for that matter). All that I have really changed from the defaults is the AddHandler section, so Apache just doesn't know how to serve CGI files, although mod-cgi is loaded properly I think. Just go to http://wongle.mine.nu for the script since it's a part of the main page. -Garrett