Upgrading PHP

I’m getting ready to install PHP 5.2.0 here. Mostly I just want to try to make it link to a newer version of libxml. If it all goes pear-shaped, I’ll post a note on Cafe au Lait while I restore.

Update

OK. The upgrade went through without a hitch. Whew. Holler if you notice anything funky here. However, although I did upgrade to PHP 5.2, it’s still using libxml 2.06.16 instead of the newer version I installed in a different directory.

2 Responses to “Upgrading PHP”

  1. Sixten Otto Says:

    Are you perhaps missing the configure option to set the location for libxml? Looks like that’s --with-libxml-dir=path.

    The online docs for PHP are woefully incomplete when it comes to listing all of the configuration options. I’ve found I generally have to run configure with the argument to have it dump all of its arguments, and then go through the list to be sure there isn’t something I’m forgetting. And then write a little shell script to do run the tool, in case I need to tweak something and reconfigure again.

  2. Elliotte Rusty Harold Says:

    I did try that. However, PHP still finds the version 2.6.16. :-(

    Configure Command ‘./configure’ ‘–with-apxs2=/usr/httpd/bin/apxs’ ‘–with-mysql=/usr/local/mysql’ ‘–prefix=/opt/php5’ ‘–with-libxml-dir=/Library/Frameworks/libxml.framework’ ‘–with-xsl=/Library/Frameworks/libxslt.framework’

Leave a Reply