This question has already been answered:
Hello! I installed Apache 2 and PHP 5 according to this instruction. http: // localhost / opens ideally, but how to make so that what opens on localhost opens on my IP from any computer, and not just from mine?