One popular alternative to PHP of the LAMP stack is HHVM. HHVM is an open-source virtual machine designed for executing programs and applications written in PHP. You can use HHVM in place of PHP of the LAMP stack to achieve superior performance. This brief tutorial is going to show students and new users how to install HHVM on Ubuntu systems to run WordPress and other content management systems based on PHP. To get started with installing HHVM on Ubuntu, follow the guide below.

Add HHVM repository to Ubuntu

First, run the commands below to download the repository key on Ubuntu. Then run the commands below to add its repository to the Ubuntu system. Doing the above step will get the application ready to be installed on Ubuntu.

Install HHVM

Now that the repository and key have been added to Ubuntu, run the commands below to install HHVM After installing hhvm, the commands below can be used to stop, start and enable hhvm to always start up when the server boots. Next, run the commands below to make HHVM answer all PHP calls even if php-cli is installed. In some cases, php-cli may conflict with HHVM. After running the commands above, HHVM should be installed and ready to use. To test the HHVM installation, run the commands below. To view the test from your browser, you must have Nginx or Apache2 installed. When you browse your server followed by info.php, you should see the test page with HHVM info. Enjoy!~ You may also like the post below: