/usr/bin/php: /opt/xml2/lib/libxml2.so.2: no version information available

tiff2342

Well-Known Member
Apr 20, 2012
140
0
66
cPanel Access Level
Root Administrator
/usr/bin/php: /opt/xml2/lib/libxml2.so.2: no version information available (required by /opt/xslt/lib/libxslt.so.1)

what does that mean? bad compile?
 

STS Admin

Well-Known Member
Jul 8, 2012
46
0
56
India
cPanel Access Level
Root Administrator
Re: /usr/bin/php: /opt/xml2/lib/libxml2.so.2: no version information availa

Yes, libxml2 library seems corrupted. Remove/Move the /opt/xml2 and run easy apache again. It should fix it.
Code:
mv /opt/xml2 /opt/xml2-backup
/scripts/easyapache
 

tiff2342

Well-Known Member
Apr 20, 2012
140
0
66
cPanel Access Level
Root Administrator
Re: /usr/bin/php: /opt/xml2/lib/libxml2.so.2: no version information availa

how does it get corrupted? do i have to do a recompile?
 

STS Admin

Well-Known Member
Jul 8, 2012
46
0
56
India
cPanel Access Level
Root Administrator
Re: /usr/bin/php: /opt/xml2/lib/libxml2.so.2: no version information availa

I am not sure weather it's corrupted or not in your case. But I had similar issue and above solution worked perfectly fine for me.

Yes, recompilation is necessary as you have now removed the library files easyapache will place new files. I forgot to mention I compiled apache force fully.
Code:
/scripts/easyapache  --force
 

rlshosting

Well-Known Member
Apr 23, 2009
170
1
68
United States
cPanel Access Level
Root Administrator
Re: /usr/bin/php: /opt/xml2/lib/libxml2.so.2: no version information availa

This error keeps appearing no matter how many times I update easy apache and force an update. The cpanel team fixed some errors but it keeps happening over again even after I fix it. I don't want to keep talking to the cpanel team all the time and I am getting rather tired of it.
 
Last edited:

cPanelKenneth

cPanel Development
Staff member
Apr 7, 2006
4,607
80
458
cPanel Access Level
Root Administrator
Re: /usr/bin/php: /opt/xml2/lib/libxml2.so.2: no version information availa

We are working on a fix for this, to be released with the next update of EasyApache.

If I understand the problem correctly the problem stems from changing your PHP version. If you build PHP 5.3, a newer version of libxml is built and installed to /opt/xml2. If you subsequently downgrade PHP to 5.2 part of the XML tool chain is rebuilt, but not libxml. The version of libxml built for PHP 5.3 is not compatible with what PHP 5.2 requires.