Skip to content

Commit 01944de

Browse files
committed
Revert "Switch to mod_event for apache2 and drop Debian 8 support (EOL). This commit resolves hestiacp#839"
This reverts commit 87d2265.
1 parent 87d2265 commit 01944de

File tree

4 files changed

+58
-55
lines changed

4 files changed

+58
-55
lines changed

CHANGELOG.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ All notable changes to this project will be documented in this file.
99
- Added support for resolving ip addresses based on geoip database for Awstats
1010
- Added Roundcube plugins newmail_notifier and zipdownload.
1111
- Added HELO support for multiple domains and IPs.
12-
- Added the possibility to manage ssh keys in the backend.
13-
- Switched to mod_event instead mod_prefork for apache2.
12+
- Add the possibility to manage ssh keys in the backend.
1413

1514
### Bugfixes
1615
- Do not allow to show apache2 server-status page from public.
@@ -34,11 +33,10 @@ All notable changes to this project will be documented in this file.
3433
- Stop trying to renew LE certs after multiple consecutive failed attempts. Thanks to @dpeca!
3534
- Implement a validation function to verify the correct version in hestia.conf prior to install a new one.
3635
- Fix autologout issue on cloudflare proxy and rearange 2FA authentification part. Thanks to @rmj-s!
37-
- Roundcube fixes for PHP 7.4 compatibility..
38-
- Added delay when entering wrong username/password/2fa.
39-
- Improved "Forgot password" function prevent brute forcing.
40-
- Update Backup counter propperly when v-delete-user-backup ran.
41-
- Dropped support for Debian 8 according to EOL.
36+
- Roundcube fixes for PHP 7.4 compatibility.
37+
- Added delay when entering wrong username/password/2fa
38+
- Improved "Forgot password" function prevent brute forcing
39+
- Update Backup counter propperly when v-delete-user-backup ran
4240

4341
## [1.1.1] - 2020-03-24 - Hotfix
4442
### Features

install/hst-install-debian.sh

Lines changed: 38 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -29,39 +29,51 @@ multiphp_v=("5.6" "7.0" "7.1" "7.2" "7.3" "7.4")
2929
fpm_v="7.3"
3030
mariadb_v="10.4"
3131

