Skip to content

Commit b951b64

Browse files
author
Till Brehm
committed
Fixed wrong socket path in apps vhost when PHP 7.3 is used on the server.
1 parent a471ca2 commit b951b64

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

install/lib/installer_base.lib.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2322,6 +2322,7 @@ public function configure_apps_vhost() {
23222322
|| file_exists('/var/run/php/php7.1-fpm.sock')
23232323
|| file_exists('/var/run/php/php7.2-fpm.sock')
23242324
|| file_exists('/var/run/php/php7.3-fpm.sock')
2325+
|| file_exists('/var/run/php/php7.4-fpm.sock')
23252326
){
23262327
$use_tcp = '#';
23272328
$use_socket = '';
@@ -2340,6 +2341,8 @@ public function configure_apps_vhost() {
23402341
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);
23412342
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);
23422343
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);
2344+
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);
2345+
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);
23432346

23442347
wf($vhost_conf_dir.'/apps.vhost', $content);
23452348

0 commit comments

Comments
 (0)