note 73991 deleted from install.windows.apache2 by betz
| From: | betz@php.net | Date: | Wed, 28 Nov 2007 14:22:38 +0000 |
| Subject: | note 73991 deleted from install.windows.apache2 by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-132631@lists.php.net to get a copy of this message | ||
Note Submitter: martin dot hansell at gmail dot com
----
As a complete novice with all_things_software, I found the instructions above incomplete, in
particular with respect to WHERE to add in the additional lines to the PHP configuration file...
they assume a certain amount of knowledge, which left me a bit in the dark. [See "at the
foot" below for WHERE...]
In fact configuring the httpd.conf file is a piece of cake with the right instructions. This site
below (courtesy of my brother-in-law - credit where it's due) gave me the answer, and I have
pasted the key information below (permission not granted but credit again due via URL to respective
site)
I quote "Next step is to open up your httpd.conf file in a text editor, wordpad or notepad,
and add a few lines. The file, from the default installation is found in the X:\Program Files\Apache
Group\Apache2\conf folder.
Do a search for "LoadModule" and you will see a list of modules that Apache tries to
initiate when starting up. At the foot of this section, add the following 4 derivatives - each on a
separate line: LoadModule; PHPIniDir; AddType; second AddType.
LoadModule php5_module "X:/Program Files/Apache Group/php/php-5.2.0-Win32/php5apache2.dll"
PHPIniDir "X:/Program Files/Apache Group/php/php-5.2.0-Win32"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
That's it. Left-click the Apache monitor icon that should be in your task-bar and press
restart. You can create a php page to test if the installation has worked. Save the following as
info.php in your X:\Program Files\Apache Group\Apache2\htdocs folder assuming you haven't
modified your document root." [For "the following" you will have to refer to the
site...]
http://www.skiffie.com/code/server/php-as-apache-module
It really was as simple as that... Hope this helps.
Martin