32-
if [ "$release" -eq 9 ]; then
33-
software="nginx apache2 apache2-utils apache2-suexec-custom
34-
libapache2-mod-fcgid libapache2-mod-php$fpm_v php$fpm_v php$fpm_v-common
35-
php$fpm_v-cgi php$fpm_v-mysql php$fpm_v-curl php$fpm_v-pgsql
36-
php$fpm_v-imagick php$fpm_v-imap php$fpm_v-ldap php$fpm_v-apcu awstats
37-
php$fpm_v-zip php$fpm_v-bz2 php$fpm_v-cli php$fpm_v-gd php$fpm_v-intl
38-
php$fpm_v-json php$fpm_v-mbstring php$fpm_v-opcache php$fpm_v-pspell
39-
php$fpm_v-readline php$fpm_v-xml vsftpd proftpd-basic bind9 exim4
40-
exim4-daemon-heavy clamav-daemon spamassassin dovecot-imapd
41-
dovecot-pop3d roundcube-core net-tools roundcube-mysql roundcube-plugins
42-
mariadb-client mariadb-common mariadb-server postgresql
43-
postgresql-contrib phppgadmin phpmyadmin mc flex whois rssh git idn zip
44-
sudo bc ftp lsof ntpdate rrdtool quota e2fslibs bsdutils e2fsprogs curl
45-
imagemagick fail2ban dnsutils bsdmainutils cron hestia hestia-nginx
46-
hestia-php expect libmail-dkim-perl unrar-free vim-common acl sysstat
47-
rsyslog setpriv ipset"
48-
elif [ "$release" -eq 10 ]; then
32+
if [ "$release" -eq 8 ]; then
33+
software="nginx apache2 apache2-utils apache2.2-common
34+
apache2-suexec-custom libapache2-mod-ruid2
35+
libapache2-mod-fcgid libapache2-mod-php5 php5 php5-common php5-cgi
36+
php5-mysql php5-curl php5-pgsql awstats vsftpd net-tools
37+
php5-imagick proftpd-basic bind9 exim4 exim4-daemon-heavy clamav-daemon
38+
spamassassin dovecot-imapd dovecot-pop3d roundcube-core
39+
roundcube-mysql roundcube-plugins mariadb-client mariadb-common
40+
mariadb-server postgresql postgresql-contrib phppgadmin phpMyAdmin mc
41+
flex whois rssh git idn zip sudo bc ftp lsof ntpdate rrdtool quota
42+
e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
43+
bsdmainutils cron hestia hestia-nginx hestia-php expect libmail-dkim-perl
44+
unrar-free vim-common acl sysstat setpriv ipset"
45+
elif [ "$release" -eq 9 ]; then
4946
software="nginx apache2 apache2-utils apache2-suexec-custom
50-
apache2-suexec-pristine libapache2-mod-fcgid libapache2-mod-php$fpm_v
47+
libapache2-mod-ruid2 libapache2-mod-fcgid libapache2-mod-php$fpm_v
5148
php$fpm_v php$fpm_v-common php$fpm_v-cgi php$fpm_v-mysql php$fpm_v-curl
5249
php$fpm_v-pgsql php$fpm_v-imagick php$fpm_v-imap php$fpm_v-ldap
5350
php$fpm_v-apcu awstats php$fpm_v-zip php$fpm_v-bz2 php$fpm_v-cli
5451
php$fpm_v-gd php$fpm_v-intl php$fpm_v-json php$fpm_v-mbstring
5552
php$fpm_v-opcache php$fpm_v-pspell php$fpm_v-readline php$fpm_v-xml
56-
awstats vsftpd proftpd-basic bind9 exim4 exim4-daemon-heavy
53+
vsftpd proftpd-basic bind9 exim4 exim4-daemon-heavy clamav-daemon
54+
spamassassin dovecot-imapd dovecot-pop3d roundcube-core net-tools
55+
roundcube-mysql roundcube-plugins mariadb-client mariadb-common
56+
mariadb-server postgresql postgresql-contrib phppgadmin phpmyadmin mc
57+
flex whois rssh git idn zip sudo bc ftp lsof ntpdate rrdtool quota
58+
e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
59+
bsdmainutils cron hestia hestia-nginx hestia-php expect libmail-dkim-perl
60+
unrar-free vim-common acl sysstat rsyslog setpriv ipset"
61+
elif [ "$release" -eq 10 ]; then
62+
software="nginx apache2 apache2-utils apache2-suexec-custom
63+
apache2-suexec-pristine libapache2-mod-fcgid libapache2-mpm-itk
64+
libapache2-mod-php$fpm_v php$fpm_v php$fpm_v-common php$fpm_v-cgi
65+
php$fpm_v-mysql php$fpm_v-curl php$fpm_v-pgsql php$fpm_v-imagick
66+
php$fpm_v-imap php$fpm_v-ldap php$fpm_v-apcu awstats php$fpm_v-zip
67+
php$fpm_v-bz2 php$fpm_v-cli php$fpm_v-gd php$fpm_v-intl php$fpm_v-json
68+
php$fpm_v-mbstring php$fpm_v-opcache php$fpm_v-pspell php$fpm_v-readline
69+
php$fpm_v-xml awstats vsftpd proftpd-basic bind9 exim4 exim4-daemon-heavy
5770
clamav-daemon spamassassin dovecot-imapd dovecot-pop3d roundcube-core
58-
net-tools roundcube-mysql roundcube-plugins mariadb-client
59-
mariadb-common mariadb-server postgresql postgresql-contrib phpmyadmin
60-
phppgadmin mc flex whois git idn zip sudo bc ftp lsof ntpdate rrdtool
61-
quota e2fslibs bsdutils e2fsprogs curl imagemagick fail2ban dnsutils
62-
bsdmainutils cron hestia hestia-nginx hestia-php expect
63-
libmail-dkim-perl unrar-free vim-common acl sysstat rsyslog util-linux
64-
ipset"
71+
net-tools roundcube-mysql roundcube-plugins mariadb-client mariadb-common
72+
mariadb-server postgresql postgresql-contrib phpmyadmin phppgadmin mc
73+
flex whois git idn zip sudo bc ftp lsof ntpdate rrdtool quota e2fslibs
74+
bsdutils e2fsprogs curl imagemagick fail2ban dnsutils bsdmainutils cron
75+
hestia hestia-nginx hestia-php expect libmail-dkim-perl unrar-free
76+
vim-common acl sysstat rsyslog util-linux ipset"
6577
fi
6678

6779
# Defining help function

