Installing a WIMP server just got heaps easier thanks to the Microsoft Web Platform Installer.

Go grab it, run it on your Server 2012R2 instance and install the PHP 5.5.3 and MySQL components.

It will setup your IIS install with PHP FastCGI module and WinCache extensions and save you heaps of time and fuss.

The only catch I found was that the FastCGI module needs the Visual C++ Runtimes, which the WebPI installer doesn’t fetch? Anyway, grab that as well and you should be good to go. :)

Here’s a snippet of PHP Code I’ve been using to interrogate our switches SNMP data for graphing.

/* HP MSM Controller */
$ip = '';
$oid = 'iso.'; //ap's

/* HP Procurve Switch */
//$ip = '';
//$oid = 'iso.'; //ports
//$oid = 'iso.'; //inoct
//$oid = 'iso.'; //outoct

/* SNMP Tree Walk */
$res = snmp2_real_walk($ip,'public',$oid);
while (list($key, $data) = each($res)){
 list($attr,$int) = explode('.',substr($key,strlen($oid)+1));
 $group[$int][$attr] = $data;

/* SNMP Value fetch example (Switch Port Traffic In/Out) */
$desc = snmp2_get($ip,"public","iso.".$port,300);
$inoct = snmp2_get($ip,"public","iso.".$port,300);
$outoct = snmp2_get($ip,"public","iso.".$port,300);

 print_r($res); // Raw result
// print_r($group); // Parsed Array


If you need to add a 3rd Party SSL certificate to Windows for whatever reason (Exchange, IIS, TLS, SSL, SFTP, NAP, RAS, etc.) here’s how you can go about getting one ready to use.

Of course, First you’ll need to go buy a valid certificate from your friendly neighbourhood provider.

I can recommend RapidSSL, they’re backed by GeoTrust, recognised by 99.9% of devices and are cheap as chips. Especially for wildcard domains.

Anyway, once you’ve got confirmation you can proceed with generating a Certificate Signing Request (CSR).

Read the rest of this entry »

Brew In A Bag

Someone asked me how I brew my beer. The answer being; I make my own malt extracts by mashing grains – and keep everything simple by doing it all in one pot (mash tun) using the ‘Brew in a Bag’ method.

I’m by no means an expert at this but this method makes great beer and it’s no hassle once you have the routine down.


1x 20L or larger Pot (preferably with temp gauge fitted)
1x Large Nylon bag
1x Cooling coil
1x 4L Bottle (or equivalent water containers)

Read the rest of this entry »

The first thing I say to anyone trying to better their understanding of photography is to first stop and consider what it is they are actually doing.

Photography = from the greek photos (light) and graphos (writing or painting).

Photography is the process of painting with light.

Whether you have a lot of light, or barely any at all; will dictate entirely the kinds of images you can produce. Understanding the light in your environment and how light works inside the camera is paramount to being able to select the right mode/settings and achieve the kind of shot you want.

Read the rest of this entry »

While CentOS’ default repository comes with heaps of useful services, there is more value to be added by adding the Extra Packages for Enterprise Linux repository as well.

Adding the repository is easy…

yum -y install

A list of the EPEL (x86_64) packages can be found here, but some of the more popular ones you might be interested in, include…

  • phpMyAdmin
  • shellinabox
  • nginx
  • zabbix
  • ettercap
  • apcupsd

Installing phpMyAdmin

Install the package

yum -y phpMyAdmin

Edit the phpMyAdmin configuration file to allow access to the interface.

vi /etc/httpd/conf.d/phpMyAdmin.conf

Find the existing Require and Allow criteria and substitute your own management IP Address. Conversely if you want to allow access from anywhere (probably not a good idea, but hey – it’s your server) you can substitute these rules instead.

Require all granted
Allow from all

..finally don’t forget to restart the webserver.

service httpd restart


With malware systems scanning for server vulnerabilities all the time (like Windigo), it’s important to secure your server wherever possible. Especially at the shell level and double if you have SSH facing the internet.

Check the security guide at CentOS’s website…

More How-To’s can be found here…

Following up on my CentOS 6.5 WebServer tutorial, here’s how you can get a Multisite WordPress installation up and running muay pronto!

Read the rest of this entry »

Here’s a brief (?) rundown for setting up a CentOS 6.5 web server from scratch, using Linux Apache, MySQL and PHP (a.k.a LAMP).

Firstly, fetch the latest CentOS-6.5-x86_64-bin-DVD1.iso from one of their mirrors.

Boot the ISO and follow the prompts to install CentOS. Most defaults should get you going. You can configure the network settings and operating system features (packages) from within the installer, but for the most part the general defaults should get you to where you need to be. This tutorial will cover off everything you need, even for a “Basic Server” install.

Read the rest of this entry »

Screen capture an OS X machine and send the images to a web server.

Using the inbuilt screencapture command, quietly capture the screen and cursor (up to three displays) and save them in a temporary folder, named with the current date and time.

Note the postfixes (e.g. _s1) on the filenames to indicate different monitors.

screencapture -x -C -tjpg /var/tmp/sc_$(date +%Y%m%d-%H%M%S)_s1.jpg /var/tmp/sc_$(date +%Y%m%d-%H%M%S)_s2.jpg /var/tmp/sc_$(date +%Y%m%d-%H%M%S)_s3.jpg

For storage and archive purposes; move them into a zip file named for the current date.

zip -m /var/tmp/sc_$(date +%Y%m%d).zip /var/tmp/sc_*.jpg

Alternatively, we can send the file to a web server. Either by PUT or POST methods, the latter being potentially more secure and then parsable by some form of cgi script.

PUT Method

curl --upload-file sc_$(date +%Y%m%d).zip http://your.web.server/upload/sc_$(date +%Y%m%d).zip

POST Method (var ‘upload’)

curl -F upload=@sc_$(date +%Y%m%d).zip http://your.web.server/upload/sc_$(date +%Y%m%d).zip

doge screens, much sneaky, so capture, wow!


Get every new post delivered to your Inbox.