As your web server, Apache ’ s main job is to listen to any incoming requests from a browser and return
an appropriate response. Apache is quite powerful and can accomplish virtually any task that you as a
webmaster require.
According to the Netcraft web site ( www.netcraft.com ), Apache is running over 83.5 million Internet
servers, more than Microsoft, Sun ONE, and Zeus combined at the time of this writing. Its flexibility,
power, and, of course, price make it a popular choice. It can be used to host a web site for the general
public, a company - wide intranet or for simply testing your pages before they are uploaded to a secure
server on another machine.
Follow these steps to download and install Apache on your Windows machine
1. Go to www.apache.org , and click the HTTP Server link in the Apache Projects list. The Apache
Software Foundation offers many different software packages, though the HTTP Server is the
only one we are concerned with.
2. Click the Download link under the most recent version of Apache.
3. Click the Win 32 Binary (MSI Installer) link to download the installation package. Whether you
choose the download without mod_ssl or the one that includes OpenSLL depends on your local
laws, needs and personal preferences. We do not use any of the functionality offered by mod_ssl
in this book, so if you want to lean towards the safe side feel free to download the package
without mod_ssl .
If you experience problems downloading this file, you can try downloading from a
different mirror site. Select an available mirror from the drop - down box near the top of the
download page.
4. You should be able to double - click the MSI file to initiate the installation wizard for Apache once
it has finished downloading, but you may experience some issues depending on what security
policies Windows has in effect. We recommend running the installer with administrative
privileges from within a console window.
To open a console as an Administrator in Windows XP, navigate through Start All Programs
Accessories, right - click on Command Prompt and select the Run As option. In Windows Vista,
navigate through Start All Programs Accessories, right - click on Command Prompt, and
select the Run as Administrator option.
5. Use the cd command to navigate to where you downloaded the installer file, and then run the
installer using msiexec - i . The Installation Wizard will open.
cd C:\Users\Timothy\Downloads\
msiexec -i apache_2.2.9-win32-x86-no_ssl-r2.msi
6. After accepting the installation agreement, you will see a screen that is equivalent to a
readme.txt file — it gives basic information about the Apache software and where to go to
find more information. We highly recommend that you read this.
7. Enter the following information on the Server Information screen:
❑ Domain name: For example, example.com
❑ Server name: For example, www.example.com
❑ Net administrator ’ s e - mail address
❑ Whether to install Apache for all users or only the current user.
We recommend the default option, which is to install Apache for all users on port 80 as a service
To test the installation of your Apache server, open a web browser and type the following URL:
http://localhost/
an appropriate response. Apache is quite powerful and can accomplish virtually any task that you as a
webmaster require.
According to the Netcraft web site ( www.netcraft.com ), Apache is running over 83.5 million Internet
servers, more than Microsoft, Sun ONE, and Zeus combined at the time of this writing. Its flexibility,
power, and, of course, price make it a popular choice. It can be used to host a web site for the general
public, a company - wide intranet or for simply testing your pages before they are uploaded to a secure
server on another machine.
Follow these steps to download and install Apache on your Windows machine
1. Go to www.apache.org , and click the HTTP Server link in the Apache Projects list. The Apache
Software Foundation offers many different software packages, though the HTTP Server is the
only one we are concerned with.
2. Click the Download link under the most recent version of Apache.
3. Click the Win 32 Binary (MSI Installer) link to download the installation package. Whether you
choose the download without mod_ssl or the one that includes OpenSLL depends on your local
laws, needs and personal preferences. We do not use any of the functionality offered by mod_ssl
in this book, so if you want to lean towards the safe side feel free to download the package
without mod_ssl .
If you experience problems downloading this file, you can try downloading from a
different mirror site. Select an available mirror from the drop - down box near the top of the
download page.
4. You should be able to double - click the MSI file to initiate the installation wizard for Apache once
it has finished downloading, but you may experience some issues depending on what security
policies Windows has in effect. We recommend running the installer with administrative
privileges from within a console window.
To open a console as an Administrator in Windows XP, navigate through Start All Programs
Accessories, right - click on Command Prompt and select the Run As option. In Windows Vista,
navigate through Start All Programs Accessories, right - click on Command Prompt, and
select the Run as Administrator option.
5. Use the cd command to navigate to where you downloaded the installer file, and then run the
installer using msiexec - i . The Installation Wizard will open.
cd C:\Users\Timothy\Downloads\
msiexec -i apache_2.2.9-win32-x86-no_ssl-r2.msi
6. After accepting the installation agreement, you will see a screen that is equivalent to a
readme.txt file — it gives basic information about the Apache software and where to go to
find more information. We highly recommend that you read this.
7. Enter the following information on the Server Information screen:
❑ Domain name: For example, example.com
❑ Server name: For example, www.example.com
❑ Net administrator ’ s e - mail address
❑ Whether to install Apache for all users or only the current user.
We recommend the default option, which is to install Apache for all users on port 80 as a service
To test the installation of your Apache server, open a web browser and type the following URL:
http://localhost/
No comments:
Post a Comment