Hey,

have u tried adding another handler for the php mime-type?
i.e. adding the following line to suphp.conf:

x-httpd-php=php:/usr/bin/php5-cgi


As far as I can see there's only an suphp mime-type in ur suphp.conf file and I'm not sure whether this matches the php mime-types.
Regards,
Stefan
Hello, I use Debian Squeeze, I can't find why suPHP doesn't work.

# dpkg -l | grep suphp
ii  libapache2-mod-suphp                 0.7.1-1
Apache2 module to run php scripts with the owner permissions
ii  suphp-common                         0.7.1-1                    Common
files for mod suphp

I have suPHP installed. Apache successfull load suPHP module:

# apache2ctl -t -D DUMP_MODULES
Loaded Modules:
   core_module (static)
   log_config_module (static)
   logio_module (static)
   mpm_prefork_module (static)
   http_module (static)
   so_module (static)
   alias_module (shared)
   auth_basic_module (shared)
   authn_file_module (shared)
   authz_default_module (shared)
   authz_groupfile_module (shared)
   authz_host_module (shared)
   authz_user_module (shared)
   autoindex_module (shared)
   cgi_module (shared)
   deflate_module (shared)
   dir_module (shared)
   env_module (shared)
   mime_module (shared)
   negotiation_module (shared)
   php5_module (shared)
   setenvif_module (shared)
   status_module (shared)
   suphp_module (shared)
Syntax OK


Example PHP file (test.php):<? system("id") ?>

Effect:
uid=33(www-data) gid=33(www-data) groups=33(www-data)


test.php owner: skorpion

I don't see anything in Apache log, suphp log is empty.

This is my config (default, from package suphp-common)


[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=/var/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=100

; Minimum GID
min_gid=100


[handlers]
;Handler for php-scripts
application/x-httpd-suphp="php:/usr/bin/php-cgi"

;Handler for CGI-scripts
x-suphp-cgi="execute:!self"

I need suPHP, please help me.

Sorry for my english...



No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.717 / Virus Database: 270.14.116/2578 - Release Date: 12/20/09 
20:35:00


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

Reply via email to