You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "jeremy-list@adtcs.com" <je...@adtcs.com> on 2005/07/01 15:32:52 UTC
Re: [users@httpd] Suexec invocation problem
jeremy-list@adtcs.com wrote:
> Hello all,
>
> Suexec is driving me crazy!
>
> Apache 1.3.33 compiled with the suexec related options
>
> --enable-suexec \
> --suexec-uidmin=100 \
> --suexec-gidmin=100 \
> --suexec-caller=nobody \
> --suexec-docroot=/usr/local/apache/vdocs/ \
> --suexec-logfile=/usr/local/apache/logs/suexec_error_log
>
> suexec is in the expected place, chowned 4755.
>
> When I restart Apache, I get the expected output in error_log that
> tells me suexec is properly configured (as stated in suexec docs)
>
> [Mon Jun 27 13:46:02 2005] [notice] suEXEC mechanism enabled (wrapper:
> /usr/local/apache/bin/suexec)
>
> httpd -l reveals
>
> suexec: enabled; valid wrapper /usr/local/apache/bin/suexec
>
> Which also tells me things are configured correctly.
>
> So, my intention is to execute suexec on a virtualhost basis.
>
> I added the User and Group directives into the virthost
>
> User username
> Group groupname
>
> username and groupname are valid and have their respective ids above 100.
> However, suexec is not being invoked. When I say not being invoked, I
> dont mean it is failing one of its many test, I mean not being invoked
> at all.
>
> Nothing is written to /usr/local/apache/logs/suexec_error_log.
>
> To test the fact that it is not being invoked, I added a call to
> log_err() in suexec.c. Executing suexec directly via the commandline
> populates /usr/local/apache/logs/suexec_error_log with my custom
> message. When I try to hit the virthost domain, my message doesn't
> appear.
>
> What could possibly prevent suexec from being invoked when I have the
> valid User/Group directives defined in the virthost tag????
>
> Stumped and really angry,
>
> Jeremy
Anyone have any thoughts on this issue. PLEASE HELP!!!!!!
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Suexec invocation problem
Posted by Joshua Slive <js...@gmail.com>.
On 7/1/05, jeremy-list@adtcs.com <je...@adtcs.com> wrote:
> >
> I am positive that the virtual host serving the requests is the one
> where I have the
>
> User/Group directives && that I am editing the correct httpd.conf.
>
> Just to be sure I ran a test. I added the directive
>
> SetEnv testval test
>
> the virtualhost in question and gracefully restarted Apache.
>
> Using PHP, I printed out phpinfo() output and observed
>
> _SERVER["testval"]
>
> as a SERVER variable available to PHP with the correct value.
>
> As a side note I have successfully installed Suexec on 2.0.52, so am familiar with the stpes involved.
Well, the fact that you are testing with PHP does bring up a question:
You are aware that suexec works only with CGI scripts executed by
mod_cgi (or, in certain cases, mod_include) and not normal pages or
pages exectued by a module such as php?
>
> At what point, if any, do I report this as a bug to Apache? What other steps does anyone recommend for troubleshooting?
Start with a fresh download from httpd.apache.org and make the
absolute minimum changes necessary to show your problem, then file a
bug report showing exactly those steps (or, more likely, while doing
this discover the real problem and forget about the bug report).
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Suexec invocation problem
Posted by "jeremy-list@adtcs.com" <je...@adtcs.com>.
Joshua Slive wrote:
>On 7/1/05, jeremy-list@adtcs.com <je...@adtcs.com> wrote:
>
>
>
>>>However, suexec is not being invoked. When I say not being invoked, I
>>>dont mean it is failing one of its many test, I mean not being invoked
>>>at all.
>>>
>>>
>
>
>
>>Anyone have any thoughts on this issue. PLEASE HELP!!!!!!
>>
>>
>>
>
>I don't recall seeing any similar reports for 1.3, so my best guess
>would be a configuration issue on your part. Are you SURE that the
>virtual host serving the requests is the one where you have the
>User/Group directives? Are you SURE you are editting the correct
>httpd.conf?
>
>Joshua.
>
>---------------------------------------------------------------------
>The official User-To-User support forum of the Apache HTTP Server Project.
>See <URL:http://httpd.apache.org/userslist.html> for more info.
>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
>For additional commands, e-mail: users-help@httpd.apache.org
>
>
>
>
I am positive that the virtual host serving the requests is the one
where I have the
User/Group directives && that I am editing the correct httpd.conf.
Just to be sure I ran a test. I added the directive
SetEnv testval test
the virtualhost in question and gracefully restarted Apache.
Using PHP, I printed out phpinfo() output and observed
_SERVER["testval"]
as a SERVER variable available to PHP with the correct value.
As a side note I have successfully installed Suexec on 2.0.52, so am familiar with the stpes involved.
At what point, if any, do I report this as a bug to Apache? What other steps does anyone recommend for troubleshooting?
Thanks for the responses.
Jeremy
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] Suexec invocation problem
Posted by Joshua Slive <js...@gmail.com>.
On 7/1/05, jeremy-list@adtcs.com <je...@adtcs.com> wrote:
> > However, suexec is not being invoked. When I say not being invoked, I
> > dont mean it is failing one of its many test, I mean not being invoked
> > at all.
> Anyone have any thoughts on this issue. PLEASE HELP!!!!!!
>
I don't recall seeing any similar reports for 1.3, so my best guess
would be a configuration issue on your part. Are you SURE that the
virtual host serving the requests is the one where you have the
User/Group directives? Are you SURE you are editting the correct
httpd.conf?
Joshua.
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org