Technology Errors

Invalid command ‘FastCGIExternalServer’, perhaps misspelled or defined by a module not included in the server configuration

I got the error below when attempting to configure a Django project to be served by FastCGI via Apache for the first time. I have configured FastCGI but it had been awhile and the server I was working with had ISPConfig installed on it and what I thought to be mod_fastcgi. Below I explain the error, my mix up, and how to resolve on a Linux server.

Technology Insights

Daemon In Linux To Open A TCP Port That Listens On Every IP And Logs TCP Connections

Yesterday a colleague at my company was doing some testing with a potential partner and they needed to open a TCP port on one of our development servers so an application could bind to that port. At first I wasn’t sure how I should do this since the port didn’t need to do anything but listen for incoming connections and the remote application would simply connect to that port. To get something up immediately for them I simply had our web server listen on the requested port which worked however I did not want the web server running on this port for long so I needed to come up with another solution to simply open the port, listen for connections, and possibly log those connections so we could troubleshoot if necessary. I ended up finding an application called tcpsnoop which I explain how to compile and use below.

Technology Insights

Compile Litespeed PHP To Include GD FreeType Support, GD FreeType Linkage, and GD JPG Support

I was recently installing KBPublisher on a web server running Litespeed web server with both PHP and Ruby running on it. The initial check for KB Publisher complained about GD FreeType Support, GD FreeType Linkage, and GD JPG Support not being compiled into PHP. Its fairly easy to resolve this but may not be obvious to all so use the tips and directions below.

Installed Packages:

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.