Gentoo Archives: gentoo-user

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

Replies

Subject Author
Re: [gentoo-user] Re: mod_suphp Michael Sullivan <michael@××××××××××××.com>