I'm trying to install HHVM on Debian 7 by prebuilt package. I've another server with the same configuration and it's working but in one of the servers HHVM FastCGI refuses the connection
It's /var/log/nginx/error.log
2014/11/25 23:24:10 [error] 422#0: *39 connect() failed (111: Connection refused) while connecting to upstream, client: 213.128.95.22, server: , request: "GET /api/v2/checkaccess HTTP/1.1", upstream: "fastcgi://127.0.0.1:9000", host: "77.75.35.140"
I'm sure that HHVM daemon is working and listening 9000. port.
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
hhvm 12192 www-data 16u IPv6 792971 0t0 TCP *:9000 (LISTEN)
But also I cannot connect with telnet
root@server:/home/itusozlukcom# telnet 127.0.0.1 9000
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
I'm sure that there's no problem with the code because the same code works in another server and in this server the code works by HHVM CLI.
HHVM error.log is empty.
What can be the problem?
I just realized the problem by myself.
HHVM with its default setting without specifying the IP to listen, was only listening ipv6 addresses. Because of that i could connect with localhost but not with 127.0.0.1
Specifying the IP by hhvm.server.ip = 127.0.0.1 solved the problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With