【问题标题】:Apache 2.4 crashes when audio file is played播放音频文件时 Apache 2.4 崩溃
【发布时间】:2021-01-27 16:34:56
【问题描述】:

我维护 Moodle 3.10 和 Ubuntu 18.04(php/7.2/fpm 快速 cgi),32 GBRAM 并与 70 个并发用户一起通过内部网络进行测验。他们都可以毫无问题地参加测验和提交。今天的英语考试,我在自动播放模式下放置了一个 mp3 文件(

导致崩溃的此类事件中的 apache 错误日志:

[Wed Jan 27 08:39:16.932221 2021] [proxy_fcgi:error] [pid 6615:tid 140649221256960] (70007)The timeout specified has expired: [client 192.168.7.80:59165] AH01075: Error dispatching request to : (polling), referer: https://examle.com/mod/quiz/view.php?id=4856

在测验中播放音频或视频文件的任何方法?比如调整 php 或 apache 设置或设置媒体服务器 Kaltura 会有帮助吗?

TIA

【问题讨论】:

  • 您可能正在使用 PHP-FPM 处理 mp3 文件。仅对 .php 文件使用 PHP-FPM
  • 请在您的问题中显示 httpd.conf。
  • 在配置中加入以下内容以了解更多:LogLevel通知proxy_fcgi:trace8 core:trace8 http_module:trace8

标签: php apache moodle


【解决方案1】:

对于最新版本的 httpd 和 mod_proxy_fcgi,您只需将 timeout= 添加到 ProxyPassMatch 的末尾

对于旧版本,它有点复杂,例如:

<Proxy fcgi://127.0.0.1:9000>
ProxySet timeout=1800
</Proxy>
ProxyPassMatch ^/(.+\.php.*)$ fcgi://127.0.0.1:9000/<docroot>/$1

【讨论】:

    猜你喜欢
    • 2015-03-19
    • 1970-01-01
    • 2011-07-21
    • 2011-06-06
    • 1970-01-01
    • 2020-01-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多