The easiest way to install a web server on your computer is using a web server installer.
One of those that are available is XAMPP:
Install XAMPP for Windows - Install
Install XAMPP for Linux - Install
Install XAMPP for Mac OS X- Install
Install XAMPP for Solarise - Install
-------------------------------------------------------------------------------------