Skip to content

Commit cf192cd

Browse files
committed
1 parent 5895a98 commit cf192cd

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

install/lib/installer_base.lib.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -979,6 +979,7 @@ public function configure_apps_vhost()
979979

980980
$apps_vhost_user = $conf['web']['apps_vhost_user'];
981981
$apps_vhost_group = $conf['web']['apps_vhost_group'];
982+
$install_dir = $conf['web']['website_basedir'].'/apps';
982983

983984
$command = 'groupadd '.$apps_vhost_user;
984985
if(!is_group($apps_vhost_group)) caselog($command.' &> /dev/null 2> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
@@ -993,19 +994,19 @@ public function configure_apps_vhost()
993994
//* Copy the apps vhost file
994995
$vhost_conf_dir = $conf['apache']['vhost_conf_dir'];
995996
$vhost_conf_enabled_dir = $conf['apache']['vhost_conf_enabled_dir'];
996-
$apps_vhost_servername = ($conf['apache']['apps_vhost_servername'] == '')?'':'ServerName '.$conf['apache']['apps_vhost_servername'];
997+
$apps_vhost_servername = ($conf['web']['apps_vhost_servername'] == '')?'':'ServerName '.$conf['web']['apps_vhost_servername'];
997998

998999
// Dont just copy over the virtualhost template but add some custom settings
9991000
$content = rf("tpl/apache_apps.vhost.master");
10001001

1001-
$content = str_replace('{apps_vhost_ip}', $conf['apache']['apps_vhost_ip'], $content);
1002-
$content = str_replace('{apps_vhost_port}', $conf['apache']['apps_vhost_port'], $content);
1002+
$content = str_replace('{apps_vhost_ip}', $conf['web']['apps_vhost_ip'], $content);
1003+
$content = str_replace('{apps_vhost_port}', $conf['web']['apps_vhost_port'], $content);
10031004
$content = str_replace('{apps_vhost_dir}', $conf['web']['website_basedir'].'/apps', $content);
10041005
$content = str_replace('{apps_vhost_servername}', $apps_vhost_servername, $content);
10051006

10061007

10071008
// comment out the listen directive if port is 80 or 443
1008-
if($conf['apache']['apps_vhost_ip'] == 80 or $conf['apache']['apps_vhost_ip'] == 443) {
1009+
if($conf['web']['apps_vhost_ip'] == 80 or $conf['web']['apps_vhost_ip'] == 443) {
10091010
$content = str_replace('{vhost_port_listen}', '#', $content);
10101011
} else {
10111012
$content = str_replace('{vhost_port_listen}', '', $content);

0 commit comments

Comments
 (0)