If Apache does find the wrapper, it reports it in the server error
log like this:
[Thu Dec 30 01:24:43 1999] [notice] suEXEC mechanism enabled
(wrapper: /usr/local/web/apache/bin/suexec)
Up until Apache version 1.3.11, there was no way to be sure where a
compiled Apache server is going to be looking for the suexec
binary. As of 1.3.11, though, it’s part of the ‘compiled modules’ report
displayed by the ‘-l
‘ switch:
% /usr/local/web/apache/bin/httpd -l Compiled-in modules: http_core.c mod_so.c suexec: enabled; valid wrapper /usr/local/web/apache/bin/suexecThe '
enabled; valid
' notation means that the wrapper is
actually present in the indicated location, and the permissions are correct. If
the wrapper isn't there, or the permissions are wrong, the output will indicate
thatsuexec
is disabled.Compiling Suexec
Because most of
suexec
's control parameters are defined at
compile-time, the only way to change them is to recompile. And since the
wrapper works very closely with the Apache Web server--to the point of both
applications having to share some compile-time definitions--the way to
recompilesuexec
is to recompile all of Apache. If you've never
done this before, you can see a brief treatment of the process in the
"Building Apache at Lightspeed" section of this article.There are several
suexec
-specific options to the
apache-1.3/configure
script. Here they are:
--enable-suexec
configure
script that you want the wrapper to be built as well.suexec
will not be built, even if there aresuexec
options on the command line.
--suexec-caller=username
User
directive outside all
containers. If suexec
is invoked
The default username is
www
.
--suexec-docroot=path
suexec
. (This restriction~username
-style URLs.) Ifsuexec
, their DocumentRoots.cgi
files) must all be located somewhere in theScriptAlias
ed directories must be under this hierarchy as well,Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved
Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.