Jump to content

Archived

This topic is now archived and is closed to further replies.

simon_r2d2

php.ini not being found

Recommended Posts

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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.