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 http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -Uvh http://dheche.fedorapeople.org/hhvm/el6/RPMS/x86_64/hhvm-release-6-1.noarch.rpm
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:
[hhvm] name=HHVM for Fedora $releasever - $basearch baseurl=http://dl.hhvm.com/fedora/$releasever/$basearch/
Install HHVM on Fedora
rpm --import http://dl.hhvm.com/conf/hhvm.gpg.key 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
[firstname.lastname@example.org:~]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