HHVM, Drupal and CiviCRM


Notes while I work on HHVM with a Drupal and CiviCRM site.

  1. A default HHVM FastCGI installation with Apache works perfectly with Drupal and CiviCRM.

  2. Running HHVM in server mode does not work out of the box.

1. Default HHVM install as FastCGI

Add ProxyPassMatch to the Drupal virtual host configuration and restart Apache.
Site should work normally with one useful side effect - slow SQL queries are logged to the HHVM error log, /var/log/hhvm/error.log.

2. HHVM in server mode

Basic example of starting HHVM in server mode:

$ cd /var/www/vhosts/hhvm-demo.example.org
$ hhvm -m server -d hhvm.server.type=proxygen -d hhvm.server.port=3160 -d hhvm.server.source_root=./

Browsing to http://server:3160 will bring up the Drupal login page but login attempts fail with 404 error.

Comment on this article using form below. Requires email login only for authentication. HTML forbidden, Markdown only.