== Setup Apache 2.2 ==
1. Get Apache 2.2 from here: http://httpd.apache.org/
2. Install to anywhere you like. ex: D:\Apache
3. You can also set DocumentRoot in httpd.conf file
(D:\Apache\conf\httpd.conf for example) and Type in:
?DocumentRoot 『D:/www/abcd/webApp/』
Note: Remember that when adding path values in the Apache
configuration files on Windows, all backslashes such as c:\directory\file.ext
must be converted to forward slashes, as c:/directory/file.ext. A trailing slash
may also be necessary for directories.
4. Make an index.html file and put it under you DocumentRoot. Open your Browser and
type http://localhost/ to see if you can see the page.
== Setup PHP ==
1. Download PHP 5.2 at : http://snaps.php.net/
(Please note that only PHP 5.2 work with Apache 2.2)
2. Put the .zip anywhere you like. ex: D:\PHP
3. Rename D:\PHP\php.ini-recommended to php.ini
4. Add D:\php to the PATH (Control Panel)
5. Set the doc_root to point to your web servers document_root.
For example:
doc_root = c:apachehtdocs // for Apache
(or doc_root = D:wwwabcdwebApp in our case)
6. Install PHP as an Apache Module:
you need to insert these two lines to
your Apache httpd.conf configuration file to set
up the PHP module for Apache 2.2:
# For PHP 5.2 do something like this:
LoadModule php5_module "D:/PHP/php5apache2_2.dll"
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "D:/PHP"
7. make a php page and put it under your document root.
Some Example can be found at:
http://www.php.net/manual/en/tutorial.firstpage.php