possibly the nerdiest thing i've ever done

01.19.05 - 12:31am
mood: Nerdy
music playing: Cold Case Files
Ever since I upgraded Apache from 1.3.29 to 1.3.31, the bandwidth throttling module has failed to load properly.

This was the error:
[warn] Loaded DSO libexec/mod_throttle.so uses plain Apache 1.3 API, this module might crash under EAPI! (please recompile it with -DEAPI)
I never cared enough to actually do anything about it, so I just disabled the module and left it as is since August 2004.

Today though, I was enlightened as to a possible influx of traffic to my web server. So for shits and giggles, I decided to work on mod_throttle and see if I can finally figure out WTF that error message was all about.

**insert nerdiness**

You can't get source files of mod_throttle so you have to work with the Makefile and any available options.

I'm vi'ing the hell out of the Makefile and am none too familiar with its structure, but I needed to add a Compiler Flag to get it to compile with '-DEAPI'.

**insert severe nerdiness**

I finally figure out what the hell its trying to do, but it keeps failing when I try to "make install".

**insert newest level of nerdiness**

I'm like, "fuck this, I'm gonna do this shit manually"
So I comment out the section in the Makefile that's being bitchy, then execute:
/apache/bin/apxs -c -Wc,-DEAPI mod_throttle.c

....and the fucking thing actually worked!!

All that was left was to do the "make install" to complete the installation and restart Apache.

It blew my mind, but IT WORKED!!!
The scary part... though unfamiliar with the code, I basically knew what I was doing.
A few months ago, I'd would NEVER have figured this shit out.

**insert never getting laid**