The below is pretty much directly from the online manuals for PHPUnit and WordPress but copied here for my personal usage. Install PHPUnit Download: wget https://phar.phpunit.de/phpunit.phar Make executable: chmod +x phpunit.phar Move globally: sudo mv phpunit.phar /usr/local/bin/phpunit Test phpunit –version Optionally, if you want to verify the signature, between steps…
Category: PHP
HHVM White Screen of Death
I’m bringing up a new server and decided to give HHVM a shot for PHP processing. Having watched WordPress’s trac for several years now I’ve seen a couple of small and some very large things that needed to be changed in order for WordPress to run without issue. But now it seems to be…
Ubuntu 14.04 + Nginx 1.7.1 + HHVM 3.2
This is very similar to my previous post except I’m starting from a raw Ubuntu 14.04 server install. Download and install Ubuntu 14.04 Server and don’t install any additional packages (you can and they’ll probably work but I didn’t and this tutorial assumes you didn’t). Update sudo apt-get update sudo apt-get upgrade Add a…
WordPress + Nginx + HHVM
Today I played around with installing WordPress 3.9 on Nginx at DigitalOcean and was amazed at how easy it really was. It was so easy that I decided to also install HHVM. I’m not going to go into every detail since I mostly just used already existing tutorials that I combined….
PHP Base85 encode 128-bit integer (GUID/UUID)
I’m working with GUIDs in PHP and am trying to find the most compact way to represent a 128-bit integer via a string. Searches showed theory and C# code along with a Wikipedia article that referenced many languages except for PHP so I decided to roll my own. The code below relies…