Skip to content

Commit 0aa4f2d

Browse files
author
Till Brehm
committed
Use correct PHP-FPM sockets in apps vhost on Ubuntu 20.04.
1 parent 8a1d8f5 commit 0aa4f2d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

server/plugins-available/apps_vhost_plugin.inc.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ function update($event_name, $data) {
184184
|| file_exists('/var/run/php/php7.1-fpm.sock')
185185
|| file_exists('/var/run/php/php7.2-fpm.sock')
186186
|| file_exists('/var/run/php/php7.3-fpm.sock')
187+
|| file_exists('/var/run/php/php7.4-fpm.sock')
187188
){
188189
$use_tcp = '#';
189190
$use_socket = '';
@@ -206,6 +207,8 @@ function update($event_name, $data) {
206207
if(file_exists('/var/run/php/php7.0-fpm.sock')) $content = str_replace('/var/run/php5-fpm.sock', '/var/run/php/php7.0-fpm.sock', $content);
207208
if(file_exists('/var/run/php/php7.1-fpm.sock')) $content = str_replace('/var/run/php5-fpm.sock', '/var/run/php/php7.1-fpm.sock', $content);
208209
if(file_exists('/var/run/php/php7.2-fpm.sock')) $content = str_replace('/var/run/php5-fpm.sock', '/var/run/php/php7.2-fpm.sock', $content);
210+
if(file_exists('/var/run/php/php7.3-fpm.sock')) $content = str_replace('/var/run/php5-fpm.sock', '/var/run/php/php7.3-fpm.sock', $content);
211+
if(file_exists('/var/run/php/php7.4-fpm.sock')) $content = str_replace('/var/run/php5-fpm.sock', '/var/run/php/php7.4-fpm.sock', $content);
209212

210213
// PHP-FPM
211214
// Dont just copy over the php-fpm pool template but add some custom settings

0 commit comments

Comments
 (0)