Jump to content

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/%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.

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?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.