HHVM and PHP version

Discussion in 'Installation/Configuration' started by Efex, May 22, 2018.

  1. Efex

    Efex Member

    When i enabled HHVM for alias domain (vhost) i can't set PHP version for website.
    I edit nginx vhost file but it's not good solution. Is it a bug?
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    That's no bug. HHVM replaces PHP, so there can not be PHP versions when you use HHVM.
     
  3. Efex

    Efex Member

    location @php {
    try_files $uri =404;
    include /etc/nginx/fastcgi_params;
    fastcgi_pass unix:/var/run/hhvm/hhvm.web1.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_intercept_errors on;
    error_page 500 501 502 503 = @phpfallback;
    }

    location @phpfallback {
    try_files $uri =404;
    include /etc/nginx/fastcgi_params;
    fastcgi_pass unix:/var/lib/php7.0-fpm/web24.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_intercept_errors on;
    }
    It's ading phpfallback with
    astcgi_pass unix:/var/lib/php7.0-fpm/web24.sock;
     
  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    Not a bug. PHP version selection works only for PHP modes PHP-FPM and FastCGI. See the howto you followed to install the extra PHP versions.
     
  5. Efex

    Efex Member

    How can i change php version that used this phpfallback rules then?
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    You can't. The fallback is the default PHP of the operating system.
     
  7. Efex

    Efex Member

    How can i change default php version then?
     
  8. zwt

    zwt New Member

    by using PHP-FPM instead of HHVM.
     

Share This Page