Page 1 of 1

php5 and IIS : problems with error reporting

Posted: Mon Jun 13, 2005 3:31 am
by bparis
Hello,

I've just installed php5.0.4 with IIs windows-2003 server.
I've been tried and tried to get error logs in a file, but never succeed.
I'am really new in php, but I think this little script should produce some message:

Code: Select all

<?php
error_log ( "Hi there" );
echo "Hi there";
?>
Unfortunetly my error file stays 0 kb of messages, although I think my php.ini is correctly defined to get things in this file.

Here it is:
php.ini wrote:error_reporting = E_ALL & E_STRICT
display_errors = On
display_startup_errors = On
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
error_log = c:\Program Files\php-5.0.4\errors.log
The errors.log is given full control rights to administrator and system.

Any help should be appreciated
Bernard.

Posted: Mon Jun 13, 2005 4:42 am
by wyred
Not sure if this will solve your problem, but you need to give control rights to IUSR_<computername> too.

Posted: Mon Jun 13, 2005 5:47 am
by bparis
it seems is not an access privilige problem: I gave full control for everybody then restart the IIs server but the file stays empty.

BP

PHPRC doesn't work

Posted: Mon Jun 13, 2005 11:52 am
by bparis
Ok,

php didn't use the path I put in PHPRC environnement variable to find my php.ini, so it uses a default configuration.
I had to define a key HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath in the register to get ok.

But why PHPRC didn't work as they written in install.txt ...??
It was in system variables.

Bernard.

Posted: Mon Jun 13, 2005 3:25 pm
by timvw
I've experienced that i needed to reboot windows to make sure the env variables are ok....