![]() ![]() PHP: Installation on Windows systems. PHP 5. 2. 9. 2 Install on XP Pro IIS 5. Testing Date: 0. Background: For several days now I, as a newbie, have been unsure if I had installed PHP correctly, or not. No matter what I did phpinfo( ) reported "Configuratin File Path" as: “C: \WINDOWS”. I was left to wonder what was wrong. To help resolve the phpinfo() “issue”, I conducted a series of tests using two scripts: The first is “test- php- ini- loaded. Loaded php. ini: ' . A php. ini file is not loaded'; }?> The second script is simply calls phpinfo( ). It is named test. Glossary¶ >>> The default Python prompt of the interactive shell. Often seen for code examples which can be executed interactively in the interpreter. 1.3. Installing LWP. LWP and the associated modules are available in various distributions free from the Comprehensive Perl Archive Network (CPAN). My Dev Environment: 1. Windows XP Pro SP3. IIS 5. 1 / MMC 3. PHP 5. 2. 9. 2 – php. My. Admin not yet installed. ![]()
My. SQL 5. 1, etc.)5. Install location is on my local E: drive. The Tests: Test 1: a. PHPRC environment variable and Ini. File. Path Registry left in place and activeb. Verified no other copies of php. E: \PHP folderc. Renamed php. Stopped and started IIS (“net stop iisadmin” and “net start w. Ran “test- php- ini- loaded. It is not. f. Ran "test. Loaded Configuration File” was empty, while “Configuration File (php. Path” showed: C: \WINDOWS. Test 2: a. Moved php. E: \PHP to C: \WINDOWSb. Stopped and started IISc. Ran "test- php- ini- loaded. It is not, which surprised me. Ran "test. php". My php. Configuration File (php. Path” reports it as being in C: \WINDOWS. Note: Per PHP’s “The configuration file” note, PHP's search order includes: “Windows directory (C: \windows or C: \winnt) (for Windows), ..”; but it apparently doesn’t or php. Loaded Configuration File”. Test 3: a. Left the solo copy of my php. C: \WINDOWSb. Disabled PHPRC environment variable by renaming it to “Ex- PHPRC and saving the settings (note: for this test I left the Registry entry for PHP Ini. File. Path intact)c. Stopped and started IISd. Ran "test- php- ini- loaded. Predictably it is not found. Ran the "test. php". Again, my php. C: \WINDOWS though “Configuration File (php. Path” reports it as being there. Test 4: a. To be thorough and eliminate all possible sources of “mis- direction” I deleted the PHP Ini. File. Path Registry entry (after backing up the Registry). The PHPRC environment variable was left disabled. b. Stopped and started IISc. Ran "test- php- ini- loaded. Predictably it is not. Ran "test. php". Again, no change. My php. Configuration File (php. Path” reports it as being there. Conclusions: The first conclusion I came to is that, in the default download version of phpinfo( ), “Configuration File (php. Path” is hard- wired to report C: \WINDOWS whether php. Further, that C: \WINDOWS is not a default search location (at least not on XP). However, given an otherwise “proper” setup, phpinfo() reporting C: \WINDOWS as the value for “Configuration File (php. Path” is merely misleading and is not actually harmful or indicative of a failed installation. Thanks go to Peter Guy of www. Daniel Brown of www. P. S. This note is not meant to take anything away from PHP. It is a fine tool. The sole purpose of the testing was to confirm that my installation of PHP was correct.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
September 2018
Categories |