note 53807 added to install.windows
| From: | daniel dot oconnor at gmail dot com | Date: | Tue, 14 Jun 2005 00:05:38 +0000 |
| Subject: | note 53807 added to install.windows | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-90386@lists.php.net to get a copy of this message | ||
Apache 2.0 + PHP 5.0.4 installation always bit me on the behind when I tried to enable extensions
like mhash and mcrypt.
The gotcha is the PHP 5 INSTALL file gets you to add a configuration directive to Apache like:
# For PHP 5 do something like this:
LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
# configure the path to php.ini
PHPIniDir "C:/php"
If c:\php isn't in your PATH, then you have issues, seemingly at random - it'll work on
one machine but not the other and is very frustrating.
What you really want, is the trailing slash, so that Apache actually knows it's a directory,
rather than a file.
PHPIniDir "C:/php/"
Hey presto, fixed!
----
Manual Page -- http://www.php.net/manual/en/install.windows.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+53807
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53807&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53807&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53807&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53807&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53807&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+53807&report=yes
Search -- http://master.php.net/manage/user-notes.php