Dumping PHP headers

Posted on Mon 07 March 2016 in SysAdmin • Tagged with php, debugging

I read this somewhere and want to keep it around.

Sometimes I need to debug HTTPS/header issues in a load balanced environment.

Here's how to dump all the headers in PHP:

/* {DocumentRoot}/headers.php
Show all values defined on $_SERVER */
<?php
     while (list($var,$value) = each ($_SERVER)) {
            echo "$var …

Continue reading

Multiple Ansible versions on Mac

Posted on Thu 03 March 2016 in SysAdmin • Tagged with ansible, debugging

I ran into some regression bugs with the latest version of Ansible and wanted to test to confirm a few things before posting bug reports. As I run MacOS at work, Ansible is installed from Brew. If you're lucky, you might still have your old versions around:

$ ls /usr/local …

Continue reading