Download the appropriate Apache 2.4 setup file from the course
webserver (links above).
Unzip the Apache archive *.zip into the
root of C:\.
This should make a C:\Apache24 folder.
To verify that Apache will work on your laptop, open up a Windows
command line as an Administrator, and change into your Apache24\bin directory. Run
the command: httpd
Verify Apache Loaded Succesfully
Open up your browser of choice. Type into the address bar: http://localhost or http://127.0.0.1.
The browser should show a welcome page with "It works!". If so Apache is on your laptop and
running, continue with the following steps to complete the configuration.
To stop the service in the DOS command Window click CTRL-C
(this will stop the httpd service turning off Apache)
Find the lines in the httpd.conf file that state (approx.
line 246): DocumentRoot "${SRVROOT}/htdocs"
<Directory "${SRVROOT}/htdocs">
Go to C:\Apache24\conf select the file
httpd.conf file right mouse-click and select "Edit with Notepad++" (download and config
Notepad++ if this is not an option)
Change them so that they state: DocumentRoot "C:\Libraries\Documents\inft1206\lastnamefirstinitial"
<Directory "C:\Libraries\Documents\inft1206\lastnamefirstinitial"> Be sure to create this folder if you have not already. NOTE: this file path is just an
example, be sure to put in your file path to your newly created lastnamefirstinitial
folder, AND DO NOT RUN IT OFF OF A OneDrive FOLDER (Apache will not work off of
OneDrive).
To add Apache 2.4 as a Window Service. Open the Windows command line
(i.e. cmd.exe as an administrator, change directory to the C:\Apache24\bin (or
wherever you unzipped you Apache files) then enter: httpd -k install -n "Apache 2.4"
If you have added Apache 2.4 as a Window service, start
ApacheMoniter.exe in the Apache24/bin folder (if you received an error that it is
already running, exit from the running instance in your Windows menu, then try to run the file
again).
In the Apache Monitor click "Start" or "Restart" (whichever is
available) to restart Apache 2.4
To test that Apache is working. Create a new text file named
index.html, place content in it and save.
In a browser navigate to http://localhost, the contents of
your index.html file should be displayed.