Date: Sun, 3 Mar 2002 20:48:22 +0100 From: Michel Weenink <Michel@Weenink.com> To: "Jonas Fornander" <jonas@netwood.net> Cc: "'ScaryG'" <freymann@scaryg.shacknet.nu>, questions@FreeBSD.ORG Subject: Re[2]: Need help with configuring cgi-bin Message-ID: <4913928154.20020303204822@Weenink.com> In-Reply-To: <021001c1c2eb$d4546b90$0800a8c0@master> References: <021001c1c2eb$d4546b90$0800a8c0@master>
next in thread | previous in thread | raw e-mail | index | archive | help
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 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?4913928154.20020303204822>