note 93164 added to function.error-log

From: Date: Wed, 26 Aug 2009 17:22:35 +0000
Subject: note 93164 added to function.error-log
Groups: php.notes 
Request: Send a blank email to php-notes+get-159903@lists.php.net to get a copy of this message
After scouring the internet for getting event logging to work in syslog on Windows 2003, I found the following from this post and was able to successfully get Windows Event Viewer to log PHP errors/notices: http://forums.iis.net/p/1159662/1912015.aspx#1913338 1. Copy the PHP 5 binaries to "C:\php". 2. Right-click My Computer and select Properties to bring up the Computer Properties dialog. Switch to the Advanced tab and click Environment Variables. Find the system environment variable PATH, edit it and add ";C:\php" (without the quotes) to the end. 3. Make sure that the configuration file "php.ini" resides in the directory "C:\php" and contains the correct path settings. 4. DELETE any old "php.ini" files from "C:\WINDOWS" and other directories. 5. Open REGEDIT, navigate to the key "HKLM\SOFTWARE\PHP" and DELETE the string value "IniFilePath" from there. It is outdated and no longer necessary! 6. Modify NTFS security permissions of the directory "C:\php" to give Read and Execute permissions to (1) the IIS Guest Account and (2) the group IIS_WPG. 7. Modify NTFS security permissions of the directories "C:\php\session" and "C:\php\upload" to give additional Modify permissions to (1) the IIS Guest Account and (2) the group IIS_WPG. 8. Navigate to the registry key "HKLM\SYSTEM\CurrentControlSet\Services\Eventlog \Application" and edit the value "CustomSD" there. Find the substring "(D;;0xf0007;;;BG)" which Denies access to the application event log for Builtin Guest accounts (like the IIS Web User account) and replace this substring with "(A;;0x3;;;BG)" which allows read and write access. Please pay attention to leave the rest of the security string intact. Damaging this value can have dangerous effects! 9. Create or update the registry key "HKLM\SYSTEM\CurrentControlSet\Services\Eventlog\Application\ PHP-5.2.0" (adapt the last to your version part if necessary) with the following values: * "EventMessageFile" (REG_EXPAND_SZ) = "C:\php\php5ts.dll" * "TypesSupported" (REG_DWORD) = 7 ---- Server IP: 209.41.74.194 Probable Submitter: 216.230.87.2 ---- Manual Page -- http://www.php.net/manual/en/function.error-log.php Edit -- https://master.php.net/note/edit/93164 Del: integrated -- https://master.php.net/note/delete/93164/integrated Del: useless -- https://master.php.net/note/delete/93164/useless Del: bad code -- https://master.php.net/note/delete/93164/bad+code Del: spam -- https://master.php.net/note/delete/93164/spam Del: non-english -- https://master.php.net/note/delete/93164/non-english Del: in docs -- https://master.php.net/note/delete/93164/in+docs Del: other reasons-- https://master.php.net/note/delete/93164 Reject -- https://master.php.net/note/reject/93164 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#159903) next »