Use timeout to kill hanging PHP processes

* The internal PHP timeout only applies to CPU time, not system I/O calls

Change-Id: I748c0be89217c6c8916a8449a01767fbce9aa1d7
Merge "Use timeout to kill hanging PHP processes" into production