Apache Tomcat Native library Not Found Error on Ubuntu

Sometimes you might get the following error message in your logs for your Tomcat instance under Ubuntu. The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found   To fix this issue, simply run the following command to install the appropriate library. apt-get install libtcnative-1   The error … Read more

Apache Error Log mod_fcgid: can’t apply process slot for /usr/local/cpanel/cgi-sys/php5 (cPanel/CloudLinux)

I was getting the following error message in apaches error log on a cPanel machine with CloudLinux mod_fcgid: can’t apply process slot for /usr/local/cpanel/cgi-sys/php5 Looking into the issue, it seemed that a couple of sites were reaching the max EP (Entry PRocess). If you read the ClouldLinux documentation it states the following. http://docs.cloudlinux.com/index.html?limits.html Entry processes … Read more

WordPress and Protecting Directories with .htaccess

You’ll find sometime that when you deploy WordPress in order for permalinks to work correctly you need a proper .htaccess file. This .htaccess also affects anything else you place within your web root when WordPress lives. For instance if you need to password protect a directory within the your webroot where WordPress lives. You’ll find … Read more

Pasword Protected Sub Directories Missing on Index Listing with Apache2

If you’ve setup a folder that allows listing of the directory index, you will be presented with that directories contents. Folders and files will be show and you can navigate through each folder. However, if you’ve password protected a sub directory, it will not show up in the listing. This is because its considered to … Read more

Apache dDoS “killapache” Sends Malformed GET Requests

There is a bug in certain versions of Apache that is susceptible to a dDoS using malformed GET requests. You can find more information about “killapache” at the following site. http://www.pentestit.com/2011/08/25/killapache-ddos-tool-freezes-apache-web-server/   There is no patch, however their is a work around for this bug which is provided below. In Ubuntu or Debian create a new file … Read more

WordPress Permalink Sub-Directory 404 Error Weirdness

I didn’t really know what to put for the title of this post, but hopefully the content makes more sense and gets indexed properly and found by people looking for this specific information. The problem is when you install WordPress and setup Permalinks which uses a .htaccess file for Apache. The .htaccess make cause problems … Read more

Adventures in cPanel and mod_fcgid/Apache mpm_worker

I’ve started using cPanel on my main box, as well as some VPS accounts for a couple of customers. I never really enjoyed using a “Control Panel”, but ever since moving to cPanel I’ve actually enjoyed the experience. Previous to cPanel I was mostly using scripts I’ve coded in perl, which worked well. But there … Read more

Looking at Cassandra (DB) and Hiphop (Compiling PHP to Native C)

I was all over the internet one day and ran into a project called Cassandra. Which was opensourced by Facebook and is being developed by Apache committers as well as other major companies. http://cassandra.apache.org/ I also dug up another Facebook related project called Hiphop, which compiles PHP into native C to boost performance. Also used … Read more