Skip to content

Commit b6ba7aa

Browse files
committed
A2 mpm_event migrate: mpm_itk has to be disabled before mpm_prefork
When rolling back on error, also disable mpm_event
1 parent e127acc commit b6ba7aa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

install/upgrade/manual/migrate_mpm_event.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ if ! apache2ctl configtest > /dev/null 2>&1; then
2424
echo "Apache2 configtest failed" && exit 1
2525
fi
2626

27-
a2modules="php5.6 php7.0 php7.1 php7.2 php7.3 php7.4 mpm_prefork mpm_itk ruid2"
27+
a2modules="php5.6 php7.0 php7.1 php7.2 php7.3 php7.4 ruid2 mpm_itk mpm_prefork"
2828
changed_a2modules=""
2929

3030
for module in $a2modules; do
@@ -39,6 +39,7 @@ cp -f /usr/local/hestia/install/deb/apache2/hestia-event.conf /etc/apache2/conf.
3939
# Check if all went well
4040
if ! apache2ctl configtest >/dev/null 2>&1; then
4141
echo "Something went wrong, rolling back. Please try to migrate manually to mpm_event."
42+
a2dismod -q mpm_event
4243
for module in $changed_a2modules; do
4344
a2enmod "$module"
4445
done

0 commit comments

Comments
 (0)