Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
I
ISPConfig 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Helmo
ISPConfig 3
Commits
ac4a37d4
Commit
ac4a37d4
authored
16 years ago
by
tbrehm
Browse files
Options
Downloads
Patches
Plain Diff
- Fixes in the installer.
parent
a768b9f0
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
install/install.php
+15
-9
15 additions, 9 deletions
install/install.php
install/lib/installer_base.lib.php
+12
-3
12 additions, 3 deletions
install/lib/installer_base.lib.php
with
27 additions
and
12 deletions
install/install.php
+
15
−
9
View file @
ac4a37d4
...
@@ -278,7 +278,7 @@ if($install_mode == 'Standard') {
...
@@ -278,7 +278,7 @@ if($install_mode == 'Standard') {
}
}
//** Configure ISPConfig :-)
//** Configure ISPConfig :-)
if
(
strtolower
(
$inst
->
simple_query
(
'Install ISPConfig'
,
array
(
'y'
,
'n'
),
'y'
))
==
'y'
)
{
if
(
strtolower
(
$inst
->
simple_query
(
'Install ISPConfig
Web-Interface
'
,
array
(
'y'
,
'n'
),
'y'
))
==
'y'
)
{
swriteln
(
'Installing ISPConfig'
);
swriteln
(
'Installing ISPConfig'
);
//** We want to check if the server is a module or cgi based php enabled server
//** We want to check if the server is a module or cgi based php enabled server
...
@@ -296,17 +296,23 @@ if($install_mode == 'Standard') {
...
@@ -296,17 +296,23 @@ if($install_mode == 'Standard') {
*/
*/
//** Customise the port ISPConfig runs on
//** Customise the port ISPConfig runs on
$
inst
->
conf
[
'apache'
][
'vhost_port'
]
=
$inst
->
free_query
(
'ISPConfig Port'
,
'8080'
);
$conf
[
'apache'
][
'vhost_port'
]
=
$inst
->
free_query
(
'ISPConfig Port'
,
'8080'
);
$inst
->
install_ispconfig_interface
=
true
;
$inst
->
install_ispconfig
();
}
else
{
//* Configure ISPConfig
$inst
->
install_ispconfig_interface
=
false
;
swriteln
(
'Installing Crontab'
);
$inst
->
install_crontab
();
system
(
$conf
[
'init_scripts'
]
.
'/'
.
$conf
[
'apache'
][
'init_script'
]
.
' restart'
);
}
}
$inst
->
install_ispconfig
();
//* Configure ISPConfig
swriteln
(
'Installing Crontab'
);
$inst
->
install_crontab
();
system
(
$conf
[
'init_scripts'
]
.
'/'
.
$conf
[
'apache'
][
'init_script'
]
.
' restart'
);
}
//* << $install_mode / 'Standard' or Genius
}
//* << $install_mode / 'Standard' or Genius
...
...
This diff is collapsed.
Click to expand it.
install/lib/installer_base.lib.php
+
12
−
3
View file @
ac4a37d4
...
@@ -34,6 +34,7 @@ class installer_base {
...
@@ -34,6 +34,7 @@ class installer_base {
var
$language
=
'en'
;
var
$language
=
'en'
;
var
$db
;
var
$db
;
public
$conf
;
public
$conf
;
public
install_ispconfig_interface
=
true
;
public
function
__construct
()
public
function
__construct
()
...
@@ -148,9 +149,15 @@ class installer_base {
...
@@ -148,9 +149,15 @@ class installer_base {
global
$conf
;
global
$conf
;
$cf
=
$conf
[
'mysql'
];
// make $conf['mysql'] more accessible
$cf
=
$conf
[
'mysql'
];
// make $conf['mysql'] more accessible
if
(
$cf
[
'host'
]
==
'localhost'
)
{
$from_host
=
'localhost'
;
}
else
{
$from_host
=
$inst
->
conf
[
'hostname'
];
}
//* Create the ISPConfig database user
//* Create the ISPConfig database user
$query
=
'GRANT SELECT, INSERT, UPDATE, DELETE ON '
.
$cf
[
'database'
]
.
".* "
$query
=
'GRANT SELECT, INSERT, UPDATE, DELETE ON '
.
$cf
[
'database'
]
.
".* "
.
"TO '"
.
$cf
[
'ispconfig_user'
]
.
"'@'"
.
$
cf
[
'
host
'
]
.
"' "
.
"TO '"
.
$cf
[
'ispconfig_user'
]
.
"'@'"
.
$
from_
host
.
"' "
.
"IDENTIFIED BY '"
.
$cf
[
'ispconfig_password'
]
.
"';"
;
.
"IDENTIFIED BY '"
.
$cf
[
'ispconfig_password'
]
.
"';"
;
if
(
!
$this
->
db
->
query
(
$query
))
{
if
(
!
$this
->
db
->
query
(
$query
))
{
$this
->
error
(
'Unable to create database user: '
.
$cf
[
'ispconfig_user'
]);
$this
->
error
(
'Unable to create database user: '
.
$cf
[
'ispconfig_user'
]);
...
@@ -729,8 +736,10 @@ class installer_base {
...
@@ -729,8 +736,10 @@ class installer_base {
//copy('tpl/apache_ispconfig.vhost.master', "$vhost_conf_dir/ispconfig.vhost");
//copy('tpl/apache_ispconfig.vhost.master', "$vhost_conf_dir/ispconfig.vhost");
//* and create the symlink
//* and create the symlink
if
(
!
is_link
(
"
$vhost_conf_enabled_dir
/ispconfig.vhost"
))
{
if
(
$this
->
install_ispconfig_interface
==
true
)
{
exec
(
"ln -s
$vhost_conf_dir
/ispconfig.vhost
$vhost_conf_enabled_dir
/ispconfig.vhost"
);
if
(
!
is_link
(
"
$vhost_conf_enabled_dir
/ispconfig.vhost"
))
{
exec
(
"ln -s
$vhost_conf_dir
/ispconfig.vhost
$vhost_conf_enabled_dir
/ispconfig.vhost"
);
}
}
}
// Make the Clamav log files readable by ISPConfig
// Make the Clamav log files readable by ISPConfig
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment