473,398 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

error_log not working

Hi Group,

I cannot log errors for some reason.

Situation: PHP 5.0 ISAPI on W2000 IIS 5.0

In php.ini:

error_reporting = E_ALL
log_errors = On
error_log = C:\php\myerrorlog.log
From some script:
<?
echo 8/0;
?>

But my file stays empty.

To test if I had some permissionproblem:

error_log("testerror",3,"C"\php\myerrorlog.log");

But that worked: The text "testerror" appeared in the logfile.

What else could be wrong?

TIA

Regards,
Erwin Moller
Jan 9 '06 #1
2 3054
I get exactly the same problem with PHP 4.0 and IIS6.0 on 2003 Server. I have been going round and round in circles for days but still haven't got anywhere. Sorry to not be any help (yet) but I am working on it.
Feb 9 '06 #2
wayde
1
I get exactly the same problem with PHP 4.0 and IIS6.0 on 2003 Server. I have been going round and round in circles for days but still haven't got anywhere. Sorry to not be any help (yet) but I am working on it.
It is a permissions problem. Windows Server 2003 is blocking access to the application event log for some users by default. To fix this I needed to edit the registry. This article tells you what to do:

http://support.microsoft.com/default...b;en-us;323076

Essentially you just need to change the permissions string for one key value and then it works like a charm!
Feb 10 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Martin Heuckeroth | last post by:
Hi We are working on a webservice application and are having some problems with the cookies and/or sessions. We have them working on our intranet but then its not working on the internet. We...
5
by: tshad | last post by:
I have been working with setting my drop boxes to allow double clicking to select an item. It worked fine until I made some changes. I then stripped the page down to the bare essentials to find...
8
by: jojobar | last post by:
Okay, I am trying to do is to test the webresource in 2.0 1. I created a new project with assembly name (and default assembly name) "Office". 2. I added the following to the AssemblyInfo.cs...
2
by: Don | last post by:
I'm having problems with intellisense, autocomplete, etc. suddenly not working in certain classes of a project I'm working on. All the options are set, and it all works fine for most classes, but...
9
by: MSDNAndi | last post by:
Hi, I have a set of simple webservices calls that worked fine using .NET Framework 1.0. I am calling a Java/Apache based webservices, the calling side is not able to supply a proper WSDL. ...
1
by: mydejamail | last post by:
My PHP setup is not updating the error_log, I have checked all the error logging related settings and they have all been set. The script is also crashing inexplicably. Whenever I call a specific...
4
Odisey
by: Odisey | last post by:
Hello, I am attempting to send an error_log() message to my email. I don't see any mistakes - yet it is not sending the email.... Any ideas? <?php #Script 6.2 //Flag variable...
5
by: Pseudonyme | last post by:
Dear All : Ever had an httpd error_log bigger than the httpd access log ? We are using Linux-Apache-Fedora-Httpd 2006 configuration. The PHP lines code that lead too tons of errors are : ...
5
by: August Karlstrom | last post by:
Hi, I'm looking for a function that *returns* a human readable string representation of an array rather than prints it so I can use it with the error_log procedure. Any clues? August
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.