[Nottingham] Apache 1.3 + CGI/Perl + suEXEC

Raphael Gangneux nlug at domainarena.net
Thu Oct 5 09:50:38 BST 2006


>>On 04/10/2006 15:28, Raphael Gangneux wrote:
>>From suexec.log:
>> [2006-10-04 14:32:48]: uid: (526/user) gid: (513/513) cmd: 
>>BFormMail.pl
>> [2006-10-04 14:32:48]: command not in docroot
>> (/home/user/cgi-bin/BFormMail.pl)

>I'll wager that "suexec -V" will give you a docroot of /var, /var/www, or
/var/www/html.
>You'll likely need to recompile it.
>Graeme


Thanks Graeme and ChrisB.
You are definitely right:
 -D AP_DOC_ROOT="/var/www"
 -D AP_GID_MIN=100
 -D AP_HTTPD_USER="apache"
 -D AP_LOG_EXEC="/var/log/httpd/suexec.log"
 -D AP_SAFE_PATH="/usr/local/bin:/usr/bin:/bin"
 -D AP_UID_MIN=500
 -D AP_USERDIR_SUFFIX="public_html"

Now as Graeme said I have read that the only way to get that changed is to
re-compile the bugger, however I have read that "since Apache and SuEXEC are
so intertwined, it's actually best if you recompile apache."
This box is currently serving about 30 websites. How likely am I to break
everything? Do you guys think it is necessary to recompile Apache ?
I am tempted to go for Chris'suggestion about: "mount -o bind" /home/user
into /var/www/whatever ...

Thanks for the help.
Raph





More information about the Nottingham mailing list