changed php to listen for requests on socket rather than tcp. changed max_children on api1 to 30 and on api2 to 20