From e6612d9770c9e2853a212b5ece9ca304cb759532 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szekeres=20Ba=CC=81lint?= Date: Tue, 30 Oct 2018 20:46:45 +0100 Subject: [PATCH] support for HHVM sockets fixes #24 --- public/assets/js/app.js | 2 +- public/index.html | 14 ++++++++------ .../conf/nginxconfig.io/php_fastcgi.conf.html | 8 +------- 3 files changed, 10 insertions(+), 14 deletions(-) diff --git a/public/assets/js/app.js b/public/assets/js/app.js index 70f9d1b..c1cfa34 100644 --- a/public/assets/js/app.js +++ b/public/assets/js/app.js @@ -64,7 +64,7 @@ fallback_php_path: '/api/', php: true, - php_connection: '7.2', + php_connection: '/var/run/php/php7.2-fpm.sock', wordpress: false, drupal: false, diff --git a/public/index.html b/public/index.html index 2d71230..f456e7d 100644 --- a/public/index.html +++ b/public/index.html @@ -384,12 +384,14 @@
diff --git a/public/templates/conf/nginxconfig.io/php_fastcgi.conf.html b/public/templates/conf/nginxconfig.io/php_fastcgi.conf.html index 7491c05..f1915b4 100644 --- a/public/templates/conf/nginxconfig.io/php_fastcgi.conf.html +++ b/public/templates/conf/nginxconfig.io/php_fastcgi.conf.html @@ -1,13 +1,7 @@ try_files $uri =404; # fastcgi -fastcgi_pass {{ - data.php_connection === 'tcp' ? '127.0.0.1:9000' : ( - data.php_connection === '5.x' ? 'unix:/var/run/php5-fpm.sock' : ( - 'unix:/var/run/php/php' + data.php_connection +'-fpm.sock' - ) - ) -}}; +fastcgi_pass {{ data.php_connection[0] === '/' ? 'unix:' : '' }}{{ data.php_connection }}; fastcgi_index index.php; fastcgi_split_path_info ^(.+\.php)(/.+)$; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;