note 90855 added to install.windows
| From: | dpharshman at dslextreme dot com | Date: | Wed, 13 May 2009 04:45:18 +0000 |
| Subject: | note 90855 added to install.windows | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-154533@lists.php.net to get a copy of this message | ||
I'm installing PHP 5.2.9 (manually) on XP Pro SP3 with, of course, IIS 5.1 (plus MySQL 5.1,
Wordpress, etc.). I'm using ISAPI instead of CGI, by the way.
This is a dev machine, the final web site will get pushed to a host.
No matter what I do I can't get phpinfo() to properly report the location of the Configuration
File Path. It seems "glued to" C:\WINDOWS.
I've:
1. Included PHP in the Windows PATH (before MySQL) as ";E\PHP;"
2. Added the PHPRC system variable pointing to my install location as "E:\PHP"
3. Modified PHP.INI's extension_dir to point to "e:\php\ext"
4. Modified the Registry to include: HKEY_LOCAL_MACHINE\SOFTWARE\PHP IniFilePath E:\PHP
5. Though it may not be relevant, I've set up the ISAPI module in IIS Properties for all
"Web Sites" as follows:
5a. Added to the ISAPI Filters list: PHP pointing at e:\php\php5isapi.dll
5b. Set the Home Directory: Execute for Scripts Only and added the .php extension, having it point
at the same location as above
6. Set the Documents, adding index.php and moving it to the top of the list
7. I then stopped and restarted IIS using net stop and net start (and completly rebooted my
workstation too)
No matter how many times I've checked my entries,when I run phpinfo( ) -- as test.php -- the
"Loaded Configuration File" data is correct, but the "Configuration File Path for
php.ini is not; it still points to "C:\WINDOWS".
I'm not sure how serious this is, yet. The simple tests I've run so far seem to work okay
but I'm concerned that having the Configuration File Path wrong, will "get me" sooner
or later.
Any help would be appreciated.
Thanks in advance.
----
Server IP: 69.147.83.197
Probable Submitter: 208.127.186.232
----
Manual Page -- http://www.php.net/manual/en/install.windows.php
Edit -- https://master.php.net/note/edit/90855
Del: integrated -- https://master.php.net/note/delete/90855/integrated
Del: useless -- https://master.php.net/note/delete/90855/useless
Del: bad code -- https://master.php.net/note/delete/90855/bad+code
Del: spam -- https://master.php.net/note/delete/90855/spam
Del: non-english -- https://master.php.net/note/delete/90855/non-english
Del: in docs -- https://master.php.net/note/delete/90855/in+docs
Del: other reasons-- https://master.php.net/note/delete/90855
Reject -- https://master.php.net/note/reject/90855
Search -- https://master.php.net/manage/user-notes.php