Blog Archives

Why can’t I find files written by PHP-FPM in /tmp?

Last night, I was trying to use XHProf to do a bit of profiling on¬†phpDocumentor.¬†The CLI app runs, XHProf collates statistics and writes the data to /tmp. When I fired up the XHProf web interface, it couldn’t find anything in

Tagged with: , ,
Posted in Linux, PHP

Fonts on Fedora – aka pulling at a loose thread

Apologies for not posting in a long time, etc, etc but this is actually more of a note to myself. I was speaking to one of my colleagues at Magma Digital and he got me thinking about font rendering in

Tagged with: , ,
Posted in Linux, Ramblings

faking latency on your local network

I recently had call to try and artificially introduce network latency on my machine. During development of a web application of any sort, it’s artificially fast and reliable if it only has to go over localhost or even to another

Posted in Linux

PHP and Nginx RPM repo for RedSleeve Linux on Raspberry Pi

You may have already noticed from a previous post that I’m a big fan of CentOS. So, I’ve spent the past few days trying to recompile some SRPMs for the Raspberry Pi. I don’t have a cross compile too chain,

Posted in Development, Linux, PHP, RasberryPi

CentOS on your RaspberryPI

Many years ago, when I first started using Linux the choice of distro was made for me by my employer. Fast forward around 12 years and I’m using a long lost descendant, CentOS. I’m sure you can appreciate that with

Tagged with: , ,
Posted in Linux, RasberryPi

Android SDK on 64bit Fedora 14

If you’re half way through setting up Android SDK on Fedora 14 (and I imagine all other versions apply) on a 64bit install you’ll get some fairly vague messages back from Ant. Fortunately, they’re quite easy to fix once you

Tagged with: ,
Posted in Development, Linux

wordpress rewrite rules for lighttpd

I recently tried to tidy up my hand crafted rewrite rules for wordpress/lighttpd and after a very quick google I was taken to an article titled “URL rewriting for wordpress and lighttpd“. Clearly, I thought my search was over. However,

Posted in Development, Linux, web

MySQL Replication and disappearing relay logs

A recent reboot of a server highlighted an issue with MySQL 5.045 on CentOS 5.3. On this particular setup, MySQL seems to place relay logs in /var/run/mysqld/. Unfortunately, this will mean that when the machine is rebooted, the relay log

Tagged with: , ,
Posted in Linux

Quick guide to Linux daemons in PHP

This guide was originally written for a PHPNW meetup – more information on the group is available here Whenever we want to carry out lengthy tasks or process large batches of data, we should consider executing that process in the

Tagged with: , , ,
Posted in Linux

Centos 5.3 net install on VirtualBox

I wanted to install CentOS 5.3 as my new development platform (upgrading from 5.2) and I thought I’d take the lazy route and use the net-install ISO. Although the 5.2 net-install worked flawlessly, the 5.3 failed at the same point

Posted in Linux