Rik Wasmus wrote:
>I moved my php.ini file to the root of the Apache install and
restarted Apache. Now phpinfo() won't do anything when I try to load
it in a browser. Oops.
The Apache logs show nothing special, just that I restarted. Any
hints on turning on some debugging for php? Could I check PHP
independently of Apache some how?
I'll check the manual tomorrow, I'm off to be for the night. Thanks
for any help you can give.
Move it back, fix anything you have done that caused phpinfo() to not
display anything, and check in your phpinfo output which php.ini file
you're using (it's near the top).
I'm pretty sure I have it in the right spot now. I didn't look closely
at the phpinfo() output before. Here it is after I renamed the php.ini
file and restarted the server.
System Windows NT HOMER 6.0 build 6000
Build Date Nov 8 2007 23:18:08
Configure Command cscript /nologo configure.js
"--enable-snapshot-build" "--with-gd=shared"
Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\Windows
Loaded Configuration File (none)
That's the first bit. "Loaded Configuration File (none)" I think is the
operative part. If I try C:\Windows, I get the same result -- no
phpinfo().
I think my php.ini file is borked. Absent any way to debug it (logs?)
I'll have to resort to removing most of the config and adding bits back
until I find the problem.
Thanks for your help btw.
Also, for paths, favor / above \ (which is also an escape character...):
extension_dir ="C:/Program Files/PHP/ext"
Good advice, I'll do that.