Discussion:
adding mod_suexec.so to apache 2 installation freeBSD 4.7
(too old to reply)
Matthew Bailey
2004-07-04 18:38:21 UTC
Permalink
I have apache 2 running on a FreeBSD 4.7 and I have need of suexec. I
was unaware of this future need at install and so now I must add the
functionality to an already installed apache.

The problem:

I don't know how. :-)

I was originally planning on reinstalling apache, but apache doesn't
seem to want to reinstall ( make reinstall, Don't know how to
reinstall). It would be nice to not un-install apache any way, but I do
not know how to add this module to the server.

Any help would be appreciated.
Matthew Bailey
2004-07-04 18:40:28 UTC
Permalink
The is it doesn't know how to:

#make deinstall

I've got to watch that spell checker closer!
Post by Matthew Bailey
I have apache 2 running on a FreeBSD 4.7 and I have need of suexec. I
was unaware of this future need at install and so now I must add the
functionality to an already installed apache.
I don't know how. :-)
I was originally planning on reinstalling apache, but apache doesn't
seem to want to reinstall ( make reinstall, Don't know how to
reinstall). It would be nice to not un-install apache any way, but I do
not know how to add this module to the server.
Any help would be appreciated.
Matthew Bailey
2004-07-04 20:03:55 UTC
Permalink
Ok, my confusion was not well stated.

When you install apache from the ports collection you can configure it
to install with suexec, however I did not do this.

How do I add it to the install of Apache?

I was going to just reistall (reinstalling is less desireable) apache...

# cd /usr/ports/www/apache21/work/httpd-2.0.48/
# make deinstall
make: don't know how to make deinstall. Stop

So I decided this was not the right thing to do.

I see the suexec in the ports collection...
/usr/ports/www/apache21/work/httpd-2.0.48/modules/generators/mod_suexec.c
/usr/ports/www/apache21/work/httpd-2.0.48/modules/generators/mod_suexec.h
/usr/ports/www/apache21/work/httpd-2.0.48/modules/generators/mod_suexec.la
/usr/ports/www/apache21/work/httpd-2.0.48/modules/generators/mod_suexec.lo
/usr/ports/www/apache21/work/httpd-2.0.48/modules/generators/mod_suexec.o
but I don't know how to get it installed.

Is there a simple way to upgrade apache with new arguments?

I did try to do...

make clean
./configure --enable-suexec --datadir=/usr/home
make -DWITH_SUEXEC
make install

then I did:
# apachectl restart
# httpd -l
Compiled in modules:
core.c
prefork.c
http_core.c
mod_so.c

And searched for the mod_suexec.so file, it didn't exist.

I'm obviously missing something here.

I admit that I do not understand the ports collection well, and so I do
not know exactly what to do... do I need a clean world first?

Lost and confused,

Mat
Post by Matthew Bailey
I have apache 2 running on a FreeBSD 4.7 and I have need of suexec. I
was unaware of this future need at install and so now I must add the
functionality to an already installed apache.
I don't know how. :-)
I was originally planning on reinstalling apache, but apache doesn't
seem to want to reinstall ( make reinstall, Don't know how to
reinstall). It would be nice to not un-install apache any way, but I do
not know how to add this module to the server.
Any help would be appreciated.
Loading...