Hi All,

I'm seeing lots of notes on this but I am having no luck resolving  
this. I am trying to configure suPHP an apachectl complains about the  
suPHP_UserGroup directive. I can exclude the problematic directive and  
apache will start but when I try to run a php script I get this in  
suphp's log

[Wed Sep 09 11:31:33 2009] [warn] UID of script "/var/www/html/ 
info.php" is smaller than min_uid

Ultimately I wanted this to run in a virtualhost anyway so I have run  
into this while attempting to do that. Any help on this would be  
greatly appreciated. Below are all my details.

I have compiled 0.7.0 from source. Here is my config string

./configure --prefix=/usr --sysconfdir=/etc --with-apr=/usr/bin/apr-1- 
config --with-apxs=/usr/sbin/apxs --with-apache-user=apache --with- 
setid-mode=owner --with-php=/usr/bin/php-cgi --with-logfile=/var/log/ 
httpd/suphp_log --enable-SUPHP_USE_USERGROUP=yes

I am using apache 2, CentOS 5 64bit

My apache configs look like this.

conf.d/php.conf
#LoadModule php5_module modules/libphp5.so
AddHandler php5-script .php
AddType text/html .php
DirectoryIndex index.php
#AddType application/x-httpd-php-source .phps

conf.d/user.conf
<VirtualHost xxx.xxx.xxx.xxx:80>
     ServerName dev.xxxxxx.com
     DocumentRoot /home/validuser/public_html
     <IfModule mod_suphp.c>
         suPHP_Engine on
         suPHP_UserGroup validgroup validuser
     </IfModule>
</VirtualHost>

conf.d/suphp.conf
LoadModule suphp_module modules/mod_suphp.so
suPHP_Engine on
AddHandler x-httpd-php .php .php5 .php4 .php3 .phtml
suPHP_ConfigPath /etc
suPHP_AddHandler x-httpd-php

/etc/suphp.conf
[global]
;Path to logfile
logfile=/var/log/httpd/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=true

;Send minor error messages to browser
errors_to_browser=false

;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

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

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


_______________________________________________
suPHP mailing list
[email protected]
https://lists.marsching.com/mailman/listinfo/suphp

Reply via email to