Is HHVM or PHP5 Zend running? Is HHVM or PHP5 Zend running? apache apache

Is HHVM or PHP5 Zend running?


To make sure that you are in fact running HHVM, run the following command:

phpinfo();

It should produce HipHop as the output, instead of the normal php info.

To check for it programmatically, you can use the following (also mentioned here):

if (defined('HHVM_VERSION')) {    echo "ruuning HHVM";}


As correctly noticed (thanks @Petah), my FastCGI config was wrong.

I changed it to the snippet below (from here: http://www.mediawiki.org/wiki/HHVM/Vagrant) and everything is working! (add it to your apache2.conf or httpd.conf file)

<IfModule mod_fastcgi.c>    Alias /hhvm.fastcgi /var/www/fastcgi/hhvm.fastcgi    FastCGIExternalServer /var/www/fastcgi/hhvm.fastcgi -host 127.0.0.1:9000 -pass-header Authorization -idle-timeout 300    <Directory "/var/www/fastcgi">        <Files "hhvm.fastcgi">            Order deny,allow        </Files>    </Directory>    AddHandler hhvm-hack-extension .hh    AddHandler hhvm-php-extension .php    Action hhvm-hack-extension /hhvm.fastcgi virtual    Action hhvm-php-extension /hhvm.fastcgi virtual</IfModule>