HHVM 随机停止运行

HHVM 随机停止运行

的背景

最近我改变了php5-fpm主意hhvm,这就是他们所说的“圣洁的表现格栅”

我已经按照以下说明安装了hhvm删除 php5-fpm(真的需要后备吗??):https://bjornjohansen.no/hhvm-with-fallback-to-php

我在这个 VPS 中有多个网站(域名),其中大多数是 wordpress + nginx + W3TC + Ubuntu 12.0.4p + MariaDB 10ish

主要问题

自从更改后,随机hhvm突然停止运行。不知道为什么,所以我决定按照教程的最后一步进行安装ps-watcher和检测服务是否未运行,并每 5 秒检查一次以重新启动它。

配置

hhvm.conf:

location ~ \.(hh|php)$ {
    proxy_intercept_errors on;
    #error_page 502=@fallback;

    try_files $uri =404;

    fastcgi_split_path_info ^(.+\.php)(/.+)$;

    fastcgi_keep_conn on;

    fastcgi_buffer_size 128k;
    fastcgi_buffers 256 16k;
    fastcgi_busy_buffers_size 256k;
    fastcgi_temp_file_write_size 256k;

    include         fastcgi_params;

    fastcgi_index   index.php;
    fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_param   SERVER_NAME $host;
    fastcgi_pass    127.0.0.1:9000;
}

# location @fallback {

    #     try_files $uri =404;

    #     fastcgi_split_path_info ^(.+\.php)(/.+)$;

    #     include         fastcgi_params;
    #     fastcgi_index   index.php;
    #     fastcgi_param   SCRIPT_FILENAME $document_root$fastcgi_script_name;
    #     fastcgi_param   SERVER_NAME $host;
    #     fastcgi_pass    unix:/var/run/php5-fpm.sock;

# }

/etc/hhvm/server.ini

; php options

pid = /var/run/hhvm/pid

; hhvm specific

;hhvm.server.file_socket = /var/run/hhvm/hhvm.sock
hhvm.server.port = 9000
hhvm.server.type = fastcgi
hhvm.server.default_document = index.php
hhvm.log.use_log_file = true
hhvm.log.file = /var/log/hhvm/error.log
hhvm.repo.central.path = /var/run/hhvm/hhvm.hhbc

/etc/hhvm/php.ini

; php options
session.save_handler = files
session.save_path = /var/lib/php5
session.gc_maxlifetime = 1440

; hhvm specific
hhvm.log.level = Warning
hhvm.log.always_log_unhandled_exceptions = true
hhvm.log.runtime_error_reporting_level = 8191
hhvm.mysql.typed_results = false
hhvm.log.header = true
hhvm.log.natives_stack_trace = true

; Customs

max_execution_time = 300
max_input_time = 60
memory_limit = 128M
post_max_size = 12M
upload_max_filesize = 12M

tail /var/log/hhvm/error.log:提出这个警告,W3TC 开发人员表示将在下一版本中修复该问题(他们在 2 个版本之前就说过这个:P)

[Tue Jan  6 23:27:30 2015] [hphp] [3730:7faf42fff700:1:000006] [] \nWarning: Parameter 1 to W3_Plugin_TotalCache::ob_callback() expected to be a reference, value given in /sites/public/wp-includes/functions.php on line 3269
[Tue Jan  6 23:27:40 2015] [hphp] [3810:7f99bbfff700:1:000001] [] \nWarning: Parameter 1 to W3_Plugin_TotalCache::ob_callback() expected to be a reference, value given in /sites/public/wp-includes/functions.php on line 3269

以及一堆与模板不兼容有关的 Wordpress 问题。

任何可以帮助我发现正在发生的事情的建议。

谢谢!

答案1

嗯,这个原因似乎是hhvm不接受多个虚拟主机。

https://github.com/facebook/hhvm/issues/885

相关内容