Tag Archives: apache

Installing HHVM 3.2 on a CentOS 6.7 server with Plesk

I wanted to play with HHVM a little bit to see if the speed gain is really as impressive as the benchmarks are showing. I tried this on a VPS running CentOS 6.7 and Plesk 11.5 and did run into a dependency collision using yum: Error: Package: psa-libxml-proxy-2.7.8-13032215.x86_64 (@PSA_11_5_30-dist) Requires: libboost_program_options.so.5()(64bit) Removing: boost-program-options-1.41.0-27.el6.x86_64 (@base) libboost_program_options.so.5()(64bit) Updated By: boost-program-options-1.54.0-7.el6.x86_64 (hop5) To get around this I first installed boost: wget http://www.hop5.in/yum/el6/boost-program-options-1.54.0-7.el6.x86_64.rpm rpm -ivh boost-program-options-1.54.0-7.el6.x86_64.rpm After installing boost you can install yum to install the hhvm 3.2 package, like so: cd /etc/yum.repos.d sudo wget http://www.hop5.in/yum/el6/hop5.repo yum clean all yum install hhvm To test if hhvm is working: hhvm --version This should return something like this: HipHop VM 3.2.0 (rel) Compiler: tags/HHVM-3.2.0-0-g01228273b8cf709aacbd3df1c51b1e690ecebac8 Repo schema: c52ba40f4a246d35a88f1dfc1daf959851ced8aa To use HHVM as a FastCGI handler from Apache/Nginx I first created a simple config file in /etc/hhvm (this directory should have been created installing the hhvm package). I named my config file hhvm.hdf and the content looks like this: Server { Port = 9000 Type = fastcgi FixPathInfo = true } Log { Level = Verbose UseLogFile = true Header = true File = /var/log/hhvm/error.log Access { * { File = /var/log/hhvm/access.log Format = %{X-Forwarded-For}i %l %u %t ...

(Read more...)