note 73991 added to install.windows.apache2
| From: | martin dot hansell at gmail dot com | Date: | Tue, 20 Mar 2007 08:17:46 +0000 |
| Subject: | note 73991 added to install.windows.apache2 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-124615@lists.php.net to get a copy of this message | ||
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
----
Server IP: 203.220.0.234
Probable Submitter: 124.82.89.108
----
Manual Page -- http://www.php.net/manual/en/install.windows.apache2.php
Edit -- https://master.php.net/note/edit/73991
Del: integrated -- https://master.php.net/note/delete/73991/integrated
Del: useless -- https://master.php.net/note/delete/73991/useless
Del: bad code -- https://master.php.net/note/delete/73991/bad+code
Del: spam -- https://master.php.net/note/delete/73991/spam
Del: non-english -- https://master.php.net/note/delete/73991/non-english
Del: in docs -- https://master.php.net/note/delete/73991/in+docs
Del: other reasons-- https://master.php.net/note/delete/73991
Reject -- https://master.php.net/note/reject/73991
Search -- https://master.php.net/manage/user-notes.php