install/hst-install-ubuntu.sh

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,16 @@ software="apache2 apache2.2-common apache2-suexec-custom apache2-utils
3535
cron curl dnsutils dovecot-imapd dovecot-pop3d e2fslibs e2fsprogs exim4
3636
exim4-daemon-heavy expect fail2ban flex ftp git idn imagemagick
3737
libapache2-mod-fcgid libapache2-mod-php$fpm_v libapache2-mod-rpaf
38-
lsof mc mariadb-client mariadb-common mariadb-server nginx ntpdate
39-
php$fpm_v php$fpm_v-cgi php$fpm_v-common php$fpm_v-curl phpmyadmin
40-
php$fpm_v-mysql php$fpm_v-imap php$fpm_v-ldap php$fpm_v-apcu phppgadmin
41-
php$fpm_v-pgsql php$fpm_v-zip php$fpm_v-bz2 php$fpm_v-cli php$fpm_v-gd
42-
php$fpm_v-imagick php$fpm_v-intl php$fpm_v-json php$fpm_v-mbstring
43-
php$fpm_v-opcache php$fpm_v-pspell php$fpm_v-readline php$fpm_v-xml
44-
postgresql postgresql-contrib proftpd-basic quota roundcube-core
45-
roundcube-mysql roundcube-plugins rrdtool rssh spamassassin sudo hestia
46-
hestia-nginx hestia-php vim-common vsftpd whois zip acl sysstat setpriv
47-
libonig5 ipset"
38+
libapache2-mod-ruid2 lsof mc mariadb-client mariadb-common mariadb-server
39+
nginx ntpdate php$fpm_v php$fpm_v-cgi php$fpm_v-common php$fpm_v-curl
40+
phpmyadmin php$fpm_v-mysql php$fpm_v-imap php$fpm_v-ldap php$fpm_v-apcu
41+
phppgadmin php$fpm_v-pgsql php$fpm_v-zip php$fpm_v-bz2 php$fpm_v-cli
42+
php$fpm_v-gd php$fpm_v-imagick php$fpm_v-intl php$fpm_v-json
43+
php$fpm_v-mbstring php$fpm_v-opcache php$fpm_v-pspell php$fpm_v-readline
44+
php$fpm_v-xml postgresql postgresql-contrib proftpd-basic quota
45+
roundcube-core roundcube-mysql roundcube-plugins rrdtool rssh spamassassin
46+
sudo hestia hestia-nginx hestia-php vim-common vsftpd whois zip acl sysstat
47+
setpriv libonig5 ipset"
4848

4949
# Defining help function
5050
help() {
@@ -722,6 +722,7 @@ if [ "$apache" = 'no' ]; then
722722
software=$(echo "$software" | sed -e "s/apache2-utils//")
723723
software=$(echo "$software" | sed -e "s/apache2-suexec-custom//")
724724
software=$(echo "$software" | sed -e "s/apache2.2-common//")
725+
software=$(echo "$software" | sed -e "s/libapache2-mod-ruid2//")
725726
software=$(echo "$software" | sed -e "s/libapache2-mod-rpaf//")
726727
software=$(echo "$software" | sed -e "s/libapache2-mod-fcgid//")
727728
software=$(echo "$software" | sed -e "s/libapache2-mod-php$fpm_v//")
@@ -1178,22 +1179,14 @@ fi
11781179

11791180
if [ "$apache" = 'yes' ]; then
11801181
echo "(*) Configuring Apache Web Server..."
1181-
1182-
# Copy configuration files
11831182
cp -f $HESTIA_INSTALL_DIR/apache2/apache2.conf /etc/apache2/
11841183
cp -f $HESTIA_INSTALL_DIR/apache2/status.conf /etc/apache2/mods-enabled/
11851184
cp -f $HESTIA_INSTALL_DIR/logrotate/apache2 /etc/logrotate.d/
1186-
1187-
# Enable needed modules
11881185
a2enmod rewrite > /dev/null 2>&1
11891186
a2enmod suexec > /dev/null 2>&1
11901187
a2enmod ssl > /dev/null 2>&1
11911188
a2enmod actions > /dev/null 2>&1
1192-
1193-
# Disable prefork, enable event
1194-
a2dismod mpm_prefork > /dev/null 2>&1
1195-
a2enmod mpm_event > /dev/null 2>&1
1196-
1189+
a2enmod ruid2 > /dev/null 2>&1
11971190
mkdir -p /etc/apache2/conf.d
11981191
mkdir -p /etc/apache2/conf.d/domains
11991192
echo "# Powered by hestia" > /etc/apache2/sites-available/default

install/hst-install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66
# Currently Supported Operating Systems:
77
#
8-
# Debian 9, 10
8+
# Debian 8, 9, 10
99
# Ubuntu 16.04, 18.04, 20.04
1010
#
1111

@@ -61,7 +61,7 @@ no_support_message(){
6161
echo "Your operating system (OS) is not supported by"
6262
echo "Hestia Control Panel. Officially supported releases:"
6363
echo "****************************************************"
64-
echo " Debian 9, 10"
64+
echo " Debian 8, 9, 10"
6565
echo " Ubuntu 16.04 LTS, 18.04, 20.04 LTS"
6666
echo ""
6767
exit 1;
@@ -99,7 +99,7 @@ check_wget_curl(){
9999

100100
# Check for supported operating system before proceeding with download
101101
# of OS-specific installer, and throw error message if unsupported OS detected.
102-
if [[ "$release" =~ ^(9|10|16.04|18.04|20.04)$ ]]; then
102+
if [[ "$release" =~ ^(8|9|10|16.04|18.04|20.04)$ ]]; then
103103
check_wget_curl $*
104104
else
105105
no_support_message

0 commit comments

Comments
 (0)