IIS 5 & IIS 6
PHP error logs with fastCGI?
Last post May 17, 2011 12:26 PM by HCamper
May 17, 2011 09:39 AM|z_michl|LINK
Is there a known issue with php error logging and fcgi? If I enable error logging to a logfile in php.ini, php wont work anymore. Users a receiving server errors in their browsers then. The logfiles is generated, but it' empty. I've granted write permissions
for everyone on the logfile, just to ensure that its no access-rights related problem, but it still wont work...
Maybe anyone has already got this to work?
May 17, 2011 12:26 PM|HCamper|LINK
The FastCGI and PHP Engines have been testing for IIS Servers
the issues and problems are related to how the php.ini and FastCGI configuration and type of Production or Developer Environments.
Youu can use the PHP manual as a guide for proper security and still provide proper User Experience for your Web Site and IIS Server.
You can find information http://learn.iis.net/page.aspx/248/configuring-the-fastcgi-extension-for-iis-60/ for FastCGI configuration.
FYI: If you do not have execution (code) or configuration errors the php_error.log is not created.
The first problem for errors and PHP installation is verification that PHP
can execute scripts
at IIS Server and at Command prompt with no errors for Extensions or php.ini settings.
The second problem comes from where the php_error.log file is located you need to set php.ini
to use a location other than the "Default" and then apply selective permissions to that location.
You can create a directory in the Windows System to put PHP Logs / Sessions
example: C:\Program Files\PHP\Temp\Logs\ and C:\Program Files\PHP\Temp\Sessions and modify php.ini
to use the selected folders then apply the correct permissions for Accounts and Users.
The third problem is with with incorrect permissions settings for Built-In Accounts and Users.
The most common problem is not having added Built-In Users and Accounts to have proper access
to the C:\Windows\Temp folders for read,execute,list and special permissions of write.
Summary the problems with logging are not with the PHP Engine or FastCGI extension but working
on proper configuration and settings.