Sample Header Ad - 728x90

How do I configure UNIX socket in nginx/HHVM?

2 votes
1 answer
11821 views
So far this is what I've done: $ less /etc/nginx/hhvm.conf location ~ \.(hh|php)$ { fastcgi_pass unix:/var/run/hhvm/sock; include fastcgi_params; } $ less /etc/hhvm/server.ini ; php options pid = /var/run/hhvm/pid ; hhvm specific hhvm.server.file_socket = /var/run/hhvm/sock 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 It worked perfectly well with proper TCP port configuration, but replacing it with UNIX socket configuration results in same nginx error as a port misconfiguration.
Asked by Oxwivi (1792 rep)
Oct 29, 2015, 04:39 PM
Last activity: Mar 9, 2016, 11:06 PM