simon_r2d2 Posted July 17, 2006 Share Posted July 17, 2006 I am having a really big headache getting PHP5 installed on a Win XP machine and IIS. The gist of the issue is that the output from phpinfo() shows the Configuration File Path as C:\WINDOWS. Now, from much frantic googling, I have discovered that this means that the php.ini file has not been found (i.e. had it been found the filename would be included in this path e.g. C:\php\php.ini). This I can just about accept. However, the PHP and Zend sites both tell me the order and locations that PHP looks for the file. This includes the PATH, an environment variable called PHPRC and a registry key. I have inserted C:\PHP into all of these, and the result is always the same. I have stuck EVERYONE with full control to the entire PHP folder and files, and still it won't work.......Has anyone any ideas? I am rapidly losing the will to live. ???Simon Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted July 17, 2006 Share Posted July 17, 2006 When you add the PHP folder to the PATH variable did you restart your computer? If you didnt then the Path variable wont become available until the next time Windows is restarted. Quote Link to comment Share on other sites More sharing options...
simon_r2d2 Posted July 17, 2006 Author Share Posted July 17, 2006 Yes - restarted after each operation just in case..... Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted July 17, 2006 Share Posted July 17, 2006 Okay. Make sure you have set the variable correctly, making sure there is a semi-colon before your PHP PATH variable. Also for a test move your php.ini to C:\WINNT (if available) or C:\WINDOWS folder. Restart IIS/Computer is PHP reading the php.ini? Quote Link to comment Share on other sites More sharing options...
simon_r2d2 Posted July 17, 2006 Author Share Posted July 17, 2006 OK, now when i try to do phpinfo() I get:"No input file specified"Any ideas what is going on? Quote Link to comment Share on other sites More sharing options...
simon_r2d2 Posted July 17, 2006 Author Share Posted July 17, 2006 Right, not sure why but I have cracked it....Moved php.ini to C:\windows and commented out doc_root. Can't explain why but seems to work fine now... weird!Simon ;D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.