Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 3053 invoked from network); 31 Jul 2007 12:21:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Jul 2007 12:21:17 -0000 Received: (qmail 76213 invoked by uid 500); 31 Jul 2007 12:21:09 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 75809 invoked by uid 500); 31 Jul 2007 12:21:07 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 75796 invoked by uid 99); 31 Jul 2007 12:21:07 -0000 Received: from Unknown (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Jul 2007 05:21:07 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.191.124.140] (HELO web38113.mail.mud.yahoo.com) (209.191.124.140) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 31 Jul 2007 12:20:57 +0000 Received: (qmail 98592 invoked by uid 60001); 31 Jul 2007 12:20:36 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.ca; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=eq5g5vh5orvxvXapbYGUiNcEfPGkztoN3K1IC/addlBua4wjgWEUE7lwyX94oLba0j6waVuIyK0ql+C8fzTEVJ7beHNpa3jSZx+gcqFuLAXm46ngXkWjG4r38jaouKwVHKJuPIXnnWj1k9yFFEYBF/mb34bo0wk8VMyywn9RHAI=; X-YMail-OSG: DABqY9YVM1nogpT3DBOvgcOHmhbEtQvRU4.oHNhq1AB8pElqUV2Os86jBxxADYQYgI0ildp4EZb6940Il5LXfJQ65ArgXf6P3b14sBcg.d1p7p5RdTkCQhwr5pSf7A-- Received: from [24.84.42.83] by web38113.mail.mud.yahoo.com via HTTP; Tue, 31 Jul 2007 08:20:36 EDT Date: Tue, 31 Jul 2007 08:20:36 -0400 (EDT) From: Jaqui Greenlees To: users@httpd.apache.org In-Reply-To: <46AF25EE.80706@flami.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <167499.98171.qm@web38113.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] suexec + chroot + fascgi php = no input file specified. --- Jos Ewert wrote: > Hi, > > I want to set up a system like this : > > /var/www/user/htdocs/abc.com > /var/www/user/htdocs/def.com > ... try with /var/www/htdocs/user/ <- trailing slash if putting virtual hosts under this folder, since each vh need to be given a unique document root. > > To serve php ( and maybe later other systems ) I > chose fastcgi and > suexec that I modified to chroot, for flexibility > and security. > I chroot to /var/www/user . > For each user I want a minimum of php processes to > be spawned. > The problem is that PHP cant find the users document > root, e.g. Apache > sends /var/www/user/htdocs/abc.com and PHP would > have to look in > /htdocs/abc.com.If I set doc_root in the php.ini I > would have to set it > for each domain the user has and spam at least 1 > process per domain. ( > php.ini + process for abc.com with doc_root > /htdocs/abc.com and the same > for def.com ) > I also tried Setenv PHP_DOCUMENT_ROOT > /htdocs/abc.com , but i think this > doesn't work ( I can see the variable is send to php > but its not used ). > I looked at the source of suexec, php and mod_fcgid > and think there is > no way in these that could help in modifying the > document root Apache > sends to PHP. > I think making a rewrite for each request ( > abc.com/index.php -> > abc.com/abc.com/index.php ) would make work if i > set doc_root = > /htdocs . But this look rather dirty and > inefficient. > I think the best way to solve this is to send a > different document root > php (and other cgi processes ) then the one Apache > uses. > How could this be achieved ? ( maybe writing a > module ? or is there > something similar already ? ) > > Greetings, > Josi > > > --------------------------------------------------------------------- > The official User-To-User support forum of the > Apache HTTP Server Project. > See for > more info. > To unsubscribe, e-mail: > users-unsubscribe@httpd.apache.org > " from the digest: > users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: > users-help@httpd.apache.org > > Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail at http://mrd.mail.yahoo.com/try_beta?.intl=ca --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org