Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Feb 2005 08:32:42 +0000
From:      Gary Hayers <gary@hayers.org>
To:        Gareth Bailey <gjbailey@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: PHP installation woes
Message-ID:  <421AEE2A.1010800@hayers.org>
In-Reply-To: <48a5f32a050222002754c8da87@mail.gmail.com>
References:  <48a5f32a050222002754c8da87@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?421AEE2A.1010800>