From owner-freebsd-isp Thu Jun 13 9:19:26 2002 Delivered-To: freebsd-isp@freebsd.org Received: from aurora.siteplus.com (aurora.siteplus.com [66.129.2.160]) by hub.freebsd.org (Postfix) with ESMTP id D56D837B414 for ; Thu, 13 Jun 2002 09:19:17 -0700 (PDT) Received: from host-216-78-5-95.jan.bellsouth.net (host-216-78-5-95.jan.bellsouth.net [216.78.5.95]) by aurora.siteplus.com (8.9.3/8.9.3) with ESMTP id MAA34980; Thu, 13 Jun 2002 12:13:24 -0400 (EDT) (envelope-from jim@jwweeks.com) Date: Thu, 13 Jun 2002 12:13:21 -0400 (EDT) From: jim To: Tim McCullagh Cc: freebsd-isp@freebsd.org Subject: Re: suexec question In-Reply-To: <04f901c212aa$f8d45340$6500a8c0@halenet.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Thu, 13 Jun 2002, Tim McCullagh wrote: > However now I get the error > I have also had to change the lines with the <<<< on them basically add > the www into the path or put on a trailing \. I can't see how this would > have of hurt Tim, Thanks for noting the typo's. Did you watch the build to make sure the patch applied cleanly? That is the only thing I can think of that may have gone wrong. If I remember correctly, I actually viewed the patch in my browser at http://www.rtr.com/fpsupport/fp-patch-apache_1.3.22.htm , copied and pasted from the browser to vi files/patch-aj I am going to add this back to the list with the corrections you have pointed out. BTW, I built this from a Jun, 9th cvsup and made world on a clean stable snapshot the same day. -- Jim Weeks cd /usr/ports/misc/compat3x make && make install && make clean cd /usr/local # Fetch fp_install.sh and latest Frontpage extensions from, http://www.microsoft.com/frontpage/ tar xzvf fp50.freebsd.tar.Z cd /usr/ports/apache13-modssl # Obtain latest apache patch from, # http://www.rtr.com/fpsupport/fp-patch-apache_1.3.22.htm # Copy the patch to /usr/ports/www/apache13-modssl/files/ and # rename to patch-aj (/usr/ports/www/apache13-modssl/files/patch-aj) # Edit Makefile and add the following lines right before, # the line (--enable-module=define). Leave out the suexec part # if you don't want it installed. --add-module=${FILESDIR}/mod_frontpage.c \ --enable-module=frontpage \ --enable-suexec \ --suexec-docroot=/usr/local/www/ \ --suexec-caller=www \ --suexec-uidmin=1000 \ --suexec-gidmin=1000 \ --suexec-logfile=/var/log/httpd-suexec.log \ --suexec-userdir=www \ --suexec-safepath=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin \ cp /usr/ports/www/apache13-fp/files/mod_frontpage.c \ /usr/ports/www/apache13-modssl/files/mod_frontpage.c make && make install && make clean cd /usr/ports/www/php_4 make && make install && make clean # Edit httpd.conf, adding the following lines, AddType application/x-httpd-php .php .php3 AddType application/x-httpd-php-source .phps .php3s # Change "AllowOverride None" to, "AllowOverride All" # Make any other appropriate changes. /usr/local/etc/rc.d/apache.sh start Now you can install the frontpage extensions by running, /usr/local/frontpage/version5.0/bin/owsadm.exe All the configuration options for "owsadm.exe" can be found on the Microsoft website, but I usually add extensions with something like this, /usr/local/frontpage/version5.0/bin/owsadm.exe -o install \ -u username -xu username -xg usergroup -pw password -p 80 \ -m domainname.com -t apache-fp -s /usr/local/etc/apache/httpd.conf \ -a administrators One side note and correction. If you plan on using fp_install.sh to extract the tarball and install/upgrade extensions after apache is installed, the script will ask to overwrite your existing httpd. Answer yes to this question. The script will copy your newly compiled httpd to /usr/local/sbin/httpd.orig. Just copy httpd.orig over the httpd that was installed by the script. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message