NOTE: Packages like XAMPP, LAMP & WAMP will automate all these procedures but you have to work with their defaults or perform the following tweeks.

Install Apache Server / Apache is the terminal service provider

/* The Apache server is all you need so long as you do not involve PHP, and therefore DBMS like MySQL
1. Download the “no src” version and install
2. http://localhost or /* will show the apache web server page; will serve pages from the htdocs folder
3. find the “httpd.conf” file /* this file has evolved over the years
4. Alter DocumentRoot “{drive}/{apache..}/” to your liking
5. place web pages like index.html at {drive}:/{your chosen dir}
6. If you like, alter entry page from default “index.html” to your liking on httpd.conf
“<IfModule mod_dir.c>
DirectoryIndex index.htm
7. restart the Apache server > services.msc or via the control panel > services on Windows

Configure PHP to work with Apache / Apache server passes requests to PHP for sevices as “xxxx.php” page

PHP = Hypertext Pre-processor is an interpreter

You have to tell Apache web server where PHP is

Three ways: CGI {.exe}, Apache dll module and safer sapi method

1. Download the .zip file (the .exe or .msi will automate with IIS) > unzip (check to preserve the folder structure during extraction)

2. Open install.php or install.txt

3. Scroll to web server configuration
“Installing PHP on Windows with Apache x.x.x”

5. open c:/xampp directory/php/install.txt and copy instructions to this effect:

“LoadModule phpx_modue c:/php/sapi/phpxapache.dll
AddModule mod_phpx.c
AddType application/x-httpd-php .php”

Example for PHP5:

# Add to the end of the LoadModule section
LoadModule php5_module “C:\xampp\php\php5apache2_4.dll”

# Add to the end of the AddModule section
AddModule mod_php5.c

For both:
# Add this line inside the <IfModule mod_mime.c> conditional brace
AddType application/x-httpd-php .php

6. Paste in C:\xampp dir\apache\conf\httpd.conf

7. copy php5ts.dll or ealier version to windows/system32 folder

8. localhost/test.php