Apache 2.4.x

Pre-requisites

Follow instructions found within the Superstructure page.

Environmental Variables

Download this Registry1) 2) File , It contains Environmental Variables needed for Apache to operate within this framework. Download this text file for the complete list of environmental variables used throughout this framework.

Just unZIP and double-click the .reg file. The variables will be loaded into your computer for you. Now, if you've decided on a different volume letter than I suggested3), you will need to edit this file before you load it into the registry.

You did follow the instructions within the Superstructure page first, right?

HOME

Yes, a HOME variable. This environmental variable is not part of the “global” variables because it should be defined for each login on any particular PC. Just look up how to create this variable for your particular Windows OS.

Because of the way Windows works, you are going to have to restart your computer at this point, otherwise Apache will not be able to “see” these variables.

Setup

This document is valid as of Apache v2.2.11
Read this before you do anything else! Right now!
No need to do anything with what it talks about, just be aware of these issues.

README NOW

Download the Package

Now, you have 2 choices:

  1. Apache with SSL (secure access)
  2. Apache without SSL.

Your choice determines which file you need to download and install. Yes, you could download the SSL version and then just turn it off; that's what I did.

Now, you have 2 more choices:

;Download the installer from Apache.org
:http://httpd.apache.org/download.cgi
:Pick a MIRROR, then choose 'Other files" under the 2.2.x banner (the others are only code source).
:The MSI file is a Windows installer. It does almost everything for you.
:And it also puts files in the WINDOWS directory and keys in the Registry.
;Download the ZIP version
:http://www.apachelounge.com/download
:The ZIP file does NOT have an installer and puts nothing in the WINDOWS folder, nothing in the Registry, nothing.

Your choice.

Which method you choose for installation will matter a great deal when it comes time to upgrade or fix a DLL issue. It's not a straightforward process to correct DLL problems with the MSI version.

This site will fully document the ZIP version and will (try to) support fixes and upgrades. This site will not be documenting the MSI installation version.

Apache 2.4x https://www.apachehaus.com/cgi-bin/download.plx?dli=aJTNtNWRBNjT6F1aRBjUIpkVOpkVFVVcSBjUYF1Z

Installation

As of version 2.2.9a, you must first Download and Install the Microsoft Visual C++ 2008 Redistributable Package.

This version of Apache will not work without it.

ADDENDUM: This is not needed for Windows 10

* Unzip the files into /etc/Apache

* Open a command box and cd into …

For Windows 10, you must run the command window as an Administrator.
  > cd [vol:]/etc/Apache/bin

enter…

  > httpd -t

This should give you an error. The “out of the box” configurations will not work without some tweaking.

I have reworked some of the conf files that come with Apache. In my view, they are a bit more logically placed and a bit easier to edit.

  1. Remove the existing 'conf' directory from your Apache directory
  2. Download this ZIP file
  3. move the 3 folders from the ZIP file into your Apache directory

again, enter…

  > httpd -t

If you've set up your system as directed, it should give you…

  > Syntax OK

At this point, we can test to see if Apache is working with what we have.

At the command prompt…

   > httpd

This should hesitate for a minute and then the cursor should drop to the next line. At this point, it either works or not.

Open your browser enter the localhost URL into the address bar…

   http://localhost

This will either give you the default “Apache screen” or a 404 error.

If this failed, something went wrong with your file/directory layout. Simply wipe what you have and start again.

Control C (a few times) and ENTER to exit Apache.

Last Items

The last item of business for Apache is whether to run this as a SERVICE4), which will be “always on” or do you want to turn the web server on when you want to.

  1. The upside: It's always available
  2. The downside: It takes some resources just to sit idly wait for requests.
    Also, if you've not secured your windows properly, others can try to hack in5).

Windows Service, or Not

If you wish to start Apache manually each time, just enter

> httpd

at the command prompt and Apache will begin as a temporary background process.

Actually, it is easier to use the Apache Monitor (described below) to turn on and off Apache.

If you wish Apache to be “always on”, then it has to be installed as a Windows Service. To do this, just enter

> httpd -n Apache -k install

This will install Apache as a Windows Service with the name Apache. Each time you start your PC, Apache will start as well.

Apache Monitor

Within the Apache/bin directory, there is a small app called ApacheMonitor.exe. Create a shortcut to this file and drop in the STARTUP folder of the START menu. Now each time you log in, this monitor will launch and display itself in the taskbar next to the clock. I use this tool to stop and start Apache whenever I need to change a conf file, or it hangs for some reason.

This only works on the local PC on which Apache is installed.

Optional Configuration Procedures

This page was just a basic Apache setup, just to get it running. These other pages walk you through the various “advanced” features of Apache.

We suggest that you get Virtual Hosts working next. It really does help with overall development. We've found that placing phpMyadmin (for example) as its own Virtual Hosted Name makes getting to it a lot easier. Using Virtual Hosts also keeps projects separate and easier to work with.

search?q=.%3Anext%26nofooter%26firstseconly&btnI=lucky

Commentary


1) This is only for NT, XP, W7, 10. You'll have to do any other OS by hand
2) I know, I lied! Sort of. Windows stores environmental variables in the registry.
3) I use 'L' as my volume letter
4) a Windows version of a daemon
5) but they won't get anywhere
 
wamp/apache/start.txt · Last modified: 2017/11/20 02:50 by walter