Install HHVM with Nginx in Ubuntu 14.04

In this post, I will be showing you how to install HHVM (HipHop Virtual Machine – a facebook open-source virtual machine for running php and HACK) with Nginx (A light weight , open-source, high-performance HTTP server for serving static assets) on Ubuntu 14.04.

Step 1: Install latest Nginx

sudo apt-add-repository ppa:nginx/development

sudo apt-get update

sudo apt-get install nginx

sudo service nginx start

– Confirm Nginx is running by browsing ‘localhost’

Step 2: Install HHVM

wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add -

echo deb http://dl.hhvm.com/ubuntu trusty main | sudo tee /etc/apt/sources.list.d/hhvm.list

sudo apt-get update

sudo apt-get install hhvm

sudo /etc/init.d/hhvm start

– Set hhvm to start automatically on boot

sudo update-rc.d hhvm defaults

– Now you can load your website

 
comments powered by Disqus