Gentoo Archives: gentoo-user

From: Michael Sullivan <michael@××××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: mod_suphp
Date: Thu, 21 Sep 2006 05:26:25
Message-Id: 1158816071.5997.21.camel@bullet.espersunited.com
In Reply to: Re: [gentoo-user] Re: mod_suphp by Mark Kirkwood
1 On Thu, 2006-09-21 at 16:41 +1200, Mark Kirkwood wrote:
2 > Michael Sullivan wrote:
3 >
4 > >>
5 > >> ;Path all scripts have to be in
6 > >> docroot=/
7 > >>
8 > >> ; Security options
9 > >> allow_file_group_writeable=false
10 > >> allow_file_others_writeable=false
11 > >> allow_directory_group_writeable=false
12 > >> allow_directory_others_writeable=false
13 > >>
14 > >> ;Check wheter script is within DOCUMENT_ROOT
15 > >> check_vhost_docroot=true
16 > >>
17 >
18 > > A little more information. I have a file named test.php. It's a simple
19 > > print statement. I have a copy in /var/www/localhost/htdocs/ and
20 > > another one in /home/test/public_html/ . The one
21 > > at /var/www/localhost/htdocs/test.php works fine, but when I go to
22 > > http://localhost/~test/test.php , I get this:
23 > >
24 > > Internal Server Error
25 > > File "/home/test/public_html/test.php" is not in document root of Vhost
26 > > "/var/www/localhost/htdocs"
27 > >
28 >
29 > I suspect that the directive 'check_vhost_docroot=true' is causing the
30 > error. I guess you need it set to false for what you want to work....
31 > this lessens your security a bit unfortunately. I'm a little rust on Php
32 > configuration, but there should be some way to specify that *only*
33 > docroot and your userdir roots can execute php...
34 >
35 > Cheers
36 >
37 > Mark
38
39 I found something at
40 http://www.gentoo.org/proj/en/php/php4-php5-configuration.xml . I hope
41 it works out for me...
42
43 --
44 gentoo-user@g.o mailing list