From owner-freebsd-questions Wed Dec 5 11: 6:22 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 04B3137B41A for ; Wed, 5 Dec 2001 11:06:18 -0800 (PST) Received: from tagalong (unknown [165.107.42.150]) by blacklamb.mykitchentable.net (Postfix) with SMTP id 084BFEE64C for ; Wed, 5 Dec 2001 11:07:53 -0800 (PST) Message-ID: <010101c17dbf$ea9bf740$962a6ba5@lc.ca.gov> From: "Drew Tomlinson" To: References: <003401c17db7$112fb170$4116c60a@win2k.clickcom.com> Subject: Apache File Permissions (Was Re: Apache Upgrade With Mod_PHP) Date: Wed, 5 Dec 2001 11:06:16 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" 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 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