In /etc/suphp/suphp.confg, if I use:

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

and then call it using this in apache2 :

<IfModule mod_suphp.c>
<Directory /home/>
AddType application/x-httpd-php .php .php3 .php4 .php5
 suPHP_AddHandler application/x-httpd-php
suPHP_Engine on
 suPHP_ConfigPath /home/shared/
</Directory>
</IfModule>

Then no php files located in /home/ ever get ran by suPHP, they instead use
the apache module. However, if I remove the application/  from both apache2
config and suphp.conf, then apache2 will correctly use suPHP when it needs
to but warn excessive:  [warn] Cannot get media type from 'x-httpd-php'
_______________________________________________
suPHP mailing list
[email protected]
https://lists.marsching.com/mailman/listinfo/suphp

Reply via email to