Happy to see you got PHP running, I imagine the next step is a Wordpress Plugin to handle it automatically.
I suspect that you'll frequently need to fallback to the socket approach. I imagine a lot of shared hosts block the capability to run exec (Godaddy, Hostgator, other common php hosts), and I believe that's where a lot of PHP lives.