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!

4
  • Did you restart apache? Dec 17, 2012 at 4: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(). Dec 17, 2012 at 4: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, 2012 at 5: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 Dec 17, 2012 at 5:09

1 Answer 1

0

You will need to recompile PHP against the new libxml.

1
  • Yes... that was my findings yesterday. Thank you man! Dec 18, 2012 at 2:24

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .