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

Chicago VPS: $6.95/month/2GB RAM/50GB SSD space/2TB bandwidth/KVM/New York

ChicagoVPS and HudsonValleyHost were both acquire...

Deploy fixed domain names for dynamic IP VPS/NAT VPS using DNSPod and dns.he.net

Previously, I introduced using CloudFlare and Ali...

Vultr: $5/month/1 CPU/768MB memory/15GB SSD space/1TB traffic/KVM/Japan

Vultr is a newly established hosting provider tha...

VIrmach 2-core @AMD RYZEN 9 5900X 2.5GB RAM Japan KVM VPS Review

Details : VirMach: $25/year/768MB memory/250GB sp...