Making it easier for when PHP updates come out.
This commit is contained in:
@ -51,6 +51,7 @@
|
|||||||
### ✔️ Update
|
### ✔️ Update
|
||||||
|
|
||||||
### `wget -O pmaupdate.sh https://sop.wtf/sh/pmaupdate && bash pmaupdate.sh`
|
### `wget -O pmaupdate.sh https://sop.wtf/sh/pmaupdate && bash pmaupdate.sh`
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## MongoDB
|
## MongoDB
|
||||||
|
@ -16,22 +16,22 @@ do
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
PHP_VER="8.2"
|
||||||
sudo apt update && apt upgrade -y
|
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 systemtl stop apache2
|
||||||
sudo apt install apache2 -y
|
sudo apt install apache2 -y
|
||||||
sudo apt install software-properties-common
|
sudo apt install software-properties-common
|
||||||
sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json php-curl -y
|
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 echo "Include /etc/phpmyadmin/apache.conf" >> /etc/apache2/apache2.conf
|
||||||
sudo phpenmod mbstring
|
sudo phpenmod mbstring
|
||||||
sudo a2dismod php8.2
|
sudo a2dismod php$PHP_VER
|
||||||
sudo a2dismod mpm_prefork
|
sudo a2dismod mpm_prefork
|
||||||
sudo a2enmod mpm_event
|
sudo a2enmod mpm_event
|
||||||
sudo a2enmod proxy
|
sudo a2enmod proxy
|
||||||
sudo a2enmod proxy_fcgi
|
sudo a2enmod proxy_fcgi
|
||||||
sudo a2enconf php8.2-fpm
|
sudo a2enconf php$PHP_VER-fpm
|
||||||
sudo systemctl restart php8.2-fpm
|
sudo systemctl restart php$PHP_VER-fpm
|
||||||
systemctl reload apache2
|
systemctl reload apache2
|
||||||
sudo systemctl enable apache2
|
sudo systemctl enable apache2
|
||||||
sudo apt autoremove -y
|
sudo apt autoremove -y
|
||||||
|
Reference in New Issue
Block a user