Jump to content

Allow SuexecUserGroup in <Directory>


webmasteroy

Recommended Posts

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/%[email protected].%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.

Link to comment
https://forums.phpfreaks.com/topic/148518-allow-suexecusergroup-in/
Share on other sites

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.

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?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.