Running Yii2 on HHVM
HipHop Virtual Machine (HHVM) is a process virtual machine from Facebook based on just-in-time (JIT) compilation. HHVM transforms PHP code into intermediate HipHop bytecode (HHBC) and dynamically translates PHP code into machine code, which will be optimized and natively executed.
Getting ready
Create a new yii2-app-basic
application using the Composer package manager, as described in the official guide at http://www.yiiframework.com/doc-2.0/guidestart-installation.html.
How to do it…
Follow these steps to run Yii on HHVM:
Install the Apache2 or Nginx web server.
Follow the guide for installing HHVM on Linux or Mac available at https://docs.hhvm.com/hhvm/installation/introduction. For example, on Ubuntu you must run the following commands:
sudo apt-get install software-properties-common sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0x5a16e7281be7a449 sudo add-apt-repository "deb http://dl.hhvm.com/ubuntu $(lsb_release -sc) main" sudo apt-get update...