Skip to content

Commit 00af520

Browse files
author
Till Brehm
committed
Set correct PHP 7 socket path on Ubuntu 16.04 in apps vhost.
1 parent eb59466 commit 00af520

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

install/lib/installer_base.lib.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2076,6 +2076,11 @@ public function configure_apps_vhost() {
20762076
// SSL in apps vhost is off by default. Might change later.
20772077
$content = str_replace('{ssl_on}', 'off', $content);
20782078
$content = str_replace('{ssl_comment}', '#', $content);
2079+
2080+
// Fix socket path on PHP 7 systems
2081+
if(file_exists('/var/run/php/php7.0-fpm.sock')) {
2082+
$content = str_replace('/var/run/php5-fpm.sock', '/var/run/php/php7.0-fpm.sock', $content);
2083+
}
20792084

20802085
wf($vhost_conf_dir.'/apps.vhost', $content);
20812086

0 commit comments

Comments
 (0)