Removing php8.1
This commit is contained in:
parent
73859156fd
commit
5f5e2dee15
|
@ -21,6 +21,7 @@ sudo apt update && apt upgrade -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 remove php8.1-fpm php8.1-* -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
|
||||
|
|
|
@ -20,8 +20,8 @@ PHP_VER="8.2"
|
|||
sudo apt update && apt upgrade -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 phpmyadmin php-mbstring php-zip php-gd php-json php-curl -y
|
||||
sudo apt remove php8.1-fpm php8.1-* -y
|
||||
sudo phpenmod mbstring
|
||||
sudo a2dismod php$PHP_VER
|
||||
sudo a2dismod mpm_prefork
|
||||
|
@ -44,10 +44,7 @@ sudo mkdir /usr/share/phpmyadmin/tmp/ && chmod -R 777 /usr/share/phpmyadmin/tmp/
|
|||
sudo rm -rf /usr/share/phpmyadmin/phpMyAdmin-"$PMA_VER"-all-languages /usr/share/phpmyadmin/phpMyAdmin-"$PMA_VER"-all-languages.tar.gz
|
||||
sudo systemctl restart apache2
|
||||
echo -e "=================================================================="
|
||||
publicipaddress=$(curl -sS --connect-timeout 10 -m 60 https://ipv4.icanhazip.com/ || curl -sS --connect-timeout 10 -m 60 https://api.ipify.org )
|
||||
intenalip=$(ip addr | grep -E -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | grep -E -v "^127\.|^255\.|^0\." | head -n 1)
|
||||
echo "phpMyAdmin Should be available at http://${intenalip}/phpmyadmin"
|
||||
echo "Or If you are using a VPS at http://${publicipaddress}/phpmyadmin"
|
||||
echo "phpMyAdmin has been updated!"
|
||||
echo -e "=================================================================="
|
||||
|
||||
|
||||
|
|
Reference in New Issue