Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

HHVM instead of PHP5

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
3 posts • Page 1 of 1
nelblack
Posts: 11
Joined: Tue Jan 07, 2014 10:59 pm

HHVM instead of PHP5
  • Quote

Post by nelblack » Mon Sep 15, 2014 10:48 am

Hi,

Have anyone success to use HHVM instead of PHP5 ?
Top

ludalabs
Posts: 2
Joined: Mon Jun 02, 2014 3:08 pm

Re: HHVM instead of PHP5
  • Quote

Post by ludalabs » Fri Oct 31, 2014 1:30 pm

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.
Top

nelblack
Posts: 11
Joined: Tue Jan 07, 2014 10:59 pm

Re: HHVM instead of PHP5
  • Quote

Post by nelblack » Mon Dec 15, 2014 11:41 pm

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.
Top


Post Reply
  • Print view

3 posts • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password