#!/bin/bash while [ "$go" != 'y' ] && [ "$go" != 'n' ]; do read -p "Would you like to install phpMyAdmin? (y/n) " go done if [ "$go" == 'n' ]; then exit fi sudo apt update && apt upgrade -y sudo systemtl stop apache2 sudo apt install apache2 sudo apt install software-properties-common sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json php-curl -y 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 systemctl enable apache2 sudo systemctl start apache2