From owner-freebsd-ports Sun Aug 27 9:20: 6 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 1D8A837B42C for ; Sun, 27 Aug 2000 09:20:04 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id JAA35261; Sun, 27 Aug 2000 09:20:04 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Sun, 27 Aug 2000 09:20:04 -0700 (PDT) Message-Id: <200008271620.JAA35261@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: "Scot W. Hetzel" Subject: Re: ports/20876: mod_php4 (and maybe mod_php3) misplace the directive in apache.conf Reply-To: "Scot W. Hetzel" Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR ports/20876; it has been noted by GNATS. From: "Scot W. Hetzel" To: , Cc: Subject: Re: ports/20876: mod_php4 (and maybe mod_php3) misplace the directive in apache.conf Date: Sun, 27 Aug 2000 11:15:39 -0500 From: > >Description: > When mod_php4 is install with apache+mod_ssl-1.3.12+2.6.6, > the mod_php4 port appends the appropriate directive to > /usr/local/etc/apache/apache.conf. Unfortunately, it doesn't > put it in an appropriate place. 'AddModule mod-php4.c' is > added within the 'IfDefine SSL' statements. This being the > case, php would only be available when apache is started with > 'startssl'. 'AddModule mod_php4.c' should appear outside the > 'IfDefine's. > Unfortunately, that is a problem with APXS installed from the apache* ports. It looks for the last AddModule/LoadModule directives when it parses the [apache|httpd].conf files. The only way to fix this problem is to add commented out module directives in the appropriate order to the [apache|httpd].conf-dist files: #LoadModule mod_php3.so #LoadModule mod_php4.so #LoadModule mod_frontpage.so : : #AddModule mod_php3.c #AddModule mod_php4.c #AddModule mod_frontpage.c : : : This way, APXS will first look for *Module lines beginning with '#' and uncomment the line. When the module is remove APXS puts the '#' back. Scot To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message