File tree Expand file tree Collapse file tree 2 files changed +40
-1
lines changed
Expand file tree Collapse file tree 2 files changed +40
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ All notable changes to this project will be documented in this file.
1010- Added Roundcube plugins newmail_notifier and zipdownload.
1111- Added HELO support for multiple domains and IPs.
1212- Added the possibility to manage ssh keys in the backend.
13- - Switched to mod_event instead mod_prefork for apache2.
13+ - Switched to mpm_event instead mod_prefork for apache2 on fresh installs.
14+ - Added a manual migration script for apache2 mpm_event ($HESTIA/install/upgrade/manual/migrate_mpm_event.sh).
1415
1516### Bugfixes
1617- Do not allow to show apache2 server-status page from public.
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # This script migrates your apache2 installation form mod_prefork to mpm_event.
4+
5+ # Includes
6+ source $HESTIA /conf/hestia.conf
7+
8+ # Check if apache2 is in use
9+ if [ " $WEB_SYSTEM " != " apache2" ]; then
10+ echo " Apache2 isnt installed on your system, canceling migration..."
11+ exit
12+ fi
13+
14+ # Check if mod_event is already enabled
15+ if apache2ctl -M | grep -q mpm_event_module; then
16+ echo " mod_event is already enabled, canceling migration..."
17+ exit
18+ fi
19+
20+ # Disable prefork and php, enable event
21+ a2dismod php5.6 > /dev/null 2>&1
22+ a2dismod php7.0 > /dev/null 2>&1
23+ a2dismod php7.1 > /dev/null 2>&1
24+ a2dismod php7.2 > /dev/null 2>&1
25+ a2dismod php7.3 > /dev/null 2>&1
26+ a2dismod php7.4 > /dev/null 2>&1
27+ a2dismod mpm_prefork > /dev/null 2>&1
28+ a2enmod mpm_event > /dev/null 2>&1
29+
30+ # Restart apache2 service
31+ systemctl restart apache2
32+
33+ # Check if all went well
34+ if apache2ctl -M | grep -q mpm_event_module; then
35+ echo " mpm_event module was successfully activated."
36+ else
37+ echo " Something went wrong, please try to migrate manualy to mpm_event."
38+ fi
You can’t perform that action at this time.
0 commit comments