The simplest way is to install a full package with all software you need.
The best I know is
XAMPP, it has Apache, MySQL, PHP, Perl and many more.
You can take it from:
http://www.apachefriends.org/
It's a simple click...click installation and it's ready
Works both, on Linux and Windows.
Regards, Boby.