php7 error log,PHP: error_log - Manual

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值