Archives

PHP

pecl_http 2.x example

Previously, I was using pecl_http 1.7.6 and life was easy – all I was using (and needed) was the http_get() API.  However, v2 of the API was completely overhauled.  Gone are the static, c-style APIs, instead replaced with a full object-oriented API.  One could argue that this change was long overdue, but it was a jarring change – the old APIs weren’t simply deprecated, they were removed.

Read more →

Unable to load http.so

Fortunately, it doesn’t happen too often, but every now and again I rub elbows with downright infuriating problems in the OSS world.  If you go off the reservation (off the ‘rez), and attempt to make unsupported configurations work, you expect these types of things.  But when you’re targeting a basic, happy path use case, you don’t.  Thus began my 3+ day excursion into getting pecl_http to work with PHP 5.5…

Read more →

WordPress and S3 must be addressed using the specified endpoint

As I’ve gotten more familiar with both WordPress (running on EC2) and Amazon S3, I’ve started hosting a good part of my Web site assets on S3 (images, pdfs, etc.). It’s a CDN-ish way of keeping considerable load, and bandwidth, off my direct Web server(s).

Read more →

Start Apache on boot

I was reminded that by default, Linux distros don’t start services on boot. I found this out the hard way on EC2 when setting up an apache server.

Read more →