[nycbug-talk] BSD 6.1 - PHP 5.2.0 portinstall

Max Thayer mthayer at hwi.buffalo.edu
Fri Dec 22 14:59:48 EST 2006

> We run BSD 6.1 in my shop, Apache 2.2 and I am currently attempting to
> upgrade from PHP 5.1.6 to 5.2...
> PHP 5.2 is wrapping up several extensions into its core, namely the
> and PDO extensions....I have ran the portinstall for php 5.2.0 once
> already only to find these two extensions aren't installing by default
> as php.net indicates...so...I'm on the hunt for any assistance in what
> may be doing wrong with my portinstall/bsd or php upgrade...I'm
> up the organizations that I find most relevant for any help I can
> Is there an argument(s) in the "make config" I should be adding?
> Is there an argument(s) in the "make install" I should be adding?
> When I execute "portinstall /ports/lang/php5" is there an argument(s)
> should be adding?

> Look at the port lang/php5-extensions.

> PHP in the ports system has seperated every extension into it's own 
> port.  The extensions that are supposed to be installed by default
> (by default) with the php5-extensions port.  This port is a meta port 
> for each individual extension.  It's `make configure`able to include
> exclude all extensions.  It's default config is to install the 
> extensions that come by default with PHP.

> It makes for an extremely flexible, yet elegant setup for php.

> Essentially you just need to execute
> portinstall lang/php5 lang/php5-extensions
> and if you use any of the PEAR libraries add "devel/pear"

> It's really cool.

> --lonnie

I ran the php5-extensions and it reverted my php5 installation back to
I ended up just going back through and reinstalling each port
individually... (namely PDO and JSON) 

More information about the talk mailing list