I was facing following error when I was trying to view the php version on the server:
root@server [~]# php -v
php: /opt/xml2/lib/libxml2.so.2: no version information available (required by php)
php: /opt/xml2/lib/libxml2.so.2: no version information available (required by php)
php: /opt/xml2/lib/libxml2.so.2: no version information available (required by php)
php: /opt/xml2/lib/libxml2.so.2: no version information available (required by php)
php: /opt/xml2/lib/libxml2.so.2: no version information available (required by php)
We may get this error even if the Apache on the cPanel server is recompiled. To resolve this error just follow the simple steps:
mv /opt/xml2 /opt/xml2.bak
Then re execute EasyApache from WHM > EasyApache (Apache Update) or via shell using the command:
/scripts/easyapache –force
This should now resolve the problem.