Jump to content


Photo

php.ini not being found


  • Please log in to reply
5 replies to this topic

#1 simon_r2d2

simon_r2d2
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 17 July 2006 - 01:49 PM

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

#2 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 17 July 2006 - 01:52 PM

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.

#3 simon_r2d2

simon_r2d2
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 17 July 2006 - 01:54 PM

Yes - restarted after each operation just in case.....

#4 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 17 July 2006 - 01:59 PM

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?

#5 simon_r2d2

simon_r2d2
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 17 July 2006 - 02:06 PM

OK, now when i try to do phpinfo() I get:

"No input file specified"

Any ideas what is going on?

#6 simon_r2d2

simon_r2d2
  • New Members
  • Pip
  • Newbie
  • 4 posts

Posted 17 July 2006 - 02:46 PM

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




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users