mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
Making sure Apache is in mpm_event mode
This commit is contained in:
parent
7391d3664d
commit
809b310a15
1 changed files with 28 additions and 0 deletions
|
@ -218,6 +218,34 @@ if [ ! -f "/usr/local/vesta/data/upgrades/apache_status_public_access" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Making sure Apache is in mpm_event mode
|
||||||
|
if [ ! -f "/usr/local/vesta/data/upgrades/apache_in_mpm_mode" ]; then
|
||||||
|
touch /usr/local/vesta/data/upgrades/apache_in_mpm_mode
|
||||||
|
|
||||||
|
check_grep=$(grep -c "WEB_SYSTEM='nginx'" /usr/local/vesta/conf/vesta.conf)
|
||||||
|
if [ "$check_grep" -eq 0 ]; then
|
||||||
|
if [ $release -eq 10 ]; then
|
||||||
|
if [ -f "/etc/apt/sources.list.d/php.list" ]; then
|
||||||
|
echo "=== Making sure Apache is in mpm_event mode"
|
||||||
|
a2dismod ruid2 > /dev/null 2>&1
|
||||||
|
a2dismod suexec > /dev/null 2>&1
|
||||||
|
a2dismod php5.6 > /dev/null 2>&1
|
||||||
|
a2dismod php7.0 > /dev/null 2>&1
|
||||||
|
a2dismod php7.1 > /dev/null 2>&1
|
||||||
|
a2dismod php7.2 > /dev/null 2>&1
|
||||||
|
a2dismod php7.3 > /dev/null 2>&1
|
||||||
|
a2dismod php7.4 > /dev/null 2>&1
|
||||||
|
a2dismod php8.0 > /dev/null 2>&1
|
||||||
|
a2dismod mpm_prefork > /dev/null 2>&1
|
||||||
|
a2enmod mpm_event > /dev/null 2>&1
|
||||||
|
apt-get -y remove libapache2-mod-php7.4 > /dev/null 2>&1
|
||||||
|
apt-get -y remove libapache2-mod-php8.0 > /dev/null 2>&1
|
||||||
|
service apache2 restart
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
# Run custom triggers
|
# Run custom triggers
|
||||||
if [ -x "/root/vesta-patch.sh" ]; then
|
if [ -x "/root/vesta-patch.sh" ]; then
|
||||||
/root/vesta-patch.sh
|
/root/vesta-patch.sh
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue