Wait up to 2 seconds for the PHP api to spin up.