CentOS 6 64-bit installation of HHvm, Apache 2.4

CentOS 6 64-bit installation of HHvm, Apache 2.4

CentOS 6 only.

HHVM is a powerful website building environment that can be used to replace PHP. It comes from the Facebook team. It is a PHP JIT (Just-In-Time) compiler that has the advantages of generating fast code and just-in-time compilation. Practice has proved that HHVM can significantly improve the execution speed of PHP and save a lot of server resources.

Install as follows:
1. Download the file
cd /etc/yum.repos.d
wget http://repos.fedorapeople.org/repos/jkaluza/httpd24/epel-httpd24.repo
wget http://www.hop5.in/yum/el6/hop5.repo

2. Install liblcms2 64
wget http://pkgrepo.linuxtech.net/el6/release/x86_64/liblcms2-2.4-1.el6.x86_64.rpm
yum -y install liblcms2-2.4-1.el6.x86_64.rpm

3. Download libmcrypt, mcrypt, mhash
mcrypt-2.6.8.tar.gz, libmcrypt-2.5.8.tar.gz, mhash-0.9.9.9.tar.gz
wget http://iweb.dl.sourceforge.net/project/mcrypt/MCrypt/2.6.8/mcrypt-2.6.8.tar.gz
wget http://hivelocity.dl.sourceforge.net/project/mcrypt/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz
wget http://softlayer-dal.dl.sourceforge.net/project/mhash/mhash/0.9.9.9/mhash-0.9.9.9.tar.gz

4. Install and download libmcrypt, mcrypt, mhash
yum install glibc-headers
yum install gcc-c++

Or (it is recommended to install using the following command)

CentOS
sudo yum groupinstall 'Development Tools'

Under Ubuntu
sudo apt-get install build-essential
When compiling with GCC, remember to add
-l stdc++

Install Libmcrypt first
tar -zxvf libmcrypt-2.5.8.tar.gz
cd libmcrypt-2.5.8
./configure
make
make install
Note: libmcript is installed in /usr/local by default

Install mhash
tar -zxvf mhash-0.9.9.9.tar.gz
cd mhash-0.9.9.9
./configure
make
make install

Install mcrypt
tar -zxvf mcrypt-2.6.8.tar.gz
cd mcrypt-2.6.8
LD_LIBRARY_PATH=/usr/local/lib ./configure
make
make install

5. Installation
yum install httpd24-httpd httpd24-httpd-devel httpd24-mod_ssl hhvm
yum install hhvm

Then all the way to Y

The Apache2.4 configuration files installed in this way are all in /opt/rh/httpd24/root/etc/httpd/.

6. Start HHVM:
/usr/bin/hhvm –mode server -vServer.Port=8080 -vServer.Type=fastcgi &

<<:  PupaVPS: $8/year/128MB RAM/7GB storage/500GB bandwidth/OpenVZ

>>:  dirtcheap: $12.99/year/2 cores/128MB RAM/2GB SSD/250GB bandwidth/OpenVZ

Recommend

Hosting: $12.5/year/256MB/10GB space/500GB traffic/KVM/Los Angeles

Hostigation, a 10-year-old brand. Now we have lau...

Inleed: $21/month/8GB RAM/100GB SSD space/3TB bandwidth/KVM/Sweden

Inleed, a Swedish business, was founded in 2008 a...

CycloneServers: $15/year/512MB memory/15GB space/1TB bandwidth/KVM/Los Angeles

CycloneServers, which has been introduced several...

All-in-one installation script for BBR/BBR2/BBR Plus/ Ruisu etc. under Linux

BBR, BBR2, BBR Plus, Ruisu, etc. can be installed...

free-www: $0.8/month/256MB RAM/5GB SSD space/unlimited traffic/KVM/Siberia

free-www, a Russian hosting provider, provides va...

BoltVM: $20/year/1GB memory/100GB space/1000GB traffic/openvz

BoltVM is pretty good, the SSD hard drive gives 5...

Hostigation 256MB RAM KVM VPS Los Angeles Simple Review

Details: Hostigation: $12.5/year/256MB/10GB space...