Twitter Timeline Feed with PHP & JSON

April 14th, 2013 No comments »

I have had my share of users needing help fixing broken implementations with twitter on their own website, such as pulling from an incorrect url, or using the incorrect twitter API format. Most of the time they are pulling the XML response, but twitter offers a much nicer format that works rather well with PHP; JSON.

Allowing secure WordPress Updates with SSH2

April 2nd, 2013 No comments »

So you want to be able to do automatic updates and plugin/theme installations, but you don’t want to leave your files wide open, or give your unprivileged PHP process too much access around the clock. This guide shows you how to set up wp-config.php with SSH specifically for php use only.

Updated Nginx rules for New W3TC

April 2nd, 2013 No comments »

If you have previously used the W3TC disk-enhanced rules for nginx, you may find that the newest version of W3 Total Cache no longer works with these rules. This new set of rules includes support for W3TC’s own gzipped file naming.

GeoIPLookup: Geolocation from the CLI

November 29th, 2012 No comments »

If you have your own server or use a Linux/BSD desktop at home there’s little reason why you can’t just quickly do a GeoIP lookup from the command line. Here’s how to install it on Debian, Ubuntu, CentOS and FreeBSD along with a trick or two.

Selective Elevation of PHP in Nginx+WordPress

November 20th, 2012 No comments »

Generally speaking You do not want to give Nginx and/or PHP-FPM too much access to your files, but you might not want to make everything writable to the general www group. However at the same time you may feel a bit lazy and want to be able to selectively allow PHP to perform certain task such as updating wordpress or it’s plugins automatically.

FreeBSD Jail with Single IP

November 11th, 2012 No comments »

You have a FreeBSD VPS with only a single IP, but you wish to utilize the security/isolation of jails such as thru ezjail-admin, what do you do? Utilizing OpenBSD’s PF can allow you to run a FreeBSD Jail and serve your web and ssh traffic directly to the jail.

FreeBSD Update Annoyances [pkg-config-0.25_1]

August 11th, 2012 No comments »

So today I got around to running portmaster again to update to the latest packages, and came across an all too familiar package upgrade error with pkg-config-0.25_1. You may have seen the above before with other updates in the past, this is the quick write up on how to correct this and any future errors of similar nature.

Securing Nginx and PHP

December 16th, 2011 No comments »

Getting Nginx and PHP-FPM set up on a system is not all that difficult, but it can take a bit of practice to keep such a system secure. This post recaps on some of the common ways to keep your installation secure as well as some minor pointers regarding wordpress.

Nginx Flood Protection with Limit_req

April 9th, 2011 1 comment »

I’ll show you a very simple demonstration of Nginx’s Limit Request module and how it may be helpful to you in keeping your website up if you are hit by excessive connections or HTTP based denial-of-service attacks.

Nginx Configuration Examples

March 31st, 2011 No comments »

Here are a number of Nginx configurations for common scenarios that should help make things easier to get started with. This page will grow as needed. Includes some sample configurations for Wordpress, Wordpress + W3TC, Drupal and NibbleBlog.