php5 and IIS : problems with error reporting

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
bparis
Forum Newbie
Posts: 3
Joined: Mon Jun 13, 2005 3:15 am

php5 and IIS : problems with error reporting

Post 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.
wyred
Forum Commoner
Posts: 86
Joined: Mon Dec 20, 2004 1:59 am
Location: Singapore

Post by wyred »

Not sure if this will solve your problem, but you need to give control rights to IUSR_<computername> too.
bparis
Forum Newbie
Posts: 3
Joined: Mon Jun 13, 2005 3:15 am

Post 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
bparis
Forum Newbie
Posts: 3
Joined: Mon Jun 13, 2005 3:15 am

PHPRC doesn't work

Post 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.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

I've experienced that i needed to reboot windows to make sure the env variables are ok....
Post Reply