I am testing suPHP version 0.7.1 on a system running Solaris 10 x86 and Apache 2.0.63. I compiled the software using:
./configure \ --prefix=/usr/local/suphp --with-apxs=/usr/local/apache2/bin/apxs \ --with-apache-user=nobody \ --with-logfile=/usr/local/apache2/logs/suphp_log --with-setid-mode=owner I then ran make and make install without any problems. I now see the file mod_suphp.so in my modules directory: ls -l /usr/local/apache2/modules/ total 50 -rw-r--r-- 1 root root 8504 May 29 2008 httpd.exp -rwxr-xr-x 1 root root 41568 Apr 8 08:44 mod_suphp.so* I then modified my httpd.conf file and added the following: LoadModule suphp_module modules/mod_suphp.so AddType application/x-httpd-php .php suPHP_AddHandler application/x-httpd-php Everything checks out when I run httpd -t. I then created the following suphp.conf file: [global] ;Path to logfile ;logfile=/var/log/suphp.log logfile=/usr/local/apache2/conf/suphp.log ;Loglevel loglevel=info ;User Apache is running as ;webserver_user=wwwrun webserver_user=nobody ;Path all scripts have to be in ;docroot=/var/www:${HOME}/public_html docroot=${HOME}/htdocs ;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 check_vhost_docroot=false ;Send minor error messages to browser ;errors_to_browser=false 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=100 ; Minimum GID ;min_gid=100 min_gid=10 [handlers] ;Handler for php-scripts ;x-httpd-php="php:/usr/bin/php" x-httpd-php="php:/usr/local/php5/bin/php" ;Handler for CGI-scripts x-suphp-cgi="execute:!self" After restarting Apache successfully, I tried loading the following PHP script from a web browser: <html> <head><title>PHP Test</title></head> <body> <p>If nothing follows this paragraph, PHP is not enabled.</p> <?php phpinfo() ?> </body> </html> Which results in an internal server error and the following in my error log: [Wed Apr 08 11:36:01 2009] [error] [client 134.139.1.176] SecurityException in Application.cpp:496: Handler not found in configuration [Wed Apr 08 11:36:01 2009] [error] [client 134.139.1.176] Caused by KeyNotFoundException in Configuration.cpp:234: Handler "application/x-httpd-php" not found [Wed Apr 08 11:36:01 2009] [error] [client 134.139.1.176] Premature end of script headers: phpinfo.php What am I missing here? Thanks in advance, Jesse Jesse Santana Project Lead - Enterprise Services Group Information Technology Services California State University, Long Beach 1250 Bellflower Blvd. Long Beach, CA 90840 Office: (562)985-8511 Fax: (562)985-8855
_______________________________________________ suPHP mailing list suPHP@lists.marsching.biz http://lists.marsching.com/mailman/listinfo/suphp