3

Faceboock has just released on GitHub their new Hiphop PHP VM, please follow this link:

Do you know if it is possible to enhance Drupal performance with HipHop PHP VM?

If yes, do you have a good howto, or the different steps to make it work, with a CDN?

1
  • By the way, I tried to create the tag Hiphop, but I don't have enough points at the moment.
    – ttoine
    Commented Jul 31, 2013 at 13:01

1 Answer 1

9

At the time of writing Drupal does not work out-of-the-box with HipHop VM (1). Some people have managed to make it work with previous versions, but there isn't a simple easy option.

On php.webtutor.pl you can find a number of useful resources:

These are for an older version of Drupal 7 (7.2) and an older version of Hiphop. However the patches are still useful as a place to start. Some of the issues addressed in the patches (eg. the infinite loop caused by drupal autoload) are still current - others may or may not be, I have not investigated further myself though the article by @tvlooy suggests the PDO issues have been fixed.

The article at http://nickveenhof.be/blog/getting-drupal-7-almost-running-hhvm (on which the tests by @tvlooy was based) provides an example configuration - even though the author failed to get Drupal to run under HHVM, it gives a helpful starting point in addition to the webtutor patches.

(1) As tested with Drupal 7.22 and the latest development version of HipHop (HEAD on the master branch) as of 01/08/2013

Edit: A post made on the 12/09/13 (after this answer was written) on the HHVM blog suggests that HHVM now passes 98% of Drupal core unit tests. There has been more HHVM releases since then - a comment on the 2.2.0 release that came out a month later suggests that Drupal 7 can be installed using HHVM, though file uploading, clean URLs and php-gd do not work. I do not want to change my original answer as I have not tested this myself, however the comment (together with the 2.2.0 changelog) suggests that some of the issues, such as the autoload loop, have been fixed.

8
  • 1
    Considering that this is about as much info as is available on the subject, your answer is good. However most of it, other than the configuration, deals with an old version of hiphop that is deprecated, so it's not terribly useful.\
    – Letharion
    Commented Aug 2, 2013 at 12:51
  • 1
    While it concerns an older version of Hiphop some of the issues fixed in the patch provided by webtutor are still there in the current version (eg. the inifinte loop caused by drupal autoload). The information given here does not, as mentioned in the answer, give an out of the box solution. But it gives helpful pointers about where to start if you want to try HHVM with Drupal yourself. Commented Aug 2, 2013 at 13:19
  • And I should add that the fact that HHVM does not work with Drupal is true with the current versions of HHVM and Drupal ; this is not deprecated information. Commented Aug 2, 2013 at 13:21
  • Cool, you should add the above info to the question.
    – Letharion
    Commented Aug 2, 2013 at 14:07
  • 2
    @ttoine : it is not working as-is ; but it could be made to work with some time and effort. Commented Aug 5, 2013 at 11:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.