webmasteroy Posted March 8, 2009 Share Posted March 8, 2009 This topic is related to virtualhosts, and allowing the SuexecUserGroup directive in the <Directory></Directory> tags. By default apache wont allow this (which is a problem in my circumstance), I did some research and forum surfing and I finally came to this apache page: http://mail-archives.apache.org/mod_mbox/httpd-dev/200308.mbox/%3C20030901003301.GA23752@castlerea.stdlib.net.%3E I cant seem to download the file attached their which are the supposed patch, and even if I could get them downloaded, I have no idea how I would apply the patch! Any assistance in applying this patch to my Debian Etch Server, would be greatly appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/148518-allow-suexecusergroup-in/ Share on other sites More sharing options...
trq Posted March 8, 2009 Share Posted March 8, 2009 Applying a patch meens you would need to rebuild apache from source. The process is quite simple. Download apache source code from apache.org, unpack it to a temp directory, cd into that directory, apply the patch, configure, compile then install. You may however want to look into hacking the current *.deb file and installing it through dpkg. Quote Link to comment https://forums.phpfreaks.com/topic/148518-allow-suexecusergroup-in/#findComment-779937 Share on other sites More sharing options...
webmasteroy Posted March 8, 2009 Author Share Posted March 8, 2009 Actually I got in contact with the author of that email/post, and he told me that the standard to use now is mod_userdir, for what I was trying to accomplish. So I am recompiling apache with mod_userdir , wish me luck. Quote Link to comment https://forums.phpfreaks.com/topic/148518-allow-suexecusergroup-in/#findComment-779976 Share on other sites More sharing options...
trq Posted March 9, 2009 Share Posted March 9, 2009 You should be able to install that module via apt-get. Quote Link to comment https://forums.phpfreaks.com/topic/148518-allow-suexecusergroup-in/#findComment-780040 Share on other sites More sharing options...
webmasteroy Posted March 9, 2009 Author Share Posted March 9, 2009 You should be able to install that module via apt-get. Oh? How do I do that, as I tried the recompile and it failed with. ./configure --enable-userdir. How would I use the apt-get method, that would be so much easier! Quote Link to comment https://forums.phpfreaks.com/topic/148518-allow-suexecusergroup-in/#findComment-780047 Share on other sites More sharing options...
trq Posted March 9, 2009 Share Posted March 9, 2009 Actaully, mod_userdir is installed by default you just need to enable it. sudo a2enmod userdir Quote Link to comment https://forums.phpfreaks.com/topic/148518-allow-suexecusergroup-in/#findComment-780052 Share on other sites More sharing options...
webmasteroy Posted March 9, 2009 Author Share Posted March 9, 2009 Actaully, mod_userdir is installed by default you just need to enable it. sudo a2enmod userdir My default vHost reads as: NameVirtualHost *:80 <VirtualHost *:80> _____DocumentRoot /var/www/public/ _____UserDir /var/www/*/public_html _____<IfModule mod_fcgid.c> __________SuexecUserGroup * * __________PHP_Fix_Pathinfo_Enable 1 __________<Directory /var/www/public/> _______________Options +ExecCGI _______________AllowOverride All _______________AddHandler fcgid-script .php _______________FCGIWrapper /var/www/php-fcgi-scripts/*/php-fcgi-starter .php _______________Order allow,deny _______________Allow from all __________</Directory> _____</IfModule> _____# ErrorLog /var/log/apache2/error.log _____# CustomLog /var/log/apache2/access.log combined _____ServerSignature Off </VirtualHost> When I restart apache, I get the following error. katrina:~# /etc/init.d/apache2 force-reload Forcing reload of web server (apache2)...apache2: bad user name * failed! How do I use SuexecUserGroup as well as FCGIWrapper in conjunction with UserDir? Quote Link to comment https://forums.phpfreaks.com/topic/148518-allow-suexecusergroup-in/#findComment-780057 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.