From owner-freebsd-questions@FreeBSD.ORG Sun Jul 17 22:24:25 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E721916A41C for ; Sun, 17 Jul 2005 22:24:25 +0000 (GMT) (envelope-from chris.casey@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 865FB43D48 for ; Sun, 17 Jul 2005 22:24:25 +0000 (GMT) (envelope-from chris.casey@gmail.com) Received: by zproxy.gmail.com with SMTP id 12so732277nzp for ; Sun, 17 Jul 2005 15:24:24 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=VwMO7XI0bBlAvsTyaROAq+JdSO2m5p83JWdC5NRtjIlC/XfdsVGqb+URI8ZnnOtiIdHNce7zmv9Yt7zXtcj26pI+YFRox9B05S9LbZ4BB4+ksJO7AxeRprJdOTv8aVJOpqOARv6I//e6a24MTMUBjXTSxaygTh75pCMKxMYnMrY= Received: by 10.36.227.61 with SMTP id z61mr3442635nzg; Sun, 17 Jul 2005 15:24:24 -0700 (PDT) Received: by 10.36.154.11 with HTTP; Sun, 17 Jul 2005 15:24:24 -0700 (PDT) Message-ID: <8f44b8a3050717152423d65099@mail.gmail.com> Date: Sun, 17 Jul 2005 17:24:24 -0500 From: Chris Casey To: freebsd-questions@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Subject: How to configure Apache21 port with suexec enabled and suexec_docroot change X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Chris Casey List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jul 2005 22:24:26 -0000 On a machine with an up to date ports system running 5.4, I'm trying to use Apache21 port, I know that suexec is not enabled by default and I know there should be a "make WITH_SUEXEC_MODULES=3Dyes" option, but when I try this I get some info about how to structure the options and then it appears to start the make process. Is this normal? Output: www# make WITH_SUEXEC_MODULES=3Dyes WITH_SUEXEC_DOCROOT_MODULES=3D/home =20 To enable a module category: WITH__MODULES To disable a module category: WITHOUT__MODULES =20 Per default categories are: AUTH AUTHN AUTHZ DAV MISC Categories available: AUTH AUTHN AUTHZ DAV EXPERIMENTAL LDAP MISC PROXY SSL SUEXEC THREADS To see all available knobs, type make show-options To see all modules in different categories, type make show-categories You can check your modules configuration by using make show-modules =20 =3D=3D=3D> Vulnerability check disabled, database not found =3D=3D=3D> Extracting for apache-2.1.4 =3D> Checksum OK for apache21/httpd-2.1.4-alpha.tar.bz2. =3D> Checksum OK for apache21/powerlogo.gif. =3D=3D=3D> apache-2.1.4 depends on file: /usr/local/bin/perl5.8.6 - found =20 Secondly, I would like to run the SUEXEC_DOCROOT option so I can specify a different directory from which to run CGI, like /home. The reason is for Virtual hosts. I've read that CGIWrap is a good/better substitute for this, but alas I would like to be able to take advantage of Webmin/Virtualmin/Usermin for easy administration and I know suexec support is available in those programs, but not CGIwrap. Does anyone know the syntax when installing this port that will enable suexec and change the docroot to /home? If so can you give an example? I'm aware the 1.3 port has suexec enabled already, but I couldn't find any syntax examples in the port to even try and change the docroot. =20 Thanks for the help. Chris