Red Antigua Logo slogan
Ads by Goooooogle
Search this site (by Google)
Menu
Home
About
Tools
Perl modules
Perl tutorials
C tutorials
Server configurations
UNIX on Windows
Misc. FreeBSD/UNIX
Redirect a web page
JavaScript
Virus list
Old stuff
Off topic

Tools    (top)
Your IP
Check a site for broken links
(W3C)

Perl modules    (top)
Tree::Numbered::Tools
(CPAN)
Perl tutorials    (top)
Perl modules
HTML::Template
CGI::Application
Mail::POP3Client
Mail::Send
MIME::Tools
Cookies with CGI::Application
Upload files with CGI::Application
Download files with CGI::Application
Redirect with CGI::Application
CPAN shell
Install DBD::mysql from the CPAN shell
Perl trim function
Validate an IP with Perl
Run suid Perl scripts under Apache
Perl taint mode
Perl date functions with Date::Calc

In Spanish
Curso de Perl

C tutorials    (top)
C - Introduction
C - Absolute beginner's Emacs
C - Examples for beginners
C - Makefile examples
C - Autotools examples
Server configurations    (top)
DNS
Apache
Apache Authentication and Access Control
mod_perl on FreeBSD
MySQL
MySQL add account
phpMyAdmin
Squid
DHCP

UNIX on Windows    (top)
Apache setup on Windows
MySQL setup on Windows
PHP setup on Windows
Perl setup on Windows
Emacs setup on Windows
UnxUtils
PuTTY
WinSCP
GIMP on Windows
MinGW - gcc on Windows
MSYS - make-in-a-shell on Windows
msysDTK - autotools on Windows
GDB for MinGW on Windows

Misc. FreeBSD/UNIX    (top)
CD and DVD creation on FreeBSD using 'k3b' on FreeBSD
'ipf' on FreeBSD
'pf' on FreeBSD
'su' on FreeBSD
Mount an ISO image under FreeBSD
Load the correct sound driver under FreeBSD without knowing what sound card you are using
Simultaneous sound channels on FreeBSD
Boot floppies for FreeBSD
Problems with old disks/controllers and the 'ata' driver
FreeBSD network stuff
DOS-to-UNIX file conversion
favicon.ico on UNIX
Emacs tips
Sendmail tips
GKrellm
Command Line Calculator
Save multimedia streams with 'mplayer'
xargs - solution to 'Argument list too long'
Process multiple images from the command line using 'ImageMagick'
Turn the system bell off under X Windows
Process each line in an input file from the command line (or in a shell script)
How to keep a program running in the background using 'nohup'
How to remove symbolic links in the current directory using 'find' and 'rm'
How to remove Emacs backup files in the current directory and all subdirectories using 'find' and 'rm'
How to execute .profile without logging in

Redirect a web page    (top)
Redirect to another web page
Apache redirect
C redirect
Perl redirect
PHP redirect
HTML redirect
JavaScript redirect

Javascript    (top)
Trim function
Login form
Register form
Popup window

Virus list    (top)
Latest viruses - Computer Virus HQ (external)
Latest 10 viruses - Sophos

Links    (top)
HTML and PHP Scripts - Html Web Template

Old stuff    (top)
POP3 server setup
About AnyMail
AnyMail downloads

Off topic    (top)
Personal links

Validated by
Valid HTML 4.01!
Valid CSS!
Powered by
apache.org
Apache setup on Windows
Apache setup on Windows
This tutorial describes how to setup Apache on Windows (tested with Apache 2.0.58 on Windows XP Professional).
Note that this tutorial does NOT include how to setup a SSL-based web server (i.e. https), so it is not recommended for production use.

Install

Download the precompiled Windows version of Apache from http://www.apache.org/dist/httpd/binaries/win32/.
Select the apache_XXX-win32-x86-no_ssl.msi you would like to use (at the time of this writing, the available versions are 1.3.35, 2.0.58, and 2.2.2).
Double-click the downloaded .msi file as any other installation procedure, just fill in the domain name, server name and your email address.
On Windows, the installation creates a short cut in the Start Menu to Apache, both to configuration, control, and documentation.

Troubleshoot

On Windows XP Professional, I got a couple of Command Prompt popup windows during the installation, showing the following error message:
(OS 10048)Only one usage of each socket address (protocol/network address/port) is normally permitted. :
make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
When I tried to restart Apache (using the Start Menu shortcut), I got the following error message:
No installed service named "Apache2"

Fix for this problem:
  1. Modify httpd.conf (accessible from the Start Menu shortcut):
    Change the line
    Listen 80
    to
    Listen 127.0.0.1:80

  2. Install the Apache2 service manually from the command prompt:

        "C:\Program Files\Apache Group\Apache2\bin\apache" -k install -n "Apache2"
This should be sufficient to get Apache up and running on Windows.
Just configure Apache as you do on any UNIX system, that is, edit the httpd.conf file.

Last modified: Tue May 30 07:19:21 EDT 2006