From owner-freebsd-questions Wed Dec 5 14:33:58 2001 Delivered-To: freebsd-questions@freebsd.org Received: from blacklamb.mykitchentable.net (ekgr-dsl3-t60.citlink.net [207.173.248.60]) by hub.freebsd.org (Postfix) with ESMTP id 7C1EE37B405 for ; Wed, 5 Dec 2001 14:33:52 -0800 (PST) Received: from tagalong (unknown [165.107.42.150]) by blacklamb.mykitchentable.net (Postfix) with SMTP id A1F1DEE64C; Wed, 5 Dec 2001 14:35:22 -0800 (PST) Message-ID: <013501c17ddc$e70a3ed0$962a6ba5@lc.ca.gov> From: "Drew Tomlinson" To: "Anthony Atkielski" , References: <003401c17db7$112fb170$4116c60a@win2k.clickcom.com> <010101c17dbf$ea9bf740$962a6ba5@lc.ca.gov> <001d01c17dce$705247a0$0a00000a@atkielski.com> Subject: Re: Apache File Permissions (Was Re: Apache Upgrade With Mod_PHP) Date: Wed, 5 Dec 2001 14:33:46 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-Mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 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 ----- Original Message ----- From: "Anthony Atkielski" To: "Drew Tomlinson" ; Sent: Wednesday, December 05, 2001 12:50 PM Subject: Re: Apache File Permissions (Was Re: Apache Upgrade With Mod_PHP) > The files contained in the directory you name as target to the ScriptAlias directive are assumed to contain executable programs, and > must have the Execute permission bit set for the user ID under which the server is running. This probably explains the error you > are seeing. > > However, .php files are not executable programs; they are interpreted directly by the appropriate modules inside Apache. This being > so, you can put them anywhere on the site, and they don't need Execute permission. > > I just put my .php files wherever they are appropriate. I reserve the > script directory for true CGI programs, such as Perl scripts. OK, got it. Thanks for the explaination. Drew > ----- Original Message ----- > From: "Drew Tomlinson" > To: > Sent: Wednesday, December 05, 2001 20:06 > Subject: Apache File Permissions (Was Re: Apache Upgrade With Mod_PHP) > > > > First, thank you to Mark Tinka, John Straiton, Kevin Golding, and > > Shirley Palma for your help in setting up Apache to serve php pages. > > > > I'm attempting to setup SquirrelMail and thought I would be a good idea > > to have all the php scripts (is this the right term?) in their own > > directory like how the default install of Apache from the ports creates > > /usr/local/www/cgi-bin for those scripts. So I created > > /usr/local/www/php4/squirrelmail and unpacked the SquirrelMail tarball > > in there and setup per the instructions on the web page. I verified > > that the permissions on the php4 and squirrelmail directories are the > > same as cgi-bin. I added a line to my httpd.conf right under the > > ScriptAlias line for cgi-bin like this: > > > > ScriptAlias /cgi-bin/ /usr/local/www/cgi-bin/ > > ScriptAlias /php4/ /usr/local/www/php4/ > > > > and restarted Apache. However, when I attempt to access squirrelmail at > > http://www.mykitchentable.net/php4/squirrelmail, I get a "403 Forbidden" > > error. But if I copy the squirrelmail tree to > > /usr/local/www/data/squirrelmail (the data dir is the default content > > dir for Apache), I can access squirrelmail without error. > > > > So what permissions, httpd.conf, etc. things do I need to set to allow > > the Apache to server SquirrelMail from /usr/local/www/php4/squirrelmail? > > > > Thanks, > > > > Drew > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message