While compiling PHP on a Litespeed web server this evening I ran into multiple issues one of which related to the libxml2 package on the server. This can be confusing because on the server libxml2 was installed. Below is more information regarding the error located in the Litespeed Admin detailed log report which can be easily seen while compiling PHP from the web interface as well as information on what needs to be installed to resolve the error.
If you receive the below error on a CentOS Linux server while configuring, compiling, or installing an application then you most likely need to install the development package for libxml2.
Error:configure: error: cannot find xml2-config
The package that includes xml2-config is libxml2-devel which can be installed via yum using the syntax below.