Update 'scripts/pmainstall.sh'
This commit is contained in:
parent
1d155fa80b
commit
402cb33cfe
|
@ -1,18 +1,19 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
while [ "$go" != 'y' ] && [ "$go" != 'n' ]; do
|
while [ "$go" != 'y' ] && [ "$go" != 'n' ]; do
|
||||||
read -p "Would you like to uninstall phpMyAdmin? (y/n) " go
|
read -p "Would you like to install phpMyAdmin? (y/n) " go
|
||||||
done
|
done
|
||||||
|
|
||||||
if [ "$go" == 'n' ]; then
|
if [ "$go" == 'n' ]; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
sudo apt update && apt upgrade -y
|
apt update && apt upgrade -y
|
||||||
sudo apt install apache2 -y
|
sudo apt install software-properties-common
|
||||||
sudo apt install software-properties-common -y
|
|
||||||
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 add-apt-repository ppa:ondrej/php
|
sudo add-apt-repository ppa:ondrej/php && apt install libapache2-mod-php8.1
|
||||||
|
sudo a2enmod php8.1
|
||||||
|
sudo echo "Include /etc/phpmyadmin/apache.conf" >> /etc/apache2/apache2.conf
|
||||||
sudo phpenmod mbstring
|
sudo phpenmod mbstring
|
||||||
sudo systemctl restart apache2
|
sudo systemctl restart apache2
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user