Date: Sun, 3 Mar 2002 21:33:35 +0100 From: Michel Weenink <Michel@Weenink.com> To: "Jonas Fornander " <jonas@netwood.net> Cc: questions@FreeBSD.ORG Subject: Re[4]: Need help with configuring cgi-bin Message-ID: <12616641596.20020303213335@Weenink.com> In-Reply-To: <200203031232.AA610926864@netwood.net> References: <200203031232.AA610926864@netwood.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello Jonas, You may not want to - in fact it was the most stupid idea I had and the week has yet to start - I missed the 'Options ExecCGI is off' part in your logs/post. I'd go with ScaryG on this one, check the <Directory> part again. And/or point 13 (bottom) at http://httpd.apache.org/docs/misc/FAQ-F.html#CGIoutsideScriptAlias What once happened to me was I had a .htaccess in the webroot, overwriting whatever I tried to do in httpd.conf... you may want to check that as well, although for a ~homedir that doesn't sound very likely. Apologies for the confusion, Michel Sunday, March 03, 2002, 9:32:19 PM, you wrote: JF> Apparently I don't have suexec running. This is what I get with httpd -l JF> lumle# httpd -l JF> Compiled-in modules: JF> http_core.c JF> mod_so.c JF> suexec: disabled; invalid wrapper /usr/local/sbin/suexec JF> How do I enable it? JF> Jonas JF> ---------- Original Message ---------------------------------- JF> From: Michel Weenink <Michel@Weenink.com> JF> Reply-To: Michel Weenink <Michel@Weenink.com> JF> 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 " <jonas@netwood.net> 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: >>>> > <Directory /usr/home/xxxx/public_html/cgi-bin> >>>> > Options +ExecCGI >>>> > </Directory> >>>> >>>> This looks good, except you don't need the (+) sign... just >>>> Options ExecCGI >>>> >>>> If you really want to use brute force, this will work: >>>> >>>> <Directory /usr/home/xxxx/public_html/cgi-bin> >>>> Options All >>>> AllowOverride All >>>> order allow,deny >>>> allow from all >>>> </Directory> >>>> >>>> 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 >> >> -- 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?12616641596.20020303213335>