thelinuxlist/scripts/pmainstall.sh

27 lines
457 B
Bash

#!/bin/bash
while [ "$go" != 'y' ] && [ "$go" != 'n' ]; do
read -p "Would you like to uninstall phpMyAdmin? (y/n) " go
done
if [ "$go" == 'n' ]; then
exit
fi
sudo apt update && apt upgrade -y
sudo apt install apache2 -y
sudo apt install software-properties-common -y
sudo apt install phpmyadmin php-mbstring php-zip php-gd php-json php-curl -y
sudo add-apt-repository ppa:ondrej/php
sudo phpenmod mbstring
sudo systemctl restart apache2