How to, LNMH
LNMH = Linux + Nginx + MySQL + HHVM
Introduction HHVM is a virtual machine for Hack and PHP script language. It is an open source project and originally developed by Facebook. Installation 1) First install the Nginx apt-get update apt-get install nginx nginx-common nginx-core 2) Next, let install MySQL apt-get install mysql-server mysql-client 3) Now, install HHVM wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add - echo deb http://dl.hhvm.com/ubuntu trusty main | sudo tee /etc/apt/sources.list.d/hhvm.list apt-get update apt-get install hhvm 4) Let HHVM running on unix socket due to performance issue Edit the HHVM config file /etc/hhvm/server.ini and comment out this line ; hhvm.server.port = 9000 Add below line hhvm.server.file_socket = /var/run/hhvm/hhvm.sock Restart the HHVM service service hhvm restart 5) Edit the virtual host setting from Nginx /etc/nginx/sites-enabled/default && Add HHVM config to this file, so PHP will know how to process the PHP file request. Add below line after the document root. include hhvm.conf; Change the setting inside the hhvm.conf. Change the setting as below fastcgi_pass unix:/var/run/hhvm/hhvm.sock; Restart the Nginx service service nginx restart Original References From DigitalOcean From ComputerNYou









