php4 to php5 upgrade

Kevin Kinsey kdk at
Sat Oct 13 18:50:38 PDT 2007

Grant Peel wrote:
> Hi all,
> Does anyone know where there might be some clear documentation the 
> discribes the complete removal of php4 and its extentions, then how to 
> build php5 extentions.
I can't say for sure that there's any such.  Has a web search
turned up nothing, then?

Surely it's not much harder than:

$ cd /usr/ports/lang/php4-extensions && make deinstall clean && make distclean
$ cd /usr/ports/lang/php4 && make deinstall clean && make distclean

and a little cleaning up in /usr/local/lib and /usr/local/etc.

> I want to use ports if possible.

Definitely possible.
> P.S. one thing I have always tripped over is weather to build php first, 
> then, run the meta port for extensions or vice versa ... ?

The extensions meta-port will pull PHP in as a dependency if you
haven't already installed it*, so the answer is not vice-versa, per
se.   Do lang/php5 first.

Kevin Kinsey

*Or it will crap out.  Can't remember OTTOMH.
Start every day off with a smile and get it over with.
		-- W.C. Fields

More information about the freebsd-questions mailing list