|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2012-01-18 10:44 UTC] test1 at breakin dot in
Description: ------------ On a server where everything was working as expected with PHP 5.3.6, I upgraded PHP to 5.3.9 (latest official release, non-thread-safe). I run WordPress on IIS 7.5 / Windows Server 2008 R2. All versions of PHP after 5.3.7 are exhibiting problems with some WordPress plugins, where 500 errors are thrown and no PHP log is generated, when using Windows Authentication to protect sites (anonymous authentication disabled). If I roll back to PHP 5.3.6 or earlier, the problems resolve. If I turn off Windows Authentication while using PHP 5.3.7 or newer, the sites and plugins work as expected. The problem is the specific combination of Windows Authentication, some WordPress plugins, and PHP 5.3.7 or newer. An example plugin problem: I get 500 errors when using WP Super Cache with WordPress on PHP 5.3.7 or newer. If I roll PHP back to 5.3.6, the plugin again works as expected. Test script: --------------- http://wordpress.org/extend/plugins/wp-super-cache/ Expected result: ---------------- I expect the WordPress plugin to work as designed. Actual result: -------------- I receive a 500 error when using the WordPress plugin on a site with Windows Authentication running PHP 5.3.7 or newer. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 23:00:02 2025 UTC |
Thanks so much for your quick response! The WordPress installations in question are set up on the following: Windows Server 2008 R2 / IIS 7.5 PHP 5.3.9 running via FastCGI (php-cgi.exe) URL ReWrite from IIS.net WinCache extension for PHP from IIS.net The following non-default settings are in php.ini: open_basedir = "c:\inetpub" expose_php = Off max_execution_time = 300 error_log = php_errors.log extension_dir = "ext" cgi.force_redirect = 0 cgi.fix_pathinfo=1 fastcgi.impersonate = 1; fastcgi.logging = 0 upload_tmp_dir = "c:/inetpub/wwwroot/sites/_phptemp/" upload_max_filesize = 8M allow_url_fopen = Off date.timezone = America/Chicago SMTP = localhost smtp_port = 9909 session.save_path = "c:\inetpub\wwwroot\sites\_phpsessions" extension=php_curl.dll extension=php_gd2.dll extension=php_mbstring.dll extension=php_mysql.dll extension=php_pdo_mysql.dll extension=php_wincache.dll Each site has a unique Application Pool. The sites are set up so that, if Anonymous Authentication were allowed, all users would appear as the site's Application Pool identity. In this case, the plugins work with no problems, as expected. However, when Windows Authentication is turned on and Anonymous Authentication is turned off, that's when the 500 errors occur. In this case, when using SysInternals Process Monitor, it looks like some requests are being made under the authenticated user's identity, and some are being made under the Application Pool identity. So, the scenarios: - If PHP 5.3.6 or older, WordPress and plugins work as expected with any authentication setting. - If PHP 5.3.7 or newer, WP and plugins work as expected with Anonymous Authentication only. - If PHP 5.3.7 or newer, WP and plugins fail with 500 errors with Windows Authentication.