mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
Support for php8.0
This commit is contained in:
parent
bdaa3da310
commit
b2ddf443b8
1 changed files with 133 additions and 105 deletions
|
@ -10,6 +10,7 @@ inst_71=0
|
|||
inst_72=0
|
||||
inst_73=0
|
||||
inst_74=0
|
||||
inst_80=0
|
||||
|
||||
#######################################################################
|
||||
|
||||
|
@ -43,8 +44,11 @@ fi
|
|||
if [ $# -gt 6 ]; then
|
||||
inst_74=$7
|
||||
fi
|
||||
if [ $# -gt 7 ]; then
|
||||
inst_80=$8
|
||||
fi
|
||||
|
||||
if [ $inst_56 -eq 1 ] || [ $inst_70 -eq 1 ] || [ $inst_71 -eq 1 ] || [ $inst_72 -eq 1 ] || [ $inst_73 -eq 1 ] || [ $inst_74 -eq 1 ]; then
|
||||
if [ $inst_56 -eq 1 ] || [ $inst_70 -eq 1 ] || [ $inst_71 -eq 1 ] || [ $inst_72 -eq 1 ] || [ $inst_73 -eq 1 ] || [ $inst_74 -eq 1 ] || [ $inst_80 -eq 1 ]; then
|
||||
inst_repo=1
|
||||
fi
|
||||
|
||||
|
@ -71,6 +75,7 @@ echo "inst_71=$inst_71"
|
|||
echo "inst_72=$inst_72"
|
||||
echo "inst_73=$inst_73"
|
||||
echo "inst_74=$inst_74"
|
||||
echo "inst_80=$inst_80"
|
||||
echo "wait_to_press_enter=$wait_to_press_enter"
|
||||
|
||||
press_enter "=== Press enter to continue ==============================================================================="
|
||||
|
@ -228,6 +233,28 @@ if [ "$inst_74" -eq 1 ]; then
|
|||
press_enter "=== Press enter to continue ==============================================================================="
|
||||
fi
|
||||
|
||||
|
||||
if [ "$inst_80" -eq 1 ]; then
|
||||
press_enter "=== Press enter to install PHP 8.0 ==============================================================================="
|
||||
apt -y install php8.0-mbstring php8.0-bcmath php8.0-cli php8.0-curl php8.0-fpm php8.0-gd php8.0-intl php8.0-mysql php8.0-soap php8.0-xml php8.0-zip php8.0-memcache php8.0-memcached
|
||||
update-rc.d php8.0-fpm defaults
|
||||
a2enconf php8.0-fpm
|
||||
a2dismod php8.0
|
||||
apt-get -y remove libapache2-mod-php8.0
|
||||
systemctl restart apache2
|
||||
cp -r /etc/php/8.0/ /root/vst_install_backups/php8.0/
|
||||
wget -nv https://c.myvestacp.com/tools/apache-fpm-tpl/PHP-FPM-80.stpl -O /usr/local/vesta/data/templates/web/apache2/PHP-FPM-80.stpl
|
||||
wget -nv https://c.myvestacp.com/tools/apache-fpm-tpl/PHP-FPM-80.tpl -O /usr/local/vesta/data/templates/web/apache2/PHP-FPM-80.tpl
|
||||
wget -nv https://c.myvestacp.com/tools/apache-fpm-tpl/PHP-FPM-80.sh -O /usr/local/vesta/data/templates/web/apache2/PHP-FPM-80.sh
|
||||
wget -nv https://c.myvestacp.com/tools/apache-fpm-tpl/PHP-FPM-80-public.stpl -O /usr/local/vesta/data/templates/web/apache2/PHP-FPM-80-public.stpl
|
||||
wget -nv https://c.myvestacp.com/tools/apache-fpm-tpl/PHP-FPM-80-public.tpl -O /usr/local/vesta/data/templates/web/apache2/PHP-FPM-80-public.tpl
|
||||
wget -nv https://c.myvestacp.com/tools/apache-fpm-tpl/PHP-FPM-80-public.sh -O /usr/local/vesta/data/templates/web/apache2/PHP-FPM-80-public.sh
|
||||
chmod a+x /usr/local/vesta/data/templates/web/apache2/PHP-FPM-80.sh
|
||||
chmod a+x /usr/local/vesta/data/templates/web/apache2/PHP-FPM-80-public.sh
|
||||
press_enter "=== Press enter to continue ==============================================================================="
|
||||
fi
|
||||
|
||||
|
||||
apt update
|
||||
apt upgrade -y
|
||||
|
||||
|
@ -243,5 +270,6 @@ if [ $debian_version -eq 10 ]; then
|
|||
a2dismod php8.0
|
||||
a2dismod mpm_prefork
|
||||
a2enmod mpm_event
|
||||
apt-get -y remove libapache2-mod-php8.0
|
||||
service apache2 restart
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue