note 60668 added to install.windows.apache2
| From: | mmyers at crucialsecurity dot com | Date: | Fri, 13 Jan 2006 10:45:06 +0000 |
| Subject: | note 60668 added to install.windows.apache2 | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-101695@lists.php.net to get a copy of this message | ||
I wasted a good hour or two on solving this: no matter what I did, the output of my test php script
(phpinfo()) would show that the php.ini file path was "C:\windows" -- this is apparently a
secret code word for "the php ini file was not found at all". My php.ini file was in my
PHP install directory, which I called "C:\php-5.1.2" If I placed the php.ini file in
C:\windows, then I would just get a blank white page when I tried to run the test.php script. Wow,
ok...
These were my two mistakes...if you can call them mine, I blame Apache 2.0 for this lameness:
* In httpd.conf, make sure your PHPIniDir directive comes before your LoadModule to load the PHP
module.
* You have to specify the path in quotes, and NOT have a trailing backslash. Either of these
things ruins it (silently).
Example of correct httpd.conf:
# PHP stuff:
PHPIniDir "C:\PHP-5.1.2"
LoadModule php5_module "C:\PHP-5.1.2\php5apache2.dll"
AddType application/x-httpd-php .php
----
Manual Page -- http://www.php.net/manual/en/install.windows.apache2.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+60668
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+60668&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+60668&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+60668&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+60668&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+60668&report=yes&reason=non-english
Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+60668&report=yes&reason=already+in+docs
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+60668&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+60668&report=yes
Search -- http://master.php.net/manage/user-notes.php