note 31361 added to install.apache
| From: | Dhananjay at rack1 dot php dot net | Date: | Fri, 18 Apr 2003 13:42:15 +0000 |
| Subject: | note 31361 added to install.apache | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-46783@lists.php.net to get a copy of this message | ||
- Dhananjay Rokde.
Extremly Important steps that you need to follow for setting up the Apache server under the windows
environment :
Once PHP is installed, install Apache (Follow the defaults). First, you will unzip the constance of
that 5meg file you downloaded. Now create a folder in C:\Apache2 and called 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.
Small Note, please do all this very cool-headedly. depending on the PHP version, the lines may be
back 'n forth. Be very careful in pasting these changes. There is NO such risk involved as you
may reinstall the entire application, again. So, go ahead and blow the sucker.
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
MIMEMagicFile conf/magic
Now add this below:
DirectoryIndex index.html index.php default.php main.php
(What that does is when you go to a folder, it will go to one of thoes files)
You can now chech to see if your server is operational. If it is; good, if not; take some rest and
try this again.
I really hope this is useful, and you implement this, while doing the same, please support PHP and
Apache by putting up their stickers on your server.
--
http://www.php.net/manual/en/install.apache.php
http://master.php.net/manage/user-notes.php?action=edit+31361
http://master.php.net/manage/user-notes.php?action=delete+31361
http://master.php.net/manage/user-notes.php?action=reject+31361