How to install Apache 1.3 web server on Windows
Apache is the most popular web server and it can be installed on Windows to create a web development environment to host local websites coded in PHP and MySQL.
If you are looking for how to install Apache 2, here is How to install Apache 2 web server on Windows.
Pre-requisite: Install PHP on Windows
Here is a list of Apache HTTP server related pages:
Steps to install Apache on Windows as development machine Step 1: Download Apache 1.3
As of this writing, Apache 1.3.41 is the current stable version of the 1.3 series.
Step 2: Verify the downloaded file for integrity
Every Apache download comes with a MD5 hash value. This hash value is a Checksum value that can be used to verify data and file integrity. Screenshot below shows the Apache I downloaded was verified by freeware HashCalc.
File downloaded: apache_1.3.41-win32-x86-no_src.msi
After finishing download, double click the installation file. The installation should start straight away. Here are 9 screenshots. Click the each link to open the screenshot in a different window.
3.3 Read First
This step needs a bit explanation. Add localhost to both Network Domain and Server Name box. Administrator's Email Address can be anything you like. These info are used for Apache configuration file but you can change them after the installation.
Next, select the first radio button as recommended. This way, Apache will be running as a Windows Service. See Step 7 below for more info about how to start, stop, restart Apache.
3.5 Setup Type
Choose Complete as the setup type.
You can leave the default installation folder as is.
3.7 Ready to install
Step 4: Test your installation
After install, open web browser and type either of the following URLs into your browser's address bar and hit Enter key.
http://169.254.32.57 could be your local machine's auto assigned IP that Microsoft has reserved (addresses 169.254.00 to 169.254.255.255).
If you use a router which sets up a LAN (Local Area Network), the router can assign an internal IP. For example, Linksys assumes a default internal IP address of 192.168.0.1
To find out your computer's IP address, open a command line window and run ipconfig command:
If Apache has been installed correctly, you should see a success message opened in your web browser, as show below.
Step 5: Edit the Apache httpd.conf Configuration File
Make sure you change the httpd.conf file according to the screenshots shown in the following section.
5.1 Add these two lines in the configuration file.
This will make PHP work as an Apache module.
5.2 Add AddModule mod_php4.c as shown below.
5.3 Comment out DirectoryIndex index.html and add DirectoryIndex index.html index.htm index.php
5.4 Add AddType application/x-httpd-php .php
5.5 Change your document root directory to a more meaningful one. The directory should be whatever folder your php files are placed into. The screenshot below shows that I
So, all my php files are located in a folder named as geeksengine on my C drive.
5.6 Add a directory which should be the folder that contains your php files.
Step 6: Copy core PHP DLL - php4ts.dll
If you forgot to copy, you will see this error when restarting Apache.
You will see this Windows MMC error when you restart Apache from Microsoft Management Console (MMC).
Step 7: Start, Stop, Restart Apache
Test to see if you are able to start, stop, and restart Apache Server from Windows Start -> Programs -> Apache HTTP Server -> Control Apache Server.
If Control Apache Server menu is not available. You can start, stop, and restart Apache by using Microsoft Management Console.
Start -> Settings -> Control Panel -> Administrative Tools -> Services
By using Windows Services, You can Start, Stop, and Restart Apache from Microsoft Management Console. See screenshot below. Selecting Apache as a Windows service will make it automatically start when your computer starts up, and to keep Apache running when you log-off.
Step 8: Create a test PHP page
If you have already installed PHP, you can create an index.php page under C:\GeeksEngine folder. I assume you have created this folder in step 5.5 above. Or, you can create index.php in any directory you want as long as this directory has been set in step 5.5 as your DocumentRoot.
Add the following code inside your index.php page and save it:
Step 9: Execute index.php page
Open you web browser and type http://localhost in the address bar. You should see PHP Configuration information page. Apache parses the index.php page and execute PHP function phoinfo() to load the content of php.ini file into your web browser.
If you can see the PHP Configuration page, both PHP and Apache have been installed correctly and you are on your way to create your first PHP website.
How to resolve Port 80 conflict error Port 80 conflict may occur if you have Internet Information Server (IIS) installed on your computer.
Windows 2000/XP comes with Internet Information Server (IIS) as its optional Windows Component. IIS uses port 80. The default setting in Apache httpd.conf also uses port 80.
Because Apache cannot share the same TCP/IP port with another TCP/IP application, you may need to stop or uninstall certain services first. The most common one is Microsoft IIS.
To resolve the conflict, you can change port as either of below:
You can stop IIS either from Internet Services Manager or from command line (Start -> Run -> iisreset /stop)
The solution is to change either IIS or Apache to port 8080.
IIS properties change:
Or, Apache configuration change:
Copyright © 2013 GeeksEngine.com. All Rights Reserved.
This website is hosted by LunarPages.
No portion may be reproduced without my written permission. Software and hardware names mentioned on this site are registered trademarks of their respective companies. Should any right be infringed, it is totally unintentional. Drop me an email and I will promptly and gladly rectify it.