Okay, here is the situation:
Both machines are running Fedora Core 6 (Customized) w/ the default PHP(5.1.6) package and Apache 2.2.6. Both of these servers are running PLESK 8.2.1
On Server 1:
I've configured suPHP and it works -flawlessly-.
On Server 2:
I followed the exact same steps as on the previous server, but it's acting like suPHP is not running.
/server-info/ shows mod_suphp.c running.
It shows the vhost.conf file with the suPHP_* directives.
The following is my suphp.conf and vhost.conf file
#-----------------
supHP_Engine On
suPHP_ConfigPath "/etc"
AddType application/x-httpd-php .php
<FilesMatch "\.php$">
SetHandler x-httpd-php
</FilesMatch>
SetHandler x-httpd-php
</FilesMatch>
<Directory /var/www/vhosts/test-domain.com/httpdocs/>
php_admin_value open_basedir none
php_admin_value open_basedir none
<Files ~ (\.cgi$)>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options +ExecCGI
# allow from all
# PerlSendHeader On
</Files>
SetHandler perl-script
PerlHandler ModPerl::Registry
Options +ExecCGI
# allow from all
# PerlSendHeader On
</Files>
suPHP_AddHandler x-httpd-php
suPHP_AddHandler x-httpd-php5
suPHP_AddHandler x-httpd-php5
</Directory>
suPHP_UserGroup nspwebadmin psacln
#-------------
This file is the same on Server 1, minus the <Files ~...> .... </files> section. Regardless if this is present or not, suphp does not function.
#------------suphp.conf
[global]
;Path to logfile
logfile=/var/log/apache/suphp.log
;Path to logfile
logfile=/var/log/apache/suphp.log
;Loglevel
loglevel=info
loglevel=info
;User Apache is running as
webserver_user=apache
webserver_user=apache
;Path all scripts have to be in
docroot=/
docroot=/
;Path to chroot() to before executing script
;chroot=/mychroot
;chroot=/mychroot
; Security options
allow_file_group_writeable=false
allow_file_others_writeable=false
allow_directory_group_writeable=false
allow_directory_others_writeable=false
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=true
;Send minor error messages to browser
errors_to_browser=false
errors_to_browser=false
;PATH environment variable
env_path=/bin:/usr/bin
env_path=/bin:/usr/bin
;Umask to set, specify in octal notation
umask=0077
umask=0077
; Minimum UID
min_uid=100
min_uid=100
; Minimum GID
min_gid=100
min_gid=100
[handlers]
;Handler for php-scripts
x-httpd-php=php:/usr/bin/php-cgi
;Handler for CGI-scripts
x-suphp-cgi=execute:!self
x-suphp-cgi=execute:!self
#--------------
suphp.conf on both servers is exactly identical.
I'm stumped. I know I did the same setup on both servers (In fact, I reinstalled Server 1 and re-ran the install again using my self-created steps).
I would really love some thoughts on this. Nothing appears in the suphp.log and the error_log only screams about directory permissions when i do a test write using PHP.
Again:
Server 1 is identical to server 2. One works, one does not. Both off them were setup using the same steps.
-Geoff W.
_______________________________________________ suPHP mailing list [email protected] http://lists.marsching.biz/mailman/listinfo/suphp
