Hello and thanks,
Still it refuses to work..
<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot "/home/empty/public_html"
ServerName empty.pp.se
ServerAlias www.empty.pp.se empty.pp.se rootbsd.se www.rootbsd.se
suPHP_Engine on
AddHandler x-httpd-php5 .php .php3 .php4 .php5
suPHP_AddHandler x-httpd-php5
</VirtualHost>
If I change to /usr/home/empty/public_html
I just get permission denied, and in logs I see
client denied by server configuration: /usr/home/empty/public_html/test.php
My suphp.conf - standard I guess..
[global]
;Path to logfile
logfile=/var/log/suphp.log
;Loglevel
loglevel=info
;User Apache is running as
webserver_user=www
;Path all scripts have to be in
docroot=/usr/local/www/*:${HOME}/public_html
;Path to chroot() to before executing script
;chroot=/mychroot
; 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
;Send minor error messages to browser
errors_to_browser=false
;PATH environment variable
env_path=/bin:/usr/bin
;Umask to set, specify in octal notation
umask=0077
; Minimum UID
min_uid=80
; Minimum GID
min_gid=80
[handlers]
;Handler for php-scripts
application/x-httpd-php="php:/usr/local/bin/php"
;Handler for CGI-scripts
x-suphp-cgi="execute:!self"
And if i comment out php5_module in httpd.conf My browser just wants to
download the php-files?
Thanks for the help!
----- Original Message -----
From: Eduardo Romero
To: Johan Tärnklint
Cc: [email protected]
Sent: Sunday, August 09, 2009 8:23 PM
Subject: Re: [suPHP] Problem with suphp..
It complains that the file is not under the DocumentRoot of the Vhost. Set
the DocRoot in the Vhost config file to /usr/home/ instead.
You could also turn of that feature:
check_vhost_docroot=false
And finally, php5 should be disabled. Comment out the LoadModule php5_module
line.
Cheers,
- Eduardo
Johan Tärnklint wrote:
Hello,
I have added the following to my httpd.conf, but it wont work.
<IfModule mod_suphp.c>
AddHandler x-httpd-php .php .php3 .php4 .php5 .phtml
suPHP_AddHandler x-httpd-php
suPHP_Engine on
</IfModule>
Iam getting this error on my site:
SoftException in Application.cpp:221: File
"/usr/home/empty/public_html/test.php" is not in document root of Vhost
"/home/empty/public_html"
Also added this to httpd.conf
LoadModule php5_module libexec/apache22/libphp5.so
LoadModule suphp_module libexec/apache22/mod_suphp.so
Maby php5-module should be disabled?
Thanks in advance!
----------------------------------------------------------------------------
_______________________________________________
suPHP mailing list
[email protected]
https://lists.marsching.com/mailman/listinfo/suphp
--
ISC. Eduardo Romero
[--Fox--]
http://foxteck.org
_______________________________________________
suPHP mailing list
[email protected]
https://lists.marsching.com/mailman/listinfo/suphp