suPHP Homepage

Home | Download | FAQ | Documentation | Help

Can I use suPHP with Apache 2.0?
Yes, you can. The Apache 2.0 module provides even more features than the Apache 1.3 module!
Dows suPHP work with Apache 2.2?
Yes, since version 0.6.2 Apache 2.2 is supported.
When I am using suPHP I have zombie processes. What's the problem?
Apache 1.3.28 has a bug in the Apache core which causes CGI processes not to be ended correctly. mod_suphp uses some of this core functions, however it is not a bug in mod_suphp but in Apache itself. The bug is first occured in Apache 1.3.28 and is fixed since Apache 1.3.29.
Why do my scripts not work and why do I get an "Premature end of script headers" in the error_log?
You probably have installed the CLI version of PHP, but you need the CGI version. Copy the file /build/path/sapi/cgi/php to /where/ever/you/have/installed/bin/php to use the CGI version.
I have installed and configured suPHP, but PHP scripts are still not executed. Instead of returning the script output, the source code itself is returned.
Please make sure you have not only setup the fileextensions using the AddType directive but also have registered the MIME type with mod_suphp using the suPHP_AddHandler directive.
Does suPHP support code highlighting by using the ".phps" extension?
suPHP itself has no support for code highlighting. The main reason is that PHP-CGI does not support any input parameter to activate code highlighting. However there is a solution based on a small PHP script and some rewrite rules. You can find the discussion at http://forums.macosxhints.com/archive/index.php/t-23595.html.
Can I use the php_value directives in .htaccess files with suPHP?
suPHP does not support the php_value/php_admin_value directive known by mod_php to parse configuration options to scripts for certain virtual hosts or directories. However there is a PECL extension named htscanner that can be used with PHP CGI (called by suPHP) to parse such options being present in .htaccess files. Be sure to take a look at the README file provided with the htscanner distribution on how to make Apache ignore the php_value directives in .htaccess files instead of throwing an error.
(c) 2006 Sebastian Marsching

Valid XHTML 1.0!Valid CSS!