diff --git a/README.md b/README.md index dbb3804..d6fbd3b 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,7 @@ ### ✔️ Update ### `wget -O pmaupdate.sh https://sop.wtf/sh/pmaupdate && bash pmaupdate.sh` + --- ## MongoDB diff --git a/scripts/pmainstall.sh b/scripts/pmainstall.sh index a8aa4d4..04adbbe 100644 --- a/scripts/pmainstall.sh +++ b/scripts/pmainstall.sh @@ -16,22 +16,22 @@ do ;; esac done - +PHP_VER="8.2" sudo apt update && apt upgrade -y -sudo add-apt-repository --yes ppa:ondrej/php && apt install libapache2-mod-php8.2 php8.2-fpm -y +sudo add-apt-repository --yes ppa:ondrej/php && apt install libapache2-mod-php$PHP_VER php$PHP_VER-fpm -y sudo systemtl stop apache2 sudo apt install apache2 -y sudo apt install software-properties-common sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json php-curl -y sudo echo "Include /etc/phpmyadmin/apache.conf" >> /etc/apache2/apache2.conf sudo phpenmod mbstring -sudo a2dismod php8.2 +sudo a2dismod php$PHP_VER sudo a2dismod mpm_prefork sudo a2enmod mpm_event sudo a2enmod proxy sudo a2enmod proxy_fcgi -sudo a2enconf php8.2-fpm -sudo systemctl restart php8.2-fpm +sudo a2enconf php$PHP_VER-fpm +sudo systemctl restart php$PHP_VER-fpm systemctl reload apache2 sudo systemctl enable apache2 sudo apt autoremove -y