From owner-freebsd-questions@FreeBSD.ORG Tue Feb 22 08:33:06 2005 Return-Path: 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 79DEE16A4CE for ; Tue, 22 Feb 2005 08:33:06 +0000 (GMT) Received: from wenn.com (cube1.wenn.com [195.157.139.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C38543D2F for ; Tue, 22 Feb 2005 08:33:05 +0000 (GMT) (envelope-from gary@hayers.org) Received: from postmaster.wenn.com ([172.16.0.253]) by cube1-eth1.wenn.com (8.10.2/8.10.2) with ESMTP id j1M8X4P23020; Tue, 22 Feb 2005 08:33:04 GMT Received: from [10.0.0.2] (fw [195.157.139.125]) by postmaster.wenn.com (8.12.8/8.12.8) with ESMTP id j1M8X30K015715; Tue, 22 Feb 2005 08:33:03 GMT Message-ID: <421AEE2A.1010800@hayers.org> Date: Tue, 22 Feb 2005 08:32:42 +0000 From: Gary Hayers User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Gareth Bailey References: <48a5f32a050222002754c8da87@mail.gmail.com> In-Reply-To: <48a5f32a050222002754c8da87@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-milter (http://amavis.org/) cc: freebsd-questions@freebsd.org Subject: Re: PHP installation woes X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2005 08:33:06 -0000 Gareth Bailey wrote: > Hi there, > > Could someone please give the low down on installing and configuring > php on freebsd? I am running the 4.10 release as our development > server with apache 1.3, php 4 and mysql 4. > > Up until now, the only way i have got php to work is to extract the > php tarball, configure (with the switches below), make and make > install from source. > > ./configure '--with-apxs=/usr/local/sbin/apxs' '--enable-versioning' > '--with-gd' '--with-mysql' '--with-jpeg-dir=/usr/local/bin' > '--with-zlib' '--with-mysql=/usr/local' '--prefix=/usr/local' > '--with-mime-magic=/usr/share/misc/magic.mime' '--enable-sockets' > '--enable-memory-limit' '--disable-all' > > The problem with this method is that it doesn't seem to install module > libaries, and i'm just not convinced that i am going about it > correctly. > > I also at some stage tried installing from ports (/usr/ports/lang/php4) with: > > # make 'insert switches from above here' build > # make 'insert switches from above here' install > > None of the switches were acknowledged, as phpinfo() showed no support > for the switches i required. > > I would really appreciate it if someone could recommend a way to > install php with control over modules that are supported. # cd /usr/ports/lang/php4 && make rmconfig # make # make install This is the way I did it with no problems encountered. HTH Regards, Gary Hayers