From 82f3c22eef2d521f4f7b64bd4f8b1f87ecf1e2ca Mon Sep 17 00:00:00 2001 From: Till Brehm Date: Tue, 27 Sep 2016 13:48:05 +0200 Subject: [PATCH] Fixed #4131 apps_vhost_plugin & socket with php5.6 or php7 --- server/plugins-available/apps_vhost_plugin.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/plugins-available/apps_vhost_plugin.inc.php b/server/plugins-available/apps_vhost_plugin.inc.php index d5d5dc8a9a..cf01df692d 100644 --- a/server/plugins-available/apps_vhost_plugin.inc.php +++ b/server/plugins-available/apps_vhost_plugin.inc.php @@ -169,7 +169,7 @@ class apps_vhost_plugin { //$content = str_replace('{fpm_port}', $web_config['php_fpm_start_port']+1, $content); $content = str_replace('{fpm_socket}', $fpm_socket, $content); $content = str_replace('{cgi_socket}', $cgi_socket, $content); - if(file_exists('/var/run/php5-fpm.sock')){ + if(file_exists('/var/run/php5-fpm.sock') || file_exists('/var/run/php/php7.0-fpm.sock')){ $use_tcp = '#'; $use_socket = ''; } else { -- GitLab