Run the Apache Windows Installer that downloaded in Part 1. The installation is easy, just follow the on screen instruction.
The default folder for Apache installation is C:Program FilesApache GroupApache2. You can change that to anywhere in your hard disk. Here it’s change to C:ServerApache2 for example. Then click “Next”.
Testing Apache Installation
Try to access http://localhost/.
A simple Apache index page in English should be shown. It means that the installation is succesful.
If there is problem, try the following the steps. Go to Start -> All Programs – Apache HTTP Server 2.x.xx – Control Apache Server. Try to Stop and then Start or Restart the Apache server (The Apache tray icon may also appear in Windows System Tray, where the above controls can be accessed there).
After installation is successful, the Apache configuration file httpd.conf should be updated if you want change the web root directory instead of default one at Apache2htdocs. The httpd.conf located in “C:Installation_PathApache2confhttpd.conf”. Use a text script editor to open it.
Search for DocumentRoot “C:/Server/Apache 2/Apache2/htdocs”. It should be found at line 228. Change it to your preferred web root folder. For illustration purpose, we change it to folder C:Serverwww. So the new line should looks like DocumentRoot “C:/Server/www” (use forward slashes instead of backslashes for directories/folders in the Apache configuration file).
There is another same directory at line 253. Copy and paste the DocumentRoot from line 228 to line 253.
Save the configuration file. Make sure the new document root directory (i.e. C:Serverwww) exists. Then restart the Apache server. Depending on the directory contents, you’ll either see an index file or a list of files in the directory.