Hello.

I still use mod_suphp-0.6.2-1.fc7 on Fedora Core 7. All is fine.

Set up new test server and moved all data to new server. Upgraded Fedora 
Core 7 to Fedora Core 9 and got mod_suphp-0.6.3-1.fc9.x86_64.

One example virtualhost config.
<VirtualHost *:80>
        ServerName      www.tuuleke.ee
        ServerAlias     tuuleke.ee   
       
        DocumentRoot    /home/virtual/tuuleke.ee/vhosts/www/htdocs
        CustomLog       
/home/virtual/tuuleke.ee/vhosts/www/logs/www.tuuleke.ee.access combined
        ErrorLog        
/home/virtual/tuuleke.ee/vhosts/www/logs/www.tuuleke.ee.errors
        <Directory /home/virtual/tuuleke.ee/vhosts/www/htdocs>
                Options MultiViews FollowSymLinks
                AllowOverride FileInfo AuthConfig Limit Indexes
        </Directory>
        Alias /stats /home/www/logs/stats

        ScriptAlias /cgi-bin/ /home/virtual/tuuleke.ee/vhosts/www/cgi-bin/
        <Directory /home/virtual/tuuleke.ee/vhosts/www/cgi-bin>
                Options ExecCGI
                AllowOverride FileInfo AuthConfig Limit Indexes
        </Directory>


        <Directory /home/virtual/tuuleke.ee/vhosts/www/cgi-bin>
                Options ExecCGI
        </Directory>



        RewriteEngine On
        RewriteRule   ^/~([^./]+)(.*)  
/ispman/domains/tuuleke.ee/users/$1_tuuleke_ee/public_html$2

        suPHP_Engine on
suPHP_AddHandler php5-script

CBandSpeed 128 3 1
CBandRemoteSpeed 20kb/s 1 1
CBandScoreboard /home/virtual/tuuleke.ee/vhosts/www/scoreboard
CBandLimit 100M
CBandPeriod 4W

</VirtualHost>

/etc/suphp.conf:

    I    
/etc/suphp.conf                                                                 
                                                
Row 1    Col 1   10:58  Ctrl-K H for help
[global]
;Path to logfile
logfile=/var/log/suphp.log

;Loglevel
loglevel=info

;User Apache is running as
webserver_user=apache

;Path all scripts have to be in
docroot=/

;Path to chroot() to before executing script
;chroot=/mychroot

; 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=500

; Minimum GID
min_gid=500

; Use correct permissions for mod_userdir sites
handle_userdir=true

[handlers]
;Handler for php-scripts
php5-script=php:/usr/bin/php-cgi

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

/etc/httpd/conf.d/mod_suphp.conf:
# This is the Apache server configuration file providing suPHP support..
# It contains the configuration directives to instruct the server how to
# serve php pages while switching to the user context before rendering.

LoadModule suphp_module modules/mod_suphp.so


### Uncomment to activate mod_suphp
#suPHP_AddHandler php5-script


# This option tells mod_suphp if a PHP-script requested on this server (or
# VirtualHost) should be run with the PHP-interpreter or returned to the
# browser "as it is".
suPHP_Engine on


# This option tells mod_suphp which path to pass on to the PHP-interpreter
# (by setting the PHPRC environment variable).
# Do *NOT* refer to a file but to the directory the file resists in.
#
# E.g.: If you want to use "/path/to/server/config/php.ini", use 
"suPHP_Config
# /path/to/server/config".
#
# If you don't use this option, PHP will use its compiled in default path.
#suPHP_ConfigPath /etc


And the problem is some virtualhosts are working fine and are using 
suphp and some are not working and are giving error in apache error log:
[Fri Feb 27 22:58:08 2009] [error] [client 84.50.17.113] terminate 
called after throwing an instance of 'suPHP::LookupException'
[Fri Feb 27 22:58:08 2009] [error] [client 84.50.17.113] Premature end 
of script headers: index.php

file/dir rights:
[23:03:23 r...@h11 htdocs]# pwd
/var/www/tuuleke.ee/vhosts/www/htdocs - (virtual host document root)
-rw-r--r-- 1 11947 10386  397 2008-09-03 21:53 index.php

totally the same conf works on FC7 and suphp-0.6.2.


-- 
---
Margus "Margusja" Roo
+3725148780
skype: margusja
msn: margu...@kodila.ee
homepage: http://margusja.pri.ee


_______________________________________________
suPHP mailing list
suPHP@lists.marsching.biz
http://lists.marsching.com/mailman/listinfo/suphp

Reply via email to