Technology Errors

LiteSpeed: [STDERR] /usr/lib/ruby/site_ruby/1.8/ rubygems/custom_require.rb:31:in `gem_original_require’: no such file to load — lsapi (MissingSourceFile)

After restarting LiteSpeed on a server used to develop various Ruby applications there was an error in the LSWS logs. It should be pointed out that the below error was received after straightening out a Ruby installation problem that the server had. The issue was two versions of Ruby were installed with one being installed via source and the other being installed via the Yum Package Manager on this CentOS server. Once the Ruby installation issue was resolved I thought that Rubygems and all of the proper gems had been installed though that was not the case as explained in the below resolution.

Technology Insights

Litespeed PHP Compile Error: Cannot find autoconf

Once I finally made it past the PHP build process the Litespeed Admin Console Detailed Log complained of not being able to find autoconf. This one is fairly obvious but wanted to note just in case someone is not familiar with the autoconf package. Again since this is a new server with a minimal install the autoconf package had not been installed. Below are details about the error from the Litespeed Detailed Log and how to install autoconf via yum.

Technology Errors

Litespeed PHP: configure: error: xml2-config Not Found. Please Check Your libxml2 Installation

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.

Technology Errors

checking for mysql_close in -lmysqlclient… no

I received the below error when attempting to compile PHP to use with Litespeed as an LSAPI module. The error was related to multiple versions of numerous MySQL RPM packages being installed.

PHP Compile Error:
checking for MySQL support… yes
checking for specified location of the MySQL UNIX socket… no
checking for MySQL UNIX socket location… /var/lib/mysql/mysql.sock
checking for mysql_close in -lmysqlclient… no
checking for mysql_errno in -lmysqlclient… no

The PHP configure script was getting confused because of two 32-bit MySQL RPM packages being installed. If you look below this is the MySQL packages yum was showing installed on the server.