Page 1 of 1

HHVM instead of PHP5

Posted: Mon Sep 15, 2014 10:48 am
by nelblack
Hi,

Have anyone success to use HHVM instead of PHP5 ?

Re: HHVM instead of PHP5

Posted: Fri Oct 31, 2014 1:30 pm
by ludalabs
I have.

Follow one of these installations:
https://github.com/facebook/hhvm/wiki/P ... s-for-HHVM

After you installed hhvm run:
/usr/share/hhvm/install_fastcgi.sh

After you executed the above command edit the file:
/usr/local/vesta/data/templates/web/nginx/default.tpl

And add above the:

Code: Select all

location / {
        proxy_pass      http://%ip%:%web_port%;

the following code:

Code: Select all

    location ~ \.(hh|php)$ {
        fastcgi_keep_conn on;
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME %docroot%$fastcgi_script_name;
        include        fastcgi_params;
    }
if you've done that run:
service hhvm start && service nginx restart

And then you're ready to run HHVM.

Re: HHVM instead of PHP5

Posted: Mon Dec 15, 2014 11:41 pm
by nelblack
Hi ludalabs,

When I run commend in /usr/share/hhvm/install_fastcgi.sh, and It's shows :

Code: Select all

Checking if Apache is installed
Detected Apache installation
Looking for custom proxy configuration
No custom proxy configuration found
Checking for enabled proxy_fcgi.load
Not found
Checking for enabled fastcgi.load
Not found
Checking for enabled fcgid.load
Found, checking for loading directives
Detected enabled fcgid.load configuration, setting up integration
Force enabling module hhvm_fcgid.conf
WARNING: Unsupported hhvm_fcgid, not configuring
Restarting apache
Apache is running, restarting
Finished restarting
Finished restarting apache
Checking if Nginx is installed
Detected Nginx installation
Checking for custom Nginx configuration
grep: /etc/nginx/sites-enabled/: No such file or directory
Enabling hhvm Nginx module
sed: can't read /etc/nginx/sites-enabled/default: No such file or directory
/usr/share/hhvm/install_fastcgi.sh: line 170: /etc/nginx/sites-enabled/default: No such file or directory
Finished enabling module
Restarting Nginx
Nginx is running, restarting
Restarted nginx
Finished restarting Nginx
I don't get it why HHVM can't configuration the fcgid either Nginx.