Hi, I have suPHP 0.6.2 installed on a server. I am currently using the UserDir module in our webserver and suPHP is running as the username and group for each account. We need to setup domain names to go to certain user accounts now, so I setup a VirtualHost definition for the new domain and at first it didn't know what user to run it as so I added the option in the VirtualHost settings "suPHP_UserGroup myuser myuser". After stoppping the apache server and starting it back up, the domain name works great and the files get executed as the user. But all of the accounts on the UserDir now try to execute as the user myuser and it comes up with an error saying the UID doesn't match, and then has the accounts UID and the myuser UID. How can I get it so I can use virtualhosts and UserDir's with suPHP?
Here is my UserDir config in the httpd.conf: <IfModule mod_userdir.c> UserDir public_html suPHP_Engine on AddHandler x-httpd-php .php .php3 .php4 .php5 suPHP_AddHandler x-httpd-php </IfModule> And here is my VirtualHosts: <VirtualHost host.blahblah.net> ServerName host.blahblah.net ServerAlias host.blahblah.com ServerAdmin [EMAIL PROTECTED] DocumentRoot /var/www/html </VirtualHost> <VirtualHost blog.blahblah.net> ServerName blog.blahblah.net ServerAdmin [EMAIL PROTECTED] DocumentRoot /home/myuser/public_html/ # suPHP_UserGroup myuser myuser </VirtualHost> And here is the suphp.conf file: [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=47 ; Minimum GID min_gid=47 [handlers] ;Handler for php-scripts x-httpd-php=php:/usr/bin/php ;Handler for CGI-scripts x-suphp-cgi=execute:!self And here is how I compiled suPHP: ./configure --prefix=/usr --sysconfdir=/etc --with-apache-user=apache --with-setid-mode=paranoid --with-apxs=/usr/sbin/apxs --disable-checkpath Thanks Blake Grover IT Manager EZ-NetTools www.eznettools.com 800-627-4780 X2003 EZ-NetTools - We make it easy! _______________________________________________ suPHP mailing list [email protected] http://lists.marsching.biz/mailman/listinfo/suphp
