Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Dec 2001 11:06:16 -0800
From:      "Drew Tomlinson" <drew@mykitchentable.net>
To:        <freebsd-questions@freebsd.org>
Subject:   Apache File Permissions (Was Re: Apache Upgrade With Mod_PHP)
Message-ID:  <010101c17dbf$ea9bf740$962a6ba5@lc.ca.gov>
References:  <003401c17db7$112fb170$4116c60a@win2k.clickcom.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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