Skip to content

Commit 4efa7d7

Browse files
committed
use apps.sock as fastcgi_pass if the socket exists
1 parent 037bf6f commit 4efa7d7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

server/plugins-available/apps_vhost_plugin.inc.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ function update($event_name, $data) {
192192
$content = str_replace('{fpm_socket}', $fpm_socket, $content);
193193
$content = str_replace('{cgi_socket}', $cgi_socket, $content);
194194
if( file_exists('/var/run/php5-fpm.sock')
195+
|| file_exists('/var/lib/php5-fpm/apps.sock')
195196
|| file_exists('/var/run/php/php7.0-fpm.sock')
196197
|| file_exists('/var/run/php/php7.1-fpm.sock')
197198
|| file_exists('/var/run/php/php7.2-fpm.sock')

0 commit comments

Comments
 (0)