0

our servers need to update the libxml2 version from 2.2.26 to 2.9 (latest version). It is no problem that we have been installed the libxml2-2.9 version on our servers. but the problem is how can we config the libs path of libxml2 path in php? Since it still show the old version on phpinfo().

What we have do is 1. Install libxml2 2.7.X on CentOS 5.X

Using yum to install local files, and typed yum info libxml2, it shows 2.9 was installed.

Thanks!

Cauliturtle
  • 103
  • 2
  • Did you restart apache? – Michael Hampton Dec 17 '12 at 04:21
  • yes, one of the server is using nginx, I have tried restart the apache, nginx, php-fpm or even reboot the server. It still shows old version in phpinfo(). – Cauliturtle Dec 17 '12 at 04:24
  • Where does the PATH environment variable point to for startup in your webserver? Remember your path may not be the same as system startup. – mdpc Dec 17 '12 at 05:02
  • @mdpc, I execute `echo $PATH`, it shows `/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/aws/bin:/root/bin`. And my libxml2 path is in `/usr/lib64/libxml2.so.2 libxml2.so.2.9.0` – Cauliturtle Dec 17 '12 at 05:09

1 Answers1

0

You will need to recompile PHP against the new libxml.

Jerry
  • 126
  • 3