Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISPConfig
ISPConfig 3
Commits
8b2f577c
Commit
8b2f577c
authored
Mar 05, 2009
by
tbrehm
Browse files
Set hostname and IP address in server settings during install.
parent
b9472639
Changes
1
Hide whitespace changes
Inline
Side-by-side
install/lib/installer_base.lib.php
View file @
8b2f577c
...
...
@@ -204,7 +204,8 @@ class installer_base {
$tpl_ini_array
[
'web'
][
'vhost_conf_enabled_dir'
]
=
$conf
[
'apache'
][
'vhost_conf_enabled_dir'
];
$tpl_ini_array
[
'jailkit'
][
'jailkit_chroot_app_programs'
]
=
$conf
[
'jailkit'
][
'jailkit_chroot_app_programs'
];
$tpl_ini_array
[
'fastcgi'
][
'fastcgi_phpini_path'
]
=
$conf
[
'fastcgi'
][
'fastcgi_phpini_path'
];
$tpl_ini_array
[
'server'
][
'hostname'
]
=
$conf
[
'hostname'
];
$tpl_ini_array
[
'server'
][
'ip_address'
]
=
@
gethostbyname
(
$conf
[
'hostname'
]);
$server_ini_content
=
array_to_ini
(
$tpl_ini_array
);
$server_ini_content
=
mysql_real_escape_string
(
$server_ini_content
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment