|
 |
How to install Apache, PHP and MySQL on Windows
- Installing Apache
- Obtain a copy of the Apache 1.3.28 Windows Installer from http://httpd.apache.org/
- Run the installer.
- Install into C:\Apache
- Start the server
- Start Menu>All Programs>Apache HTTP Server>Control Apache
Server>Start
- Point the browser to http://localhost
- You should see the Apache default page!
- Installing PHP
- Obtain a copy of the latest PHP Windows installer from http://www.php.net/downloads.php
- Unzip the file
- Place php.ini into C:\WINDOWS
- Copy php4ts.dll and php4ts.lib into C:\php\sapi
- Configure Apache
- Using a text editor open the Apache configuration file
- Should be C:\Apache\Apache\conf\httpd.con
- Set Apache variables
- Set the webmaster email
- Change the root directory to what you wish (roughly line 309)
- i.e. C:\C:\Documents and Settings\{username}\My Documents\Sites
- Change the Directory path for the default Web directory to the same
path as the previous step
- To have Apache load PHP add the following lines after the Loading and
Adding of the other Modules (around line 241)
#Load PHP!
LoadModule php4_module c:/php/sapi/php4apache.dll
AddType application/x-httpd-php .php .php4 .php3 .phtml
- To have Apache recognize index.php as a home page locate the following
roughly line(392):
<IfModule mod_dir.c>
DirectoryIndex index.html
</IfModule>
and change to:
<IfModule mod_dir.c>
DirectoryIndex index.html index.php default.php
</IfModule>
- Save and close the file
- Restart Apache
- Start Menu>All Programs>Apache HTTP Server>Control Apache
Server>Restart
- Install MySQL (coming soon...)
|