Michael Sullivan wrote:


;Path all scripts have to be in
docroot=/

; Security options
allow_file_group_writeable=false
allow_file_others_writeable=false
allow_directory_group_writeable=false
allow_directory_others_writeable=false

;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=true


A little more information.  I have a file named test.php.  It's a simple
print statement.  I have a copy in /var/www/localhost/htdocs/ and
another one in /home/test/public_html/ .  The one
at /var/www/localhost/htdocs/test.php works fine, but when I go to
http://localhost/~test/test.php , I get this:

Internal Server Error
File "/home/test/public_html/test.php" is not in document root of Vhost
"/var/www/localhost/htdocs"


I suspect that the directive 'check_vhost_docroot=true' is causing the error. I guess you need it set to false for what you want to work.... this lessens your security a bit unfortunately. I'm a little rust on Php configuration, but there should be some way to specify that *only* docroot and your userdir roots can execute php...

Cheers

Mark
--
[email protected] mailing list

Reply via email to