hi there

i am failing turn suphp on ...

running debian lenny & apache2, i installed suphp from debian repositories

dpkg -l suphp-common
ii  suphp-common    0.6.2-3

i installed VHFFS for massive virtual hosting, which stores web account in /data/web and serves them with module vhost_hash_alias

i am trying to setup suph, but only have php files asked for download

Only entries in suphp logs are my tryies to run phpinfo on another vhost
Script "/var/www/truc/pano/phpinfo.php" resolving to "/var/www/truc/pano/phpinfo.php" not within configured docroot

as i said, vhffs stores data in /data/web so /var/www is not configured as docroot

but php files in docroot are not executed

/etc/suphp/suphp.conf
[global]
;Path to logfile
logfile=/var/log/suphp/suphp.log
;Loglevel
loglevel=info
;User Apache is running as
webserver_user=www-data
;Path all scripts have to be in
docroot=/data/web
; Security options
allow_file_group_writeable=true
allow_file_others_writeable=false
allow_directory_group_writeable=true
allow_directory_others_writeable=false
;Check wheter script is within DOCUMENT_ROOT
check_vhost_docroot=false
;Send minor error messages to browser
errors_to_browser=true
;PATH environment variable
env_path=/bin:/usr/bin
;Umask to set, specify in octal notation
umask=0077
; Minimum UID
min_uid=10000
; Minimum GID
min_gid=10000
[handlers]
;Handler for php-scripts
application/x-httpd-php=php:/usr/bin/php5-cgi
;Handler for CGI-scripts
x-suphp-cgi=execute:!self


/etc/apache2/mods-enabled/suphp.conf
<IfModule mod_suphp.c>
        AddType application/x-httpd-php .php .php3 .php4 .php5 .phtml
        suPHP_AddHandler application/x-httpd-php
    <Directory />
        suPHP_Engine Off
    </Directory>
# By default, disable suPHP for debian packaged web applications as files
    # are owned by root and cannot be executed by suPHP because of min_uid.
    <Directory /usr/share>
        suPHP_Engine off
    </Directory>
# # Use a specific php config file (a dir which contains a php.ini file)
#       suPHP_ConfigPath /etc/php4/cgi/suphp/
# # Tells mod_suphp NOT to handle requests with the type <mime-type>.
#       suPHP_RemoveHandler <mime-type>
</IfModule>


i added this line in /etc/apache2/aache2.conf
AddType application/x-httpd-php .php

i didn't forget to disable php5 mod
 ls /etc/apache2/mods-enabled/
alias.conf            autoindex.conf  mime.conf         ssl.load
alias.load            autoindex.load  mime.load         status.conf
auth_basic.load       cgi.load        negotiation.conf  status.load
authn_file.load       deflate.conf    negotiation.load  suphp.conf
authz_default.load    deflate.load    rewrite.load      suphp.load
authz_groupfile.load  dir.conf        setenvif.conf     vhost_hash_alias.conf
authz_host.load       dir.load        setenvif.load     vhost_hash_alias.load
authz_user.load       env.load        ssl.conf

my vhffs vhost  :
<VirtualHost *:80>
      ServerAdmin [email protected]
      DocumentRoot /data/web
      HashEnable On
      <Directory /data/web/>
              Options -ExecCGI Indexes FollowSymLinks +Includes MultiViews
              IndexIgnore */.quota */.*passw* */.htaccess
              IndexOptions NameWidth=*
              AllowOverride All
              order allow,deny
              allow from all
              RewriteEngine on
      </Directory>
      <IfModule mod_suphp.c>
                AddHandler x-httpd-php .php .php3 .php4 .php5
                suPHP_AddHandler application/x-httpd-php
                suPHP_Engine on
      </IfModule>
      ErrorLog /var/log/apache2/vhffs-sites-error.log
LogFormat "%V %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" vhffs
      CustomLog /data/logs/web/incoming/localhost/vhffs.log vhffs
      LogLevel warn
      ServerSignature On
</VirtualHost>


thanks for any help :)


_______________________________________________
suPHP mailing list
[email protected]
https://lists.marsching.com/mailman/listinfo/suphp

Reply via email to