HHVM via Apache mod_fastcgi on debian

I was able to quite easily get facebook hhvm, working with pre-built debian packages, and compile it, and then run it as a proxy for Apache. The problem with setting up the proxy server is that I cannot get response headers other than the http 200 status code, for example 304. This is not a proxy configuration for apache, but something with respect to hhvm and apache, or even hhvm.

In any case, HHVM officially stopped supporting the stand-alone server, and they switch to fastcgi, and since Debian runs on all of our servers, I do not have access to mod_proxy_fastcgi without compiling it (the only backups I found apache 2.4, unfortunately, does not support mod_proxy_fastcgi).

So, I'm currently trying to get HHVM to work on the old mod_fastcgi with apache 2.2. But currently I get the message "connect () failed" in the apache error log, and hhvm is listening:::1080

An important part of my apache configuration is

RemoveHandler application/x-httpd-php

FastCgiExternalServer /home/www/hhvm/hostname/htdocs/php5.fcgi -flush -host ip6-localhost:1080
AddType application/x-hhtpd-fastphp5 .php
Action application/x-httpd-fastphp5 /php5.fcgi
Alias /php5.fcgi /home/www/hhvm/hostname/htdocs/php5.fcgi

netstat also lists hhvm as listening: 1080, and I can connect to it via telnet

Any ideas on what I need to change for it to work?

+4
source share
1 answer

Looks like a problem with the IP6 port. Give it a try \[ip6-localhost\]:1080. Not sure if this has side effects in Apache.

How do ports work with IPv6?

0
source

All Articles