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
Michael
ISPConfig 3
Commits
b1c09ebe
Commit
b1c09ebe
authored
Nov 08, 2022
by
Michael Seevogel
Browse files
resolve merge conflict
parents
8e0ecdf3
b12e10a1
Pipeline
#12671
passed with stage
in 8 minutes and 32 seconds
Changes
12
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
install/dist/conf/centos72.conf.php
View file @
b1c09ebe
...
...
@@ -28,7 +28,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
//***
Fedora 9
default settings
//***
RHEL 7 derivatives
default settings
//* Main
$conf
[
'language'
]
=
'en'
;
...
...
install/dist/conf/centos80.conf.php
View file @
b1c09ebe
...
...
@@ -28,7 +28,7 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
//***
Fedora 9
default settings
//***
RHEL 8 derivatives
default settings
//* Main
$conf
[
'language'
]
=
'en'
;
...
...
install/dist/conf/centos90.conf.php
0 → 100644
View file @
b1c09ebe
<?php
/*
Copyright (c) 2007, Till Brehm, projektfarm Gmbh
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of ISPConfig nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
//*** RHEL 9 derivatives default settings
//* Main
$conf
[
'language'
]
=
'en'
;
$conf
[
'distname'
]
=
'centos90'
;
$conf
[
'hostname'
]
=
'server1.domain.tld'
;
// Full hostname
$conf
[
'ispconfig_install_dir'
]
=
'/usr/local/ispconfig'
;
$conf
[
'ispconfig_config_dir'
]
=
'/usr/local/ispconfig'
;
$conf
[
'ispconfig_log_priority'
]
=
2
;
// 0 = Debug, 1 = Warning, 2 = Error
$conf
[
'ispconfig_log_dir'
]
=
'/var/log/ispconfig'
;
$conf
[
'server_id'
]
=
1
;
$conf
[
'init_scripts'
]
=
'/etc/init.d'
;
$conf
[
'runlevel'
]
=
'/etc'
;
$conf
[
'shells'
]
=
'/etc/shells'
;
$conf
[
'pam'
]
=
'/etc/pam.d'
;
$conf
[
'default_php'
]
=
"8.0"
;
//* Services provided by this server, this selection will be overridden by the expert mode
$conf
[
'services'
][
'mail'
]
=
true
;
$conf
[
'services'
][
'web'
]
=
true
;
$conf
[
'services'
][
'dns'
]
=
true
;
$conf
[
'services'
][
'file'
]
=
true
;
$conf
[
'services'
][
'db'
]
=
true
;
$conf
[
'services'
][
'vserver'
]
=
true
;
//* MySQL
$conf
[
'mysql'
][
'installed'
]
=
false
;
// will be detected automatically during installation
$conf
[
'mysql'
][
'init_script'
]
=
'mariadb'
;
$conf
[
'mysql'
][
'host'
]
=
'localhost'
;
$conf
[
'mysql'
][
'ip'
]
=
'127.0.0.1'
;
$conf
[
'mysql'
][
'port'
]
=
'3306'
;
$conf
[
'mysql'
][
'database'
]
=
'dbispconfig'
;
$conf
[
'mysql'
][
'admin_user'
]
=
'root'
;
$conf
[
'mysql'
][
'admin_password'
]
=
''
;
$conf
[
'mysql'
][
'charset'
]
=
'utf8'
;
$conf
[
'mysql'
][
'ispconfig_user'
]
=
'ispconfig'
;
$conf
[
'mysql'
][
'ispconfig_password'
]
=
md5
(
random_bytes
(
20
));
$conf
[
'mysql'
][
'master_slave_setup'
]
=
'n'
;
$conf
[
'mysql'
][
'master_host'
]
=
''
;
$conf
[
'mysql'
][
'master_port'
]
=
'3306'
;
$conf
[
'mysql'
][
'master_database'
]
=
'dbispconfig'
;
$conf
[
'mysql'
][
'master_admin_user'
]
=
'root'
;
$conf
[
'mysql'
][
'master_admin_password'
]
=
''
;
$conf
[
'mysql'
][
'master_ispconfig_user'
]
=
''
;
$conf
[
'mysql'
][
'master_ispconfig_password'
]
=
md5
(
random_bytes
(
20
));
//* Apache
$conf
[
'apache'
][
'installed'
]
=
false
;
// will be detected automatically during installation
$conf
[
'apache'
][
'user'
]
=
'apache'
;
$conf
[
'apache'
][
'group'
]
=
'apache'
;
$conf
[
'apache'
][
'init_script'
]
=
'httpd'
;
$conf
[
'apache'
][
'version'
]
=
'2.2'
;
$conf
[
'apache'
][
'vhost_conf_dir'
]
=
'/etc/httpd/conf/sites-available'
;
$conf
[
'apache'
][
'vhost_conf_enabled_dir'
]
=
'/etc/httpd/conf/sites-enabled'
;
$conf
[
'apache'
][
'vhost_port'
]
=
'8080'
;
$conf
[
'apache'
][
'php_ini_path_apache'
]
=
'/etc/php.ini'
;
$conf
[
'apache'
][
'php_ini_path_cgi'
]
=
'/etc/php.ini'
;
//* Website base settings
$conf
[
'web'
][
'website_basedir'
]
=
'/var/www'
;
$conf
[
'web'
][
'website_path'
]
=
'/var/www/clients/client[client_id]/web[website_id]'
;
$conf
[
'web'
][
'website_symlinks'
]
=
'/var/www/[website_domain]/:/var/www/clients/client[client_id]/[website_domain]/'
;
//* Apps base settings
$conf
[
'web'
][
'apps_vhost_ip'
]
=
'_default_'
;
$conf
[
'web'
][
'apps_vhost_port'
]
=
'8081'
;
$conf
[
'web'
][
'apps_vhost_servername'
]
=
''
;
$conf
[
'web'
][
'apps_vhost_user'
]
=
'ispapps'
;
$conf
[
'web'
][
'apps_vhost_group'
]
=
'ispapps'
;
//* AWStats settings
$conf
[
'awstats'
][
'pl'
]
=
'/usr/share/awstats/wwwroot/cgi-bin/awstats.pl'
;
//* Fastcgi
$conf
[
'fastcgi'
][
'fastcgi_phpini_path'
]
=
'/etc/'
;
$conf
[
'fastcgi'
][
'fastcgi_starter_path'
]
=
'/var/www/php-fcgi-scripts/[system_user]/'
;
$conf
[
'fastcgi'
][
'fastcgi_bin'
]
=
'/usr/bin/php-cgi'
;
//* Postfix
$conf
[
'postfix'
][
'installed'
]
=
false
;
// will be detected automatically during installation
$conf
[
'postfix'
][
'config_dir'
]
=
'/etc/postfix'
;
$conf
[
'postfix'
][
'init_script'
]
=
'postfix'
;
$conf
[
'postfix'
][
'user'
]
=
'postfix'
;
$conf
[
'postfix'
][
'group'
]
=
'postfix'
;
$conf
[
'postfix'
][
'vmail_userid'
]
=
'5000'
;
$conf
[
'postfix'
][
'vmail_username'
]
=
'vmail'
;
$conf
[
'postfix'
][
'vmail_groupid'
]
=
'5000'
;
$conf
[
'postfix'
][
'vmail_groupname'
]
=
'vmail'
;
$conf
[
'postfix'
][
'vmail_mailbox_base'
]
=
'/var/vmail'
;
//* Mailman
$conf
[
'mailman'
][
'installed'
]
=
false
;
// will be detected automatically during installation
$conf
[
'mailman'
][
'config_dir'
]
=
'/etc/mailman'
;
$conf
[
'mailman'
][
'init_script'
]
=
'mailman'
;
//* Getmail
$conf
[
'getmail'
][
'installed'
]
=
false
;
// will be detected automatically during installation
$conf
[
'getmail'
][
'config_dir'
]
=
'/etc/getmail'
;
$conf
[
'getmail'
][
'program'
]
=
'/usr/bin/getmail'
;
//* Courier
$conf
[
'courier'
][
'installed'
]
=
false
;
// will be detected automatically during installation
$conf
[
'courier'
][
'config_dir'
]
=
'/etc/authlib'
;
$conf
[
'courier'
][
'courier-authdaemon'
]
=
'courier-authlib'
;
$conf
[
'courier'
][
'courier-imap'
]
=
'courier-imap'
;
$conf
[
'courier'
][
'courier-imap-ssl'
]
=
''
;
$conf
[
'courier'
][
'courier-pop'
]
=
''
;
$conf
[
'courier'
][
'courier-pop-ssl'
]
=
''
;
//* Dovecot
$conf
[
'dovecot'
][
'installed'
]
=
false
;
// will be detected automatically during installation
$conf
[
'dovecot'
][
'config_dir'
]
=
'/etc/dovecot'
;
$conf
[
'dovecot'
][
'init_script'
]
=
'dovecot'
;
//* SASL
$conf
[
'saslauthd'
][
'installed'
]
=
false
;
// will be detected automatically during installation
$conf
[
'saslauthd'
][
'config'
]
=
'/etc/sysconfig/saslauthd'
;
$conf
[
'saslauthd'
][
'init_script'
]
=
'saslauthd'
;
//* Amavisd
$conf
[
'amavis'
][
'installed'
]
=
false
;
// will be detected automatically during installation
$conf
[
'amavis'
][
'config_dir'
]
=
'/etc/amavisd'
;
$conf
[
'amavis'
][
'init_script'
]
=
'amavisd'
;
//* Rspamd
$conf
[
'rspamd'
][
'installed'
]
=
false
;
// will be detected automatically during installation
$conf
[
'rspamd'
][
'config_dir'
]
=
'/etc/rspamd'
;
$conf
[
'rspamd'
][
'init_script'
]
=
'rspamd'
;
//* ClamAV
$conf
[
'clamav'
][
'installed'
]
=
false
;
// will be detected automatically during installation
$conf
[
'clamav'
][
'init_script'
]
=
'clamd@amavisd'
;
//* Pureftpd
$conf
[
'pureftpd'
][
'installed'
]
=
false
;
// will be detected automatically during installation
$conf
[
'pureftpd'
][
'config_dir'
]
=
'/etc/pure-ftpd'
;
$conf
[
'pureftpd'
][
'init_script'
]
=
'pure-ftpd'
;
//* MyDNS
$conf
[
'mydns'
][
'installed'
]
=
false
;
// will be detected automatically during installation
$conf
[
'mydns'
][
'config_dir'
]
=
'/etc'
;
$conf
[
'mydns'
][
'init_script'
]
=
'mydns'
;
//* PowerDNS
$conf
[
'powerdns'
][
'installed'
]
=
false
;
// will be detected automatically during installation
$conf
[
'powerdns'
][
'database'
]
=
'powerdns'
;
$conf
[
"powerdns"
][
"config_dir"
]
=
'/etc/powerdns/pdns.d'
;
$conf
[
'powerdns'
][
'init_script'
]
=
'pdns'
;
//* BIND DNS Server
$conf
[
'bind'
][
'installed'
]
=
false
;
// will be detected automatically during installation
$conf
[
'bind'
][
'bind_user'
]
=
'named'
;
$conf
[
'bind'
][
'bind_group'
]
=
'named'
;
$conf
[
'bind'
][
'bind_zonefiles_dir'
]
=
'/var/named'
;
$conf
[
'bind'
][
'named_conf_path'
]
=
'/etc/named.conf'
;
$conf
[
'bind'
][
'named_conf_local_path'
]
=
'/etc/named.conf.local'
;
$conf
[
'bind'
][
'init_script'
]
=
'named'
;
//* Jailkit
$conf
[
'jailkit'
][
'installed'
]
=
false
;
// will be detected automatically during installation
$conf
[
'jailkit'
][
'config_dir'
]
=
'/etc/jailkit'
;
$conf
[
'jailkit'
][
'jk_init'
]
=
'jk_init.ini'
;
$conf
[
'jailkit'
][
'jk_chrootsh'
]
=
'jk_chrootsh.ini'
;
$conf
[
'jailkit'
][
'jailkit_chroot_app_programs'
]
=
'/usr/bin/groups /usr/bin/id /usr/bin/dircolors /bin/basename /usr/bin/dirname /usr/bin/nano'
;
$conf
[
'jailkit'
][
'jailkit_chroot_cron_programs'
]
=
'/usr/bin/php /usr/bin/perl /usr/share/perl /usr/share/php'
;
//* Squid
$conf
[
'squid'
][
'installed'
]
=
false
;
// will be detected automatically during installation
$conf
[
'squid'
][
'config_dir'
]
=
'/etc/squid'
;
$conf
[
'squid'
][
'init_script'
]
=
'squid'
;
//* Nginx
$conf
[
'nginx'
][
'installed'
]
=
false
;
// will be detected automatically during installation
$conf
[
'nginx'
][
'user'
]
=
'nginx'
;
$conf
[
'nginx'
][
'group'
]
=
'nginx'
;
$conf
[
'nginx'
][
'config_dir'
]
=
'/etc/nginx'
;
$conf
[
'nginx'
][
'vhost_conf_dir'
]
=
'/etc/nginx/sites-available'
;
$conf
[
'nginx'
][
'vhost_conf_enabled_dir'
]
=
'/etc/nginx/sites-enabled'
;
$conf
[
'nginx'
][
'init_script'
]
=
'nginx'
;
$conf
[
'nginx'
][
'vhost_port'
]
=
'8080'
;
$conf
[
'nginx'
][
'cgi_socket'
]
=
'/var/run/fcgiwrap.socket'
;
$conf
[
'nginx'
][
'php_fpm_init_script'
]
=
'php-fpm'
;
$conf
[
'nginx'
][
'php_fpm_ini_path'
]
=
'/etc/php.ini'
;
$conf
[
'nginx'
][
'php_fpm_pool_dir'
]
=
'/etc/php-fpm.d'
;
$conf
[
'nginx'
][
'php_fpm_start_port'
]
=
9010
;
$conf
[
'nginx'
][
'php_fpm_socket_dir'
]
=
'/var/lib/php5-fpm'
;
//* vlogger
$conf
[
'vlogger'
][
'config_dir'
]
=
'/etc'
;
//* cron
$conf
[
'cron'
][
'init_script'
]
=
'crond'
;
$conf
[
'cron'
][
'crontab_dir'
]
=
'/etc/cron.d'
;
$conf
[
'cron'
][
'wget'
]
=
'/usr/bin/wget'
;
//* OpenVZ
$conf
[
'openvz'
][
'installed'
]
=
false
;
// AppArmor
$conf
[
'apparmor'
][
'installed'
]
=
false
;
?>
install/dist/lib/centos90.lib.php
0 → 100644
View file @
b1c09ebe
<?php
/*
Copyright (c) 2014, Till Brehm, ISPConfig UG
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of ISPConfig nor the names of its contributors
may be used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
require_once
realpath
(
dirname
(
__FILE__
))
.
'/centos_base.lib.php'
;
class
installer
extends
installer_centos
{
protected
$clamav_socket
=
'/var/run/clamd.amavisd/clamd.sock'
;
// everything else is inherited from installer_centos class
}
?>
install/lib/install.lib.php
View file @
b1c09ebe
...
...
@@ -295,88 +295,93 @@ function get_distname() {
}
//** RHEL (including compatible clones) & Fedora
elseif
(
file_exists
(
'/etc/redhat-release'
)
&&
file_exists
(
'/etc/os-release'
))
{
$content
=
file_get_contents
(
'/etc/os-release'
);
preg_match
(
'/(?<=PRETTY_NAME=\").+?(?=\")/'
,
$content
,
$prettyname
);
preg_match
(
'/(?<=NAME=\").+?(?=\")/'
,
$content
,
$name
);
preg_match
(
'/(?<=VERSION=\").+?(?=\")/'
,
$content
,
$version
);
preg_match
(
'/(?<=VERSION_ID=\").+?(?=\")/'
,
$content
,
$versionid
);
if
(
stristr
(
$prettyname
[
0
],
'Fedora 32 (Thirty Two)'
))
{
$distname
=
'Fedora'
;
$distver
=
'32'
;
$distid
=
'fedora32'
;
$distbaseid
=
'fedora'
;
swriteln
(
"Operating System: Fedora 32 or compatible
\n
"
);
}
elseif
(
stristr
(
$prettyname
[
0
],
'Fedora 33 (Thirty Three)'
))
{
$distname
=
'Fedora'
;
$distver
=
'33'
;
$distid
=
'fedora33'
;
$distbaseid
=
'fedora'
;
swriteln
(
"Operating System: Fedora 33 or compatible
\n
"
);
//** RHEL 7 and compatible clones
}
elseif
(
preg_match
(
'/^(?:7|7\.[0-9]{1,2})$/'
,
$versionid
[
0
]))
{
preg_match_all
(
'/([0-9]{1,2})\.?([0-9]{0,2})\.?([0-9]*)/'
,
file_get_contents
(
'/etc/redhat-release'
),
$centos7_version
);
$distname
=
$name
[
0
];
$distver
=
is_array
(
$centos7_version
)
?
implode
(
'.'
,
array_filter
(
array
(
$centos7_version
[
1
][
0
],
$centos7_version
[
2
][
0
],
$centos7_version
[
3
][
0
]),
'strlen'
))
:
$version
[
0
];
$distid
=
'centos72'
;
$distbaseid
=
'fedora'
;
swriteln
(
"Operating System: "
.
$distname
.
" "
.
$distver
.
"
\n
"
);
//** RHEL 8 and compatible clones
}
elseif
(
preg_match
(
'/^(?:8|8\.[0-9]{1,2})$/'
,
$versionid
[
0
]))
{
$distname
=
$name
[
0
];
$distver
=
$version
[
0
];
$distid
=
'centos80'
;
$distbaseid
=
'fedora'
;
swriteln
(
"Operating System: "
.
$prettyname
[
0
]
.
"
\n
"
);
}
else
{
$distname
=
'Redhat'
;
$distver
=
'Unknown'
;
$distid
=
'fedora9'
;
$distbaseid
=
'fedora'
;
swriteln
(
"Operating System: Redhat or compatible
\n
"
);
}
elseif
(
file_exists
(
'/etc/redhat-release'
)
&&
file_exists
(
'/etc/os-release'
))
{
$content
=
file_get_contents
(
'/etc/os-release'
);
preg_match
(
'/(?<=PRETTY_NAME=\").+?(?=\")/'
,
$content
,
$prettyname
);
preg_match
(
'/(?<=NAME=\").+?(?=\")/'
,
$content
,
$name
);
preg_match
(
'/(?<=VERSION=\").+?(?=\")/'
,
$content
,
$version
);
preg_match
(
'/(?<=VERSION_ID=\").+?(?=\")/'
,
$content
,
$versionid
);
if
(
stristr
(
$prettyname
[
0
],
'Fedora 32 (Thirty Two)'
))
{
$distname
=
'Fedora'
;
$distver
=
'32'
;
$distid
=
'fedora32'
;
$distbaseid
=
'fedora'
;
swriteln
(
"Operating System: Fedora 32 or compatible
\n
"
);
}
elseif
(
stristr
(
$prettyname
[
0
],
'Fedora 33 (Thirty Three)'
))
{
$distname
=
'Fedora'
;
$distver
=
'33'
;
$distid
=
'fedora33'
;
$distbaseid
=
'fedora'
;
swriteln
(
"Operating System: Fedora 33 or compatible
\n
"
);
//** RHEL 7 and compatible clones
}
elseif
(
preg_match
(
'/^(?:7|7\.[0-9]{1,2})$/'
,
$versionid
[
0
]))
{
preg_match_all
(
'/([0-9]{1,2})\.?([0-9]{0,2})\.?([0-9]*)/'
,
file_get_contents
(
'/etc/redhat-release'
),
$centos7_version
);
$distname
=
$name
[
0
];
$distver
=
is_array
(
$centos7_version
)
?
implode
(
'.'
,
array_filter
(
array
(
$centos7_version
[
1
][
0
],
$centos7_version
[
2
][
0
],
$centos7_version
[
3
][
0
]),
'strlen'
))
:
$version
[
0
];
$distid
=
'centos72'
;
$distbaseid
=
'fedora'
;
swriteln
(
"Operating System: "
.
$distname
.
" "
.
$distver
.
"
\n
"
);
//** RHEL 8 and compatible clones
}
elseif
(
preg_match
(
'/^(?:8|8\.[0-9]{1,2})$/'
,
$versionid
[
0
]))
{
$distname
=
$name
[
0
];
$distver
=
$version
[
0
];
$distid
=
'centos80'
;
$distbaseid
=
'fedora'
;
swriteln
(
"Operating System: "
.
$prettyname
[
0
]
.
"
\n
"
);
//** RHEL 9 and compatible clones
}
elseif
(
preg_match
(
'/^(?:9|9\.[0-9]{1,2})$/'
,
$versionid
[
0
]))
{
$distname
=
$name
[
0
];
$distver
=
$version
[
0
];
$distid
=
'centos90'
;
$distbaseid
=
'fedora'
;
swriteln
(
"Operating System: "
.
$prettyname
[
0
]
.
"
\n
"
);
}
else
{
$distname
=
'Redhat'
;
$distver
=
'Unknown'
;
$distid
=
'fedora9'
;
$distbaseid
=
'fedora'
;
swriteln
(
"Operating System: Redhat or compatible
\n
"
);
}
//** CentOS 6
}
elseif
(
file_exists
(
'/etc/redhat-release'
)
&&
!
file_exists
(
'/etc/os-release'
)
&&
!
file_exists
(
'/etc/els-release'
))
{
}
elseif
(
file_exists
(
'/etc/redhat-release'
)
&&
!
file_exists
(
'/etc/os-release'
)
&&
!
file_exists
(
'/etc/els-release'
))
{
$content
=
file_get_contents
(
'/etc/redhat-release'
);
$content
=
file_get_contents
(
'/etc/redhat-release'
);
if
(
stristr
(
$content
,
'CentOS Linux release 6'
)
||
stristr
(
$content
,
'CentOS release 6'
))
{
preg_match_all
(
'/(6\.?([0-9]{0,2})\.?(\s)?([a-zA-Z()]+))$/'
,
$content
,
$centos6_version
);
$distname
=
'CentOS Linux'
;
if
(
stristr
(
$content
,
'CentOS Linux release 6'
)
||
stristr
(
$content
,
'CentOS release 6'
))
{
preg_match_all
(
'/(6\.?([0-9]{0,2})\.?(\s)?([a-zA-Z()]+))$/'
,
$content
,
$centos6_version
);
$distname
=
'CentOS Linux'
;
$distver
=
$centos6_version
[
0
][
0
]
?
$centos6_version
[
0
][
0
]
:
'6'
;
$distid
=
'centos53'
;
$distbaseid
=
'fedora'
;
swriteln
(
"Operating System: "
.
$distname
.
" "
.
$distver
.
"
\n
"
);
}
else
{
$distname
=
'Redhat'
;
$distver
=
'Unknown'
;
$distid
=
'fedora9'
;
$distbaseid
=
'fedora'
;
}
swriteln
(
"Operating System: "
.
$distname
.
" "
.
$distver
.
"
\n
"
);
}
else
{
$distname
=
'Redhat'
;
$distver
=
'Unknown'
;
$distid
=
'fedora9'
;
$distbaseid
=
'fedora'
;
}
//** CentOS 6 Extended Lifecycle Support by CloudLinux
}
elseif
(
file_exists
(
'/etc/redhat-release'
)
&&
file_exists
(
'/etc/els-release'
)
&&
!
file_exists
(
'/etc/os-release'
))
{
}
elseif
(
file_exists
(
'/etc/redhat-release'
)
&&
file_exists
(
'/etc/els-release'
)
&&
!
file_exists
(
'/etc/os-release'
))
{
$content
=
file_get_contents
(
'/etc/els-release'
);
$content
=
file_get_contents
(
'/etc/els-release'
);
if
(
stristr
(
$content
,
'CentOS Linux release 6'
)
||
stristr
(
$content
,
'CentOS release 6'
))
{
preg_match_all
(
'/(6)\.?([0-9]{0,2})?\.?\s([a-zA-Z(), ]+)?$/'
,
$content
,
$centos6_version
);
$distname
=
'CentOS Linux'
;
$distver
=
$centos6_version
[
0
][
0
]
?
$centos6_version
[
0
][
0
]
:
'6'
;
$distid
=
'centos53'
;
if
(
stristr
(
$content
,
'CentOS Linux release 6'
)
||
stristr
(
$content
,
'CentOS release 6'
))
{
preg_match_all
(
'/(6)\.?([0-9]{0,2})?\.?\s([a-zA-Z(), ]+)?$/'
,
$content
,
$centos6_version
);
$distname
=
'CentOS Linux'
;
$distver
=
$centos6_version
[
0
][
0
]
?
$centos6_version
[
0
][
0
]
:
'6'
;
$distid
=
'centos53'
;
$distbaseid
=
'fedora'
;
swriteln
(
"Operating System: "
.
$distname
.
" "
.
$distver
.
"
\n
"
);
}
else
{
$distname
=
'Redhat'
;
$distver
=
'Unknown'
;
$distid
=
'fedora9'
;
$distbaseid
=
'fedora'
;
}
}
swriteln
(
"Operating System: "
.
$distname
.
" "
.
$distver
.
"
\n
"
);
}
else
{
$distname
=
'Redhat'
;
$distver
=
'Unknown'
;
$distid
=
'fedora9'
;
$distbaseid
=
'fedora'
;
}
}
//** Gentoo
elseif
(
file_exists
(
'/etc/gentoo-release'
))
{
...
...
install/lib/installer_base.lib.php
View file @
b1c09ebe
...
...
@@ -1600,20 +1600,24 @@ class installer_base {
// Check if we have a dhparams file and if not, create it
if
(
!
file_exists
(
'/etc/dovecot/dh.pem'
))
{
// Create symlink to ISPConfig dhparam file
swriteln
(
'Creating symlink /etc/dovecot/dh.pem to ISPConfig DHParam file.'
);
symlink
(
'/usr/local/ispconfig/interface/ssl/dhparam4096.pem'
,
'/etc/dovecot/dh.pem'
);
/*
swriteln('Creating new DHParams file, this takes several minutes. Do not interrupt the script.');
if(file_exists('/var/lib/dovecot/ssl-parameters.dat')) {
// convert existing ssl parameters file
$command = 'dd if=/var/lib/dovecot/ssl-parameters.dat bs=1 skip=88 | openssl dhparam -inform der > /etc/dovecot/dh.pem';
caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
} else {
/*
Create a new dhparams file. We use 2048 bit only as it simply takes too long
on smaller systems to generate a 4096 bit dh file (> 30 minutes). If you need
a 4096 bit file, create it manually before you install ISPConfig
*/
//Create a new dhparams file. We use 2048 bit only as it simply takes too long
// on smaller systems to generate a 4096 bit dh file (> 30 minutes). If you need
// a 4096 bit file, create it manually before you install ISPConfig
$command = 'openssl dhparam -out /etc/dovecot/dh.pem 2048';
caselog($command.' &> /dev/null', __FILE__, __LINE__, "EXECUTED: $command", "Failed to execute the command $command");
}
*/
}
//remove #2.3+ comment
$content
=
file_get_contents
(
$config_dir
.
'/'
.
$configfile
);
...
...
@@ -3319,7 +3323,8 @@ class installer_base {
// Create symlink to ISPConfig SSL files
symlink
(
$ssl_pem_file
,
$pureftpd_pem
);
if
(
!
file_exists
(
"
$pureftpd_dir
/pure-ftpd-dhparams.pem"
))
exec
(
"cd
$pureftpd_dir
; openssl dhparam -out dhparam2048.pem 2048; ln -sf dhparam2048.pem pure-ftpd-dhparams.pem"
);
symlink
(
'/usr/local/ispconfig/interface/ssl/dhparam4096.pem'
,
$pureftpd_dir
.
'/pure-ftpd-dhparams.pem'
);
//exec("cd $pureftpd_dir; openssl dhparam -out dhparam2048.pem 2048; ln -sf dhparam2048.pem pure-ftpd-dhparams.pem");
}
}
...
...
install/sql/incremental/upd_0097.sql
0 → 100644
View file @
b1c09ebe
ALTER
TABLE
`sys_user`
ADD
`otp_type`
SET
(
'none'
,
'email'
)
NOT
NULL
DEFAULT
'none'
AFTER
`lost_password_reqtime`
,
ADD
`otp_data`
VARCHAR
(
255
)
NULL
AFTER
`otp_type`
,
ADD
`otp_recovery`
VARCHAR
(
64
)
NULL
AFTER
`otp_data`
,
ADD
`otp_attempts`
TINYINT
NOT
NULL
DEFAULT
'0'
AFTER
`otp_recovery`
;
install/sql/incremental/upd_dev_collection.sql
View file @
b1c09ebe
ALTER
TABLE
`sys_user`
ADD
`otp_type`
SET
(
'none'
,
'email'
)
NOT
NULL
DEFAULT
'none'
AFTER
`lost_password_reqtime`
,
ADD
`otp_data`
VARCHAR
(
255
)
NULL
AFTER
`otp_type`
,
ADD
`otp_recovery`
VARCHAR
(
64
)
NULL
AFTER
`otp_data`
,
ADD
`otp_attempts`
TINYINT
NOT
NULL
DEFAULT
'0'
AFTER
`otp_recovery`
;
ALTER
TABLE
`web_domain`
ADD
`statsdb_retention`
INT
(
11
)
UNSIGNED
NOT
NULL
DEFAULT
'0'
AFTER
`log_retention`
;
ALTER
TABLE
`web_domain`
ADD
`stats_anonymize_level`
INT
(
11
)
NOT
NULL
DEFAULT
'0'
AFTER
`statsdb_retention`
;
ALTER
TABLE
`client`
ADD
`limit_statsdb_retention`
INT
(
11
)
NOT
NULL
DEFAULT
'-1'
AFTER
`limit_openvz_vm_template_id`
;
ALTER
TABLE
`client_template`
ADD
`limit_statsdb_retention`
INT
(
11
)
NOT
NULL
DEFAULT
'-1'
AFTER
`limit_openvz_vm_template_id`
;
ALTER
TABLE
`client_template`
ADD
`limit_statsdb_retention`
INT
(
11
)
NOT
NULL
DEFAULT
'-1'
AFTER
`limit_openvz_vm_template_id`
;
\ No newline at end of file
interface/ssl/dhparam4096.pem
0 → 100644
View file @
b1c09ebe
-----BEGIN DH PARAMETERS-----
MIICCAKCAgEA//////////+t+FRYortKmq/cViAnPTzx2LnFg84tNpWp4TZBFGQz
+8yTnc4kmz75fS/jY2MMddj2gbICrsRhetPfHtXV/WVhJDP1H18GbtCFY2VVPe0a
87VXE15/V8k1mE8McODmi3fipona8+/och3xWKE2rec1MKzKT0g6eXq8CrGCsyT7
YdEIqUuyyOP7uWrat2DX9GgdT0Kj3jlN9K5W7edjcrsZCwenyO4KbXCeAvzhzffi
7MA0BM0oNC9hkXL+nOmFg/+OTxIy7vKBg8P+OxtMb61zO7X8vC7CIAXFjvGDfRaD
ssbzSibBsu/6iGtCOGEfz9zeNVs7ZRkDW7w09N75nAI4YbRvydbmyQd62R0mkff3
7lmMsPrBhtkcrv4TCYUTknC0EwyTvEN5RPT9RFLi103TZPLiHnH1S/9croKrnJ32
nuhtK8UiNjoNq8Uhl5sN6todv5pC1cRITgq80Gv6U93vPBsg7j/VnXwl5B0rZp4e
8W5vUsMWTfT7eTDp5OWIV7asfV9C1p9tGHdjzx1VA0AEh/VbpX4xzHpxNciG77Qx
iu1qHgEtnmgyqQdgCpGBMMRtx3j5ca0AOAkpmaMzy4t6Gh25PXFAADwqTs6p+Y0K
zAqCkc3OyX3Pjsm1Wn+IpGtNtahR9EGC4caKAH5eZV9q//////////8CAQI=
-----END DH PARAMETERS-----
\ No newline at end of file
interface/web/sites/templates/web_vhost_domain_edit.htm
View file @
b1c09ebe
...
...
@@ -66,6 +66,9 @@
</div>
</tmpl_unless>
</tmpl_if>
<tmpl_if
name=
"domain_option"
>
<input
type=
"hidden"
id=
"client_group_id"
name=
"client_group_id"
value=
"{tmpl_var name='client_group_id_value'}"
/>
</tmpl_if>
<div
class=
"form-group"
>
<label
for=
"ip_address"
class=
"col-sm-3 control-label"
>
{tmpl_var name='ip_address_txt'}
</label>
<div
class=
"col-sm-9"
><select
name=
"ip_address"
id=
"ip_address"
class=
"form-control"
>
...
...
interface/web/sites/web_vhost_domain_edit.php
View file @
b1c09ebe
...
...
@@ -725,6 +725,12 @@ class page_action extends tform_actions {
// remove the parent domain part of the domain name before we show it in the text field.
if
(
$this
->
dataRecord
[
"type"
]
==
'vhostsubdomain'
)
$this
->
dataRecord
[
"domain"
]
=
str_replace
(
'.'
.
$selected_domain
,
''
,
$this
->
dataRecord
[
"domain"
]);
// We have to set the client group id value as the client select field is hidden in this mode
if
(
$is_admin
)
{
$app
->
tpl
->
setVar
(
"client_group_id_value"
,
$this
->
dataRecord
[
"sys_groupid"
],
true
);
}
else
{
$app
->
tpl
->
setVar
(
"client_group_id_value"
,
$_SESSION
[
"s"
][
"user"
][
"default_group"
],
true
);
}
}
else
{
// remove the parent domain part of the domain name before we show it in the text field.
...
...
server/lib/classes/monitor_tools.inc.php
View file @
b1c09ebe
...
...
@@ -275,7 +275,6 @@ class monitor_tools {
}
}
//** RHEL (including compatible clones) & Fedora
elseif
(
file_exists
(
'/etc/redhat-release'
)
&&
file_exists
(
'/etc/os-release'
))
{
...
...
@@ -296,7 +295,7 @@ class monitor_tools {
$distver
=
'33'
;
$distid
=
'fedora33'
;
$distbaseid
=
'fedora'
;
//** RHEL 7 and compatible clones
//** RHEL 7 and compatible clones
}
elseif
(
preg_match
(
'/^(?:7|7\.[0-9]{1,2})$/'
,
$versionid
[
0
]))
{
preg_match_all
(
'/([0-9]{1,2})\.?([0-9]{0,2})\.?([0-9]*)/'
,
file_get_contents
(
'/etc/redhat-release'
),
$centos7_version
);
$distname
=
$name
[
0
];
...
...
@@ -309,6 +308,12 @@ class monitor_tools {
$distver
=
$version
[
0
];
$distid
=
'centos80'
;
$distbaseid
=
'fedora'
;
//** RHEL 9 and compatible clones
}
elseif
(
preg_match
(
'/^(?:9|9\.[0-9]{1,2})$/'
,
$versionid
[
0
]))
{
$distname
=
$name
[
0
];
$distver
=
$version
[
0
];
$distid
=
'centos90'
;
$distbaseid
=
'fedora'
;
}
else
{
$distname
=
'Redhat'
;
$distver
=
'Unknown'
;
...
...
@@ -316,41 +321,40 @@ class monitor_tools {
$distbaseid
=
'fedora'
;
}
//** CentOS 6
}
elseif
(
file_exists
(
'/etc/redhat-release'
)
&&
!
file_exists
(
'/etc/os-release'
)
&&
!
file_exists
(
'/etc/els-release'
))
{
$content
=
file_get_contents
(
'/etc/redhat-release'
);
if
(
stristr
(
$content
,
'CentOS Linux release 6'
)
||
stristr
(
$content
,
'CentOS release 6'
))
{
preg_match_all
(
'/(6\.?([0-9]{0,2})\.?(\s)?([a-zA-Z()]+))$/'
,
$content
,
$centos6_version
);
$distname
=
'CentOS Linux'
;