Kieran Barnes - Independent PHP, WordPress, Woocommerce & CakePHP Programmer

NTLM Authentication on Ubuntu and Apache2 Revisited

It’s been a while since I’ve had to build an NTLM integrated Apache2 server. So I thought I’d take help from Ubuntu’s packages and install LAMP from there like most people seem to be doing these days. Once all that is up and running, you will need to download mod_ntlm_winbind. Its an ancient package I complied years ago from the samba source tree, good news is it still works.

Getting mytop to work on CentOS/Redhat

Screw all these AJAXified, buzz-wordified MySQL monitors. I’m old school. I use the fantastic mytop tool Jeremy Zawodny created 9 years ago. Unfortunately it won’t run on CentOS. I got the error, ‘Error in option spec: “long|!”‘

Firefox and NTLM Authentication

Firefox dislikes NTLM authentication really. Sometimes it hates it completely. Specifically when you make AJAX requests from an NTLM authenticated server. Fortunately, with a bit of counselling there is a resolution on hand.

.htaccess redirect based on requested domain

Imagine you have a selection of domain names that point to the same site, are some of those domains specific to certain areas of your site? Here’s how I redirect a domain name to a specific area on a site RewriteEngine On RewriteCond %{HTTP_HOST} ^(www\.)?cubecartexperts\.co.uk Rewriterule ^(.*)$ http://www.i9000networks.com/landing-page/cubecart-experts/ [L] You’ll also need the domain set in your virtualhost config like this ServerName www.i9000networks.com ServerAlias www.cubecartexperts.co.uk ServerAlias cubecartexperts.co.uk It is a much more helpful.. Read More

WordPress Secret Key & Cookie Strength

There is a little known feature in WordPress 2.5 called “Secret Key“. If you’re upgrading from a previous version you probably won’t even know this feature exists as it only appears in clean installs where you have a brand new wp-config.php.