Added php server and a sleep before the open commands