Making it easier for when PHP updates come out.

This commit is contained in:
Sophia Atkinson 2023-01-16 20:34:04 -08:00
parent 81c1ce08a9
commit 135405249a
2 changed files with 6 additions and 5 deletions

View File

@ -51,6 +51,7 @@
### ✔️ Update
### `wget -O pmaupdate.sh https://sop.wtf/sh/pmaupdate && bash pmaupdate.sh`
---
## MongoDB

View File

@ -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