thelinuxlist/scripts/pmainstall.sh

28 lines
553 B
Bash
Raw Normal View History

2022-10-18 23:44:22 -07:00
#!/bin/bash
while [ "$go" != 'y' ] && [ "$go" != 'n' ]; do
2022-10-19 09:34:30 -07:00
read -p "Would you like to install phpMyAdmin? (y/n) " go
2022-10-18 23:44:22 -07:00
done
if [ "$go" == 'n' ]; then
exit
fi
2022-10-19 09:34:30 -07:00
apt update && apt upgrade -y
sudo apt install software-properties-common
2022-10-18 23:44:22 -07:00
sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json php-curl -y
2022-10-19 09:34:30 -07:00
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
2022-10-18 23:44:22 -07:00
sudo phpenmod mbstring
sudo systemctl restart apache2