note 31217 deleted from ref.apache by betz
| From: | betz@php.net | Date: | Sun, 31 Aug 2003 18:14:04 +0000 |
| Subject: | note 31217 deleted from ref.apache by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-55381@lists.php.net to get a copy of this message | ||
Note Submitter: Dhananjay Rokde dhanu1000@indiatimes.com
----
######################################
# Configuring Apache for Windows #
######################################
CAUTION::
1) Read the tutorial completly and only then proceed.
2) BackUp the original Httpd.conf file.
First; install PHP.
Now, you will unzip the constance of that 5meg file you downloaded. Now create a folder in
C:\Apache2 <ie: the Apache directory> and call it PHP. Now move the constance of the ziped
file to that folder. Now go to your httpd.conf file. It is in your C:\apache2\conf directory.
Now open that sucker up with notepad. Be sure to do not add the files in ( )'s
First find the line:
Setting up Httpd.conf
ScriptAlias /cgi-bin/ "C:/Apache2/cgi-bin/"
Go to the line under it and insert:
ScriptAlias /php/ "C:/apache2/php/"
(what this does is tell the server where the php folder is)
Now find the lines:
# Format: Action handler-name /cgi-script/location
#
Go to the line following it and insert this:
Action application/x-httpd-php /php/php.exe
(What this does is tell the server where the php program is)
Now find the lines:
# AddType allows you to add to or override the MIME configuration
# file mime.types for specific file types
#
AddType application/x-tar .tgz
Go to the line following it and insert these lines:
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps
(what this does is like the extensions on files)
Now, look for
<IfModule mod_mime_magic.c>
MIMEMagicFile conf/magic
</IfModule>
Now add this below:
<IfModule mod_dir.c>
DirectoryIndex index.html index.php default.php main.php
</IfModule>
(What that does is when you go to a folder, it will go to one of thoes files)
#There is not too much of risk involved as you can always reinstall the apache software, so take it
easy#
Apache is easily available at:
http://www.apache.org/mirrors/ <Entire List of
Mirrors>