The default port for running php web-server is 54007, but
this port might already be occupied by another application
or by our application when running multiple instances.
Therefore we should check if this port is free and if not
then generate a random port in the range 49152–65535, try
drawing for at least 100 tries until you find a free port.
How to check if port is free? Need to google it.
Original issue reported on code.google.com by
czarek.t...@gmail.comon 13 Jan 2013 at 5:13