How to configure PHP build?

Matthew Seaman m.seaman at infracaninophile.co.uk
Tue Jul 20 06:46:51 PDT 2004


On Tue, Jul 20, 2004 at 03:17:36PM +0200, Gabriel Ambuehl wrote:
> Hi,
> after the last PHP commits, I can't seem to be able to configure my
> PHP builds anymore. It keeps on telling me
> ===>  Found saved configuration for mod_php4-4.3.8_1,1
> and subsequently starts to build right away.
> 
> Is there any way to get it to behave like in the past, specifically
> asking me what libs it should compile in?
> 
> Any help would be greatly appreciated.

To change the configuration of any port that uses the OPTIONS
mechanism, simply do:

    # make config

in the port directory.

Note that with the new PHP setup, most of the configurable bits are
now in the lang/php4-extensions or land/php5-extensions ports -- not
that you need to install either one of those.  They're just meta-ports
where you can select a bunch of php extensions easily.  Since each
extension is a separate port now, you can just go round and install
all the one you want.

Nb. To get PHP to load the shared modules correctly, you'll need to
change the 'extension_dir setting in /usr/local/etc/php.ini.  I found
that setting it like this:

    extension_dir = "/usr/local/lib/php/20040412/"

did the trick.

	Cheers,

	Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.                       26 The Paddocks
                                                      Savill Way
PGP: http://www.infracaninophile.co.uk/pgpkey         Marlow
Tel: +44 1628 476614                                  Bucks., SL7 1TH UK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040720/fffc3ce2/attachment.bin


More information about the freebsd-questions mailing list