Error:no version information available (required by php)

I was facing following error when I was trying to view the php version on the server:

root@server [~]# php -v

[wpfmb type=’error’ theme=2]php: /usr/lib/libmysqlclient.so.15: version`libmysqlclient_15′ not found (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)
php: /opt/xml2/lib/libxml2.so.2: no version information available (required by php)[/wpfmb]
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.