5
我試圖使用Memcached的作爲Symfony的1.4會話HHVM 3.1.0Symfony的1.4 HHVM與memcached的不工作
下運行的會話,但我似乎得到這個錯誤:
\nFatal error: No storage module chosen - failed to initialize session in /sites/SecureAccountsServices/lib/vendor/symfony/lib/storage/sfSessionStorage.class.php on line 93
下面是HHVM我的php.ini文件:
; php options
pid = /var/run/hhvm/pid
display_startup_errors = On
error_reporting = E_ALL
display_errors = On
session.save_handler = memcache
session.save_path = "tcp://10.32.32.161:11211,tcp://10.32.32.162:11211"
; hhvm specific
hhvm.server.port = 9000
hhvm.server.type = fastcgi
hhvm.server.default_document = index.php
hvvm.server.source_root = /sites/SecureAccountsServices/oauth
hhvm.eval.enable_xhp = true
hhvm.eval.allow_hhas = true
hhvm.eval.enable_hip_hop_syntax=true
hhvm.eval.enable_zend_compat = true
hhvm.log.level = Warning
hhvm.log.always_log_unhandled_exceptions = true
hhvm.log.runtime_error_reporting_level = 8191
hhvm.log.use_log_file = true
hhvm.log.file = /var/log/hhvm/error.log
hhvm.repo.central.path = /var/run/hhvm/hhvm.hhbc
; hhvm debug
hhvm.error_handling.enable_hip_hop_errors = true
hhvm.debug.full_backtrace = true
hhvm.debug.server_stack_trace = true
hhvm.debug.server_error_message = true
hhvm.debug.translate_source = true
我不知道爲什麼它不保存到memcached的,因爲它應該包括內存緩存模塊HHVM 3.1.0內核的一部分。
是否有東西需要從Symfony方面改變?
當我從php.ini中刪除session.save_handler和session.save_path時,它正在工作並將會話文件保存在/ tmp文件夾下。
我假設你有內存緩存模塊正確安裝PHP ?小心發佈你的phpinfo輸出來確認? –