From owner-freebsd-questions Sun Mar 3 12:27:53 2002 Delivered-To: freebsd-questions@freebsd.org Received: from MX3.Netwood.net (mx3.netwood.net [209.247.184.13]) by hub.freebsd.org (Postfix) with ESMTP id 0B59637B405 for ; Sun, 3 Mar 2002 12:27:46 -0800 (PST) Received: from netwood.net (mail.netwood.net [209.247.184.35]) by MX3.Netwood.net (Postfix) with ESMTP id DEF885D008; Sun, 3 Mar 2002 12:26:41 -0800 (PST) Date: Sun, 3 Mar 2002 12:32:19 -0800 Message-Id: <200203031232.AA610926864@netwood.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii From: "Jonas Fornander " Reply-To: To: Michel Weenink Cc: Subject: Re: Re[2]: Need help with configuring cgi-bin X-Mailer: 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 Apparently I don't have suexec running. This is what I get with httpd -l lumle# httpd -l Compiled-in modules: http_core.c mod_so.c suexec: disabled; invalid wrapper /usr/local/sbin/suexec How do I enable it? Jonas ---------- Original Message ---------------------------------- From: Michel Weenink Reply-To: Michel Weenink Date: Sun, 3 Mar 2002 20:48:22 +0100 >Hello Jonas, > > Do you have suexec running? That has some extra requirements for > running cgi. > httpd -l will show you if you are or not. > > Michel > >Sunday, March 03, 2002, 8:44:27 PM, you wrote: > >JF> I have done all your suggestions but to no avail. I still get a 403 >JF> permission denied error in the browser and the errorlog has the same >JF> error: Options ExecCGI is off in this directory. > >JF> The user I'm testing this on (me) is a member of the wheel group, can >JF> that have something to do with it? > >JF> Any other suggestions? > >JF> Jonas Fornander - System Administrator >JF> Netwood Communications, LLC - www.netwood.net >JF> Find out why we're better - 310-442-1530 > >>> -----Original Message----- >>> From: owner-freebsd-questions@FreeBSD.ORG >>> [mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of ScaryG >>> Sent: Sunday, March 03, 2002 8:34 AM >>> To: jonas@netwood.net >>> Cc: questions@FreeBSD.ORG >>> Subject: Re: Need help with configuring cgi-bin >>> >>> >>> On Sun, 3 Mar 2002 01:56:23 -0800 >>> "Jonas Fornander " wrote: >>> >>> > I wonder if someone could give me some hints on how to properly >>> > configure Apache to enable a cgi-bin in users directory. >>> >>> I may be able to offer you a few more pointers... >>> >>> > Scripts runs fine in the default ScriptAlias directory. >>> According to >>> > the documentation at apache.org, I need to enable Addhandler >>> > cgi-script cgi (eventhou in httpd.conf it reads Addhandler >>> cgi-script >>> > .cgi) >>> >>> The proper syntax is: AddHandler cgi-script .cgi >>> >>> If you would like it to execute both .cgi and .pl files, >>> change this to: >>> >>> AddHandler cgi-script .cgi .pl >>> >>> Don't forget to restart Apache after you make changes to >>> your httpd.conf file >>> >>> /usr/local/apache/bin/apachectl restart >>> >>> for example. (very, very important!) >>> >>> > and add a directory directive to the main configuration >>> > file where the scripts are. So I added: >>> > >>> > Options +ExecCGI >>> > >>> >>> This looks good, except you don't need the (+) sign... just >>> Options ExecCGI >>> >>> If you really want to use brute force, this will work: >>> >>> >>> Options All >>> AllowOverride All >>> order allow,deny >>> allow from all >>> >>> >>> You may want to try this, restart apache, test. If it works, >>> then change the Options line from Options All to Options >>> ExecCGI. Restart apache, test again. >>> >>> Good luck! >>> >>> Gerry- >>> Web/Domain Hosting --- Primary/Secondary DNS Services >>> at http://www.interpool.ca >>> >>> To Unsubscribe: send mail to majordomo@FreeBSD.org >>> with "unsubscribe freebsd-questions" in the body of the message >>> > > >JF> To Unsubscribe: send mail to majordomo@FreeBSD.org >JF> with "unsubscribe freebsd-questions" in the body of the message > > >-- >Michel Weenink - Phone: +31 24 3607 665 - ICQ: 21018820 >E-mail : Michel@Weenink.com - WWW: www.weenink.com > >I drink therefore I am twice > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message