解決用 NFS 當 documentroot 時會當掉的方法

在 apache 的 core document 中的 EnableMMAP Directive 有提到 ,

With an NFS-mounted DocumentRoot, the httpd may crash due to a segmentation fault if a file is deleted or truncated while the httpd has it memory-mapped.

所以,

EnableMMAP Off
  • With a network-mounted DocumentRoot (e.g., NFS or SMB), the kernel may be unable to serve the network file through its own cache.

For server configurations that are vulnerable to these problems, you should disable this feature by specifying:

EnableSendfile Off

Comments are closed.

Related URL:
  1. amazon aws ami LAMP / NGINX / PHP / memcache steps
  2. 很強的 Message Broker : ActiveMQ
  3. Protected: 觀察 22:40 – 23:15 apache log 的變化
  4. debian / ubuntu 裝 oracle instant client / sqlplus / oci8 / apache2 config / steps by steps
  5. [ubuntu] apache server module 的 enable / disable
  6. apache Custom Log Formats – 好用的參數
  7. Simple Monster Tracking System – step by step
  8. Protected: apache mod_rewrite , rewrite , rewriterule 真難搞
  9. 好用的 iptables rules – 限制 client 連 http port 的次數
  10. Monster LAMP Pack Lite – ver.317