diff --git a/scripts/pmainstall.sh b/scripts/pmainstall.sh index 25e4af0..8791211 100644 --- a/scripts/pmainstall.sh +++ b/scripts/pmainstall.sh @@ -22,7 +22,7 @@ done if [ "$go" == 'nginx' ]; then PHP_VER="8.2" sudo apt update && apt upgrade -y -sudo apt install software-properties-common -y && sudo add-apt-repository --yes ppa:ondrej/nginx-mainline && sudo apt install php$PHP_VER-fpm software-properties-common phpmyadmin php-mbstring php-zip php-gd php-json php-curl nginx -y +sudo apt install software-properties-common -y && sudo add-apt-repository --yes ppa:ondrej/php && sudo apt install php$PHP_VER-fpm software-properties-common phpmyadmin php-mbstring php-zip php-gd php-json php-curl nginx -y sudo systemctl stop nginx sudo apt remove php8.1-fpm php8.1-* -y sudo wget -O /etc/nginx/conf.d/phpmyadmin.conf https://git.oldgate.org/Sophia/thelinuxlist/raw/branch/main/conf/pmanginx.conf @@ -53,7 +53,7 @@ fi if [ "$go" == 'apache' ]; then PHP_VER="8.2" sudo apt update && apt upgrade -y -sudo add-apt-repository --yes ppa:ondrej/apache2 && apt install libapache2-mod-php$PHP_VER php$PHP_VER-fpm software-properties-common phpmyadmin php-mbstring php-zip php-gd php-json php-curl apache2 -y +sudo add-apt-repository --yes ppa:ondrej/php && apt install libapache2-mod-php$PHP_VER php$PHP_VER-fpm software-properties-common phpmyadmin php-mbstring php-zip php-gd php-json php-curl apache2 -y sudo systemctl stop apache2 sudo apt remove php8.1-fpm php8.1-* -y sudo wget -O /etc/apache2/sites-enabled/phpmyadmin.conf https://git.oldgate.org/Sophia/thelinuxlist/raw/branch/main/conf/pmaapache.conf