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
lolo888
ISPConfig 3
Commits
399f825f
Commit
399f825f
authored
Mar 10, 2009
by
tbrehm
Browse files
Split the mysql host into port and hostname in installer before trying to get the IP.
parent
86e3bb97
Changes
2
Hide whitespace changes
Inline
Side-by-side
install/install.php
View file @
399f825f
...
...
@@ -129,7 +129,9 @@ do {
unset
(
$finished
);
// Resolve the IP address of the mysql hostname.
if
(
!
$conf
[
'mysql'
][
'ip'
]
=
gethostbyname
(
$conf
[
'mysql'
][
'host'
]))
die
(
'Unable to resolve hostname'
.
$conf
[
'mysql'
][
'host'
]);
$tmp
=
explode
(
':'
,
$conf
[
'mysql'
][
'host'
]);
if
(
!
$conf
[
'mysql'
][
'ip'
]
=
gethostbyname
(
$tmp
[
0
]))
die
(
'Unable to resolve hostname'
.
$tmp
[
0
]);
unset
(
$tmp
);
//** initializing database connection
...
...
install/lib/installer_base.lib.php
View file @
399f825f
...
...
@@ -247,9 +247,9 @@ class installer_base {
$this
->
dbmaster
->
query
(
'FLUSH PRIVILEGES;'
);
//* Create the ISPConfig database user in the local database
$query
=
'GRANT SELECT, INSERT, UPDATE, DELETE ON '
.
$conf
[
'mysql'
][
'master_database'
]
.
".* "
/*
$query = 'GRANT SELECT, INSERT, UPDATE, DELETE ON '.$conf['mysql']['master_database'].".* "
."TO '".$conf['mysql']['master_ispconfig_user']."'@'".$from_host."' "
.
"IDENTIFIED BY '"
.
$conf
[
'mysql'
][
'master_ispconfig_password'
]
.
"';"
;
."IDENTIFIED BY '".$conf['mysql']['master_ispconfig_password']."';";
*/
$query
=
'GRANT SELECT, INSERT, UPDATE, DELETE ON '
.
$conf
[
'mysql'
][
'master_database'
]
.
".* "
.
"TO '"
.
$conf
[
'mysql'
][
'master_ispconfig_user'
]
.
"'@'"
.
$from_ip
.
"' "
.
"IDENTIFIED BY '"
.
$conf
[
'mysql'
][
'master_ispconfig_password'
]
.
"';"
;
...
...
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