From owner-freebsd-questions@FreeBSD.ORG Fri Sep 1 18:35:49 2006 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 D9C9D16A4DA for ; Fri, 1 Sep 2006 18:35:49 +0000 (UTC) (envelope-from riemer@palstra.com) Received: from palstra.com (palstra.com [82.201.5.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id B874643D45 for ; Fri, 1 Sep 2006 18:35:48 +0000 (GMT) (envelope-from riemer@palstra.com) Received: from riemer by palstra.com with local (Exim 4.60 (FreeBSD)) (envelope-from ) id 1GJDrl-000Iux-Ge; Fri, 01 Sep 2006 20:35:45 +0200 Date: Fri, 1 Sep 2006 20:35:45 +0200 From: Riemer Palstra To: Miguel Message-ID: <20060901183545.GA71857@rb1.palstra.com> References: <44F87981.4070207@123.com.sv> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44F87981.4070207@123.com.sv> User-Agent: Mutt/1.4.2.2i Cc: freebsd-questions@FreeBSD.org Subject: Re: what happed to mod_perl in 6.1? 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: Fri, 01 Sep 2006 18:35:49 -0000 On Fri, Sep 01, 2006 at 12:18:41PM -0600, Miguel wrote: > Hi, my cgi scripts doesnt work in 6.1, and i dont see any entry about > mod_perl in httpd.conf, how do i enable it? You don't actually need mod_perl to run CGI scripts, but okay. If you want mod_perl try installing it, depending on your version of Apache you should use /usr/ports/www/mod_perl or mod_perl2. After installation, you'll get hints on what LoadModule and other directives you'll need to put in your httpd.conf file. In my case, it's: LoadModule perl_module libexec/apache22/mod_perl.so More about mod_perl can be found here: http://perl.apache.org/docs/index.html To use CGI scripts, you'll just have to enable the CGI module (it's probaby on by default) and add a handler for .cgi files (oh and allow Execution of scripts on the locations where you've put them). This isn't anything 6.1 specific, it will work like this on any version... LoadModule cgi_module libexec/apache22/mod_cgi.so AddHandler cgi-script .cgi (Followed by any ExecCGI and ScriptAlias directives you might need...) -- Riemer Palstra Amsterdam, The Netherlands riemer@palstra.com http://www.palstra.com/