From owner-freebsd-ports Sun Nov 26 23:44:10 2000 Delivered-To: freebsd-ports@freebsd.org Received: from mail.psknet.com (orion.psknet.com [63.171.251.4]) by hub.freebsd.org (Postfix) with SMTP id 4298C37B479 for ; Sun, 26 Nov 2000 23:44:02 -0800 (PST) Received: (qmail 47657 invoked from network); 27 Nov 2000 07:43:59 -0000 Received: from abyss.dashit.net (HELO ABYSS) (209.100.22.250) by orion.psknet.com with SMTP; 27 Nov 2000 07:43:59 -0000 From: "Troy Settle" To: "Jim Weeks" , Cc: Subject: RE: apache-ssl-php4-fp solution Date: Mon, 27 Nov 2000 02:43:59 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal X-AntiVirus: scanned for viruses by Pulaski Networks (http://www.psknet.com) using AMaViS (http://www.amavis.org) Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Jim, Excellent job on the homework. I'm going to be rebuilding a box this week, and greatly appreciate your pointers. I was going to see what the heck I needed to do to accomplish this. Perhaps you could contact the apache13-fp maintainer and help him/her turn it into apache13-fp-modssl, which would be a very nice thing to have, since those 2 mods require patches to the source. Honestly though, I don't understand why the FP patches haven't been integrated into the apache code-base. An option to configure could easily enable/disable the feature (or bug for some :). My $.02, -- Troy Settle Pulaski Networks 540.994.4254 It's always a long day, 86400 doesn't fit into a short. ** -----Original Message----- ** From: owner-freebsd-isp@FreeBSD.ORG ** [mailto:owner-freebsd-isp@FreeBSD.ORG]On Behalf Of Jim Weeks ** Sent: Sunday, November 26, 2000 2:45 PM ** To: freebsd-isp@freebsd.org ** Cc: freebsd-ports@freebsd.org ** Subject: apache-ssl-php4-fp solution ** ** ** I will preface this by saying I am no authority in this field, but I ** have seen a few posts on this subject and hope this may help someone ** else in a simular situation. ** ** To the matter at hand. I had several production servers running ** 3.X-stable. All of these were running apache-ssl-php3-frontpage with php3 ** and frontpage compiled into the binary and ssl as DSO. This presented a ** problem in upgrading to php4. You may have noticed that there are a lot ** of new DSO modules in /usr/ports/www. The problem is that some, such as ** mod_ssl, are only available from RELENG_4, and seem to be 4.X dependent. ** ** After building Apache a *lot* of different ways, including from ** source, I have come to this conclusion. This task can be done ** easily with ** the ports collection, even for the 3.X platform. ** ** First, you must download and install the FreeBSD version of frontpage ** extensions into /usr/local. They may be found at, ** http://msdn.microsoft.com/workshop/languages/fp/2000/unixfpse.asp ** ** Now, we can easily adapt /usr/ports/www/apache13-modssl. This ** can be done ** by copying two files already present on the machine and making one entry ** in the Makefile. Php4 "/usr/ports/www/mod_php4" can be added ** after apache ** has been compiled. ** ** The first file: ** ** Copy the apache frontpage patch "fp-patch-apache_1.3.12" from ** /usr/local/frontpage/version4.0/apache-fp/ to ** /usr/ports/www/apache13-modssl/files/ and rename it patch-aj ** ** The second file: ** ** $ cd /usr/ports/www/apache13-modssl ** $ cp ../apache13-fp/files/mod_frontpage.c \ ** > files/mod_frontpage.c ** ** Edit the Makefile: ** ** Place "--add-module=mod_frontpage.c" near the bottom of the ** CONFIGURE_ARGS ** section. ** ** Mine looks like this. ** ** CONFIGURE_ARGS= --prefix=${PREFIX} \ ** --server-gid=nogroup \ ** --with-perl=${PERL} \ ** --with-layout=${FILESDIR}/FreeBSD.layout:FreeBSD \ ** --suexec-docroot=${PREFIX}/www/data \ ** --without-confadjust \ ** --enable-module=most \ ** --enable-module=auth_db \ ** --enable-module=mmap_static \ ** --disable-module=auth_dbm \ ** --enable-shared=max \ ** --enable-module=ssl \ ** --add-module=mod_frontpage.c \ ** --enable-module=define ** ** Finish up: ** ** $ make ** $ make certificate ** $ make install ** $ make clean ** ** $ cd ../mod_php4 ** $ make ** $ make install ** $ make clean ** ** Appropriate entries for enabling mod_php4 will automatically be added to ** httpd.conf when the module is built. You may need to add frontpage ** yourself. Just add "AddModule mod_frontpage.c" to the AddModule list. ** ** Good luck, ** ** -- ** Jim Weeks ** ** ** ** ** To Unsubscribe: send mail to majordomo@FreeBSD.org ** with "unsubscribe freebsd-isp" in the body of the message ** ** To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message