Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Thank you!! I love this tutorial as I’m building a droplet using it.
Do you have a proper guideline to automatically restart hhvm whenever it crashes down? I’ve set fallback plan to php5-fpm whenever HHVM crashes but have no way to automatically restart it.
I used the ps-watcher method but it doesn’t work for some reason. I’ve set everything up and started it but it doesn’t restart HHVM.
I’ve translated it into Chinese: https://bohan.life/how-to-install-hhvm-with-nginx-on-ubuntu-14-04/
Hey I got the following error when I tried longer route as my nginx config file was modified. tail /var/log/nginx/error.log
[error] 22077#0: *1 "/usr/share/nginx/html/index.html" is not found (2: No such file or directory), client: 127.0.0.1, server: localhost, request: "GET /HTTP/1.1", host: "127.0.0.1"
I realized that the server was not listening to the IP, probably this was due to IPv6 implementation.
I solved it by adding the following line in /etc/hhvm/server.ini
hhvm.server.ip = 127.0.0.1
after setting hhvm to listen on sockets , i keep getting error 502 for info.php and the log file shows
*63 connect() to unix:/var/run/hhvm/hhvm.sock failed (2: No such file or directory) while connecting to upstream,
Hi, I’ve configured everything like described in the article, but I’m struggling with 502 error now.
hhvm service is working still it didn’t fell down. However if I restart hhvm I have same situation as in 3-4 step.
I have already removed php5-fpm, so it’s not because of it. Also, I’ve checked that hhvm is running on 9000 port.
In log file I have just warnings about “conflicting server name … on 0.0.0.0:80, ignored” So it’s not related to hhvm.
How can I fix it?
With HHVM version 3.13.1 had to point hhvm.server.file_socket to /var/run/hhvm/sock and NOT /var/run/hhvm/hhvm.sock
hhvm.server.file_socket=/var/run/hhvm/sock
Otherwise I was getting connect() to unix:/var/run/hhvm/hhvm.sock failed (2: No such file or directory) This post should probably reflect that.
Thanks for the tutorial! However, I need to replace one more line in /etc/nginx/sites-enabled/default
sudo vim /etc/nginx/sites-enabled/default
Replace
fastcgi_pass 127.0.0.1:9000;
with
fastcgi_pass unix:/var/run/hhvm/hhvm.sock;
Otherwise, I’ll get this error:
2016/07/15 09:15:30 [error] 27830#0: *7 connect() failed (111: Connection refused) while connecting to upstream, client: xxx.xx.xx.xxx, server: localhost, request: “GET /info.php HTTP/1.1”, upstream: “fastcgi://127.0.0.1:9000”, host: “xxx.xxx.xxx.xxx”