Tips / Nginx

How to install HHVM on CentOS 6.x / Fedora 20


HHVM is a new php technology that has been growing a lot since Facebook engineers implemented it on their servers. Basically, it’s an open source high performance PHP server. It is compatible with the top 20 Github frameworks and can give your server and pages a really big performance boost.

On this post I will explain How to install HHMV on CentOS 6.x and Fedora 20, the most popular RHEL based distros. Let’s begin.

Install EPEL repo and configure the HHVM repo

rpm -Uvh
rpm -Uvh

Installing HHVM on CentOS 6.x

yum install hhvm

If that repo doesn’t work for you, check out an alternative repo called Hop5 (which are unofficial HHVM packages but it can work for you).

Installing HHVM on Fedora 20

Pre-built packages for Fedora are working perfectly and can be installed in this way:

Create a hhvm.repo file

nano -w /etc/yum.repos.d/hhvm.repo

Add this content inside:

name=HHVM for Fedora $releasever - $basearch

Install HHVM on Fedora

rpm --import
yum install hhvm

Start HHVM service

service hhvm start

Test if HHVM is working using netstat

netstat -plunt | grep hhvm

You should see the output of HHVM running at port 9000

[]netstat -plunt | grep hhvm
tcp 0 0 :::9000 :::* LISTEN 18751/hhvm

You are ready to start working with HHVM to serve your PHP and Hack apps.

If you need more information check out the official HHVM documentation

Popular search terms:

  • centos hhvm
  • hhvm centos 6 repo
  • how to install hhvm on centos 6
  • install epel on fedora 20

Esteban Borges

Linux Geek, Webperf Addict, Nginx Fan. CTO @Infranetworking

  • Waqas

    My hhvm wont start and I get this error “Starting HHVM: Log file not specified under daemon mode.nn”