Skip to content

Commit 82f3c22

Browse files
author
Till Brehm
committed
Fixed #4131 apps_vhost_plugin & socket with php5.6 or php7
1 parent e33b6af commit 82f3c22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins-available/apps_vhost_plugin.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ function update($event_name, $data) {
169169
//$content = str_replace('{fpm_port}', $web_config['php_fpm_start_port']+1, $content);
170170
$content = str_replace('{fpm_socket}', $fpm_socket, $content);
171171
$content = str_replace('{cgi_socket}', $cgi_socket, $content);
172-
if(file_exists('/var/run/php5-fpm.sock')){
172+
if(file_exists('/var/run/php5-fpm.sock') || file_exists('/var/run/php/php7.0-fpm.sock')){
173173
$use_tcp = '#';
174174
$use_socket = '';
175175
} else {

0 commit comments

Comments
 (0)