From owner-freebsd-questions Fri Oct 25 9: 2:11 2002 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 5599637B401 for ; Fri, 25 Oct 2002 09:02:09 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC1C543E65 for ; Fri, 25 Oct 2002 09:02:07 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.6/8.12.6) with ESMTP id g9PG1vV8010147 for ; Fri, 25 Oct 2002 17:01:57 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.6/8.12.6/Submit) id g9PG1qMN010146 for freebsd-questions@FreeBSD.ORG; Fri, 25 Oct 2002 17:01:52 +0100 (BST) Date: Fri, 25 Oct 2002 17:01:52 +0100 From: Matthew Seaman To: freebsd-questions@FreeBSD.ORG Subject: Re: squirrel mail install-from-ports problem.... Message-ID: <20021025160152.GA9908@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , freebsd-questions@FreeBSD.ORG References: <20021025013013.98103.qmail@web20110.mail.yahoo.com> <1035558247.1654.16.camel@linux> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1035558247.1654.16.camel@linux> User-Agent: Mutt/1.5.1i X-Spam-Status: No, hits=-9.9 required=5.0 tests=IN_REP_TO,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT, USER_AGENT_MUTT version=2.41 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Oct 25, 2002 at 04:04:07PM +0100, Simon Dick wrote: > On Fri, 2002-10-25 at 02:30, Bsd Neophyte wrote: > > i'm getting the following error and it says that this should be reported > > to dirk@freebsd.org... > > > > but before i do that, i wanted some input to see if i could resolve this > > issue in a relatively simply way. > > > > is this an issue with how i installed apache... should i reinstall if with > > the "--with-apxs2" option? > > I'd suggest you install PHP4 individually first, eg: > cd /usr/ports/www/mod_php4 > make -DWITH_APACHE2 install clean > > Then install squirrelmail, it looks like you have Apache 2 installed and > PHP can't autodetect it so it needs that -D option set. Unfortunately, the Makefile for the squirrelmail port says: RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4 which means that if ${LOCALBASE}/libexec/apache/libphp4.so cannot be found at compile/install time, the squirrelmail port will try and install mod_php4 to fulfil the dependency. Since you've already installed mod_php4 with the -DWITH_APACHE2 flag, causing the loadable module to be installed as ${LOCALBASE}/libexec/apache2/libphp4.so, the system will try and reinstall mod_php4, which you've already discovered doesn't work. One solution is to patch the squirrelmail port Makefile: --- Makefile.orig Fri Sep 20 17:38:46 2002 +++ Makefile Fri Oct 25 16:49:45 2002 @@ -13,7 +13,11 @@ MAINTAINER= simond@irrelevant.org -RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4 +.if defined(WITH_APACHE2) +RUN_DEPENDS+= ${LOCALBASE}/libexec/apache2/libphp4.so:${PORTSDIR}/www/mod_php4 +.else +RUN_DEPENDS+= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4 +.endif USE_BZIP2= yes NO_BUILD= yes Then make -DWITH_APACHE2 The same problem will affect all ports that install PHP code. See for instance: o [2002/08/12] ports/41577 ports port security/acid won't see apache2+mod_php4 o [2002/09/21] ports/43225 nbm phpPgAdmin port doesn't work with Apache2 by default o [2002/09/21] ports/43227 ports squirrelmail port doesn't support Apache2 o [2002/10/05] ports/43706 nbm Make databases/phpmyadmin operate with apache2 Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message