Windows IIS(8.5.96)服务器崩溃的WordPress多站点 - PHP 5.6 wincache.dll 1.3.7.0

Windows IIS(8.5.96)服务器崩溃的WordPress多站点 -  PHP 5.6 wincache.dll 1.3.7.0

问题描述:

I'm running a WordPress multisite(4.5.3) on Windows IIS (8.5.96).

Every now and then the server crashes with a Wincache error. I have updated both PHP and Wincache components on the server. Because at the moment I have to observe the server 24/7.

Faulting application name: php-cgi.exe, version: 5.6.22.0,time stamp: 0x57468660
Faulting module name: php_wincache.dll,version: 1.3.7.10, time stamp: 0x56ccce50
Exception code: 0xc0000005
Fault offset: 0x00015247
Faulting process id: 0x8cc
Faulting application start time: 0x01d1f8244e589ffc
Faulting application path: C:\Program Files (x86)\PHP\v5.6\php-cgi.exe
Faulting module path: C:\Program Files (x86)\PHP\v5.6\ext\php_wincache.dll
Report Id: 7fbf700b-6418-11e6-80cc-005056b77a12
Faulting package full name:
Faulting package-relative application ID:

Server:

-Windows Server 2012 R2 Standard

-Installed memory Ram 4 Gb

-Php-cgi.exe   (5.6.22.0)

-Wincache.dll   (1.3.7.10)

IIS:

-IIS 8.5.96

-Php 5.6

IIS Setup:

-Idle timeout 300

-Activity timeout 300

-Request timeout 300

-Application pool > Recycling 20 min.

-Application pool > Idle time-out 18 min.

Wordpress and plugins used:

-Wp multisite 4.5.3

-Atom Linkedin (1.0.0)

-Contact form 7 (4.3.1)

-Custom Facebook Feed (2.3.10)

-Redirection (2.4.3)

-Rename wp-login (2.5.5)

-Revolution Slider (5.0.6)

-W3 Total Cache (0.9.4.1)

-Wordfence Security (6.1.14)

-WordPress MU Domain Mapping (0.5.5.1)

-WP-Mail-SMTP (0.9.5)

-Yoast SEO (3.0.7)

Is it a server issue or perhaps a misconfiguration? Or is it a php, WordPress or any other software issue?

我正在Windows IIS(8.5.96)上运行WordPress多站点(4.5.3)。 p >

服务器时不时会出现Wincache错误。 我已在服务器上更新了PHP和Wincache组件。 因为目前我必须全天候观察服务器。 p>

 错误应用程序名称:php-cgi.exe,版本:5.6.22.0,时间戳:0x57468660 
Faulting 模块名称:php_wincache.dll,版本:1.3.7.10,时间戳:0x56ccce50 
异常代码:0xc0000005 
错误偏移量:0x00015247 
Faulting进程ID:0x8cc 
Faulting应用程序启动时间:0x01d1f8244e589ffc 
Faulting应用程序路径:C:\ Program Files  (x86)\ PHP \ v5.6 \ php-cgi.exe 
Faulting模块路径:C:\ Program Files(x86)\ PHP \ v5.6 \ ext \ php_wincache.dll 
报告ID:7fbf700b-6418-11e6-  80cc-005056b77a12 
Faulting软件包全名:
Faulting软件包相关应用程序ID:
  code>  pre> 
 
 

服务器: strong> p> \ n

  -Windows Server 2012 R2 Standard 
 
  - 已安装的内存Ram 4 Gb 
 
-n-Php-cgi.exe(5.6.22.0)
 
-n-Wincache.dll(1.3.7.10  )
  code>  pre> 
 
 

IIS: strong> p>

  -IIS 8.5.96 
 
  -Php 5.6 
  code>  pre> 
 
 

IIS设置: strong> p>

  -Idle timeout 300 
  \  n活动超时300 
 
-请求超时300 
 
-应用程序池> 回收20分钟。
 
-应用程序池> 空闲超时18分钟。
  code>  pre> 
 
 

使用的Wordpress和插件: strong> p>

   -Wp multisite 4.5.3 
 
-Atom Linkedin(1.0.0)
 
-联系表格7(4.3.1)
 
-自定义Facebook Feed(2.3.10)
 
-重定向 (2.4.3)
 
-重命名wp-login(2.5.5)
 
-n-Revolution Slider(5.0.6)
 
-W3 Total Cache(0.9.4.1)
 
-wordfence 安全性(6.1.14)
 
-n-WordPress MU域映射(0.5.5.1)
 
-WP-Mail-SMTP(0.9.5)
 
-n-Yoast SEO(3.0.7)
   pre> 
 
 

是服务器问题还是配置错误? 或者它是一个PHP,WordPress或任何其他软件问题? p> div>

Not sure whether this should be an answer or an comment, but here goes.

The exception code 0xc0000005 often means a shared memory access violation. At various places you find information about adding

wincache.namesalt=0x200000

to your configuration. This is a shared memory address to store objects in.

On the other hand: I'm using the same WinCache version in my environment, but it isn't used much (shared hosting). The clients use OPCache, and with OPCache the same exception code occurs frequently. It became less when I added

opcache.mmap_base=0x20000000

to our PHP.ini configuration, but it still isn't over.

The shared memory violation does not happen with PHP 7. If you can, switch to PHP 7.

Some reference links:

https://secure.php.net/manual/en/opcache.configuration.php#ini.opcache.mmap-base , https://www.apachelounge.com/viewtopic.php?p=29838#29838 , https://secure.php.net/manual/en/wincache.configuration.php#ini.wincache.namesalt , https://www.saotn.org/php-wincache-on-iis/