Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Dec 2001 14:33:46 -0800
From:      "Drew Tomlinson" <drew@mykitchentable.net>
To:        "Anthony Atkielski" <anthony@freebie.atkielski.com>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Apache File Permissions (Was Re: Apache Upgrade With Mod_PHP)
Message-ID:  <013501c17ddc$e70a3ed0$962a6ba5@lc.ca.gov>
References:  <003401c17db7$112fb170$4116c60a@win2k.clickcom.com> <010101c17dbf$ea9bf740$962a6ba5@lc.ca.gov> <001d01c17dce$705247a0$0a00000a@atkielski.com>

next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message -----
From: "Anthony Atkielski" <anthony@freebie.atkielski.com>
To: "Drew Tomlinson" <drew@mykitchentable.net>;
<freebsd-questions@FreeBSD.ORG>
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" <drew@mykitchentable.net>
> To: <freebsd-questions@FreeBSD.ORG>
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?013501c17ddc$e70a3ed0$962a6ba5>