Jump to content

FreeBSD 6.1:Apache22 - How do I enable suexec?


VaKo

Recommended Posts

I've recently been playing around with building a virtual hosting server based on FreeBSD 6.1 and virtualmin. Everything from installing the base system to recompiling the kernel to enable quotas has gone smoothly, with google filling in the holes nicely. But I'm stuck on enabling the suexec module in apache to allow virtualmin to configure.

I've got as far as working out that I need to re-compile apache with...

CONFIGURE_ARGS=

--enable-suexec

--with-suexec-bin=/usr/local/sbin/suexec

...somewhere in the make file. Do I need to create a new .if entry or can I just add the 2 CONFIGURE_ARGS to the other ones? Are the .if entrys for creating the make config menus? And are there more CONFIGURE_ARGS I need to enable suexec? I've looked at the apache documentation but I can't find anything FreeBSD specific. I know enough to know that FreeBSD is different to Linux, but I don't know exactly how.

Link to comment
Share on other sites

cd /usr/ports/www/apache22/

cp Makefile Makefile.old

edit Makefile

CONFIGURE_ARGS= --prefix=${PREFIX_RELDEST} 

--enable-layout=FreeBSD 

--with-perl=${PERL5} 

--with-port=${WITH_HTTP_PORT} 

--with-expat=${LOCALBASE} 

--with-iconv=${LOCALBASE} 

--enable-http 

--enable-suexec 

--with-suexec-bin=/usr/local/sbin/suexec

make install clean

And thats how you enable suexec.

Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...