diff --git a/scripts/pmainstall.sh b/scripts/pmainstall.sh index deb01fe..17c3fcc 100644 --- a/scripts/pmainstall.sh +++ b/scripts/pmainstall.sh @@ -44,7 +44,6 @@ Listen 8080 sudo phpenmod mbstring sudo a2dismod php$PHP_VER sudo a2dismod mpm_prefork -sudo a2disconf php7.4-fpm sudo a2enmod mpm_event sudo a2enmod proxy sudo a2enmod proxy_fcgi @@ -66,6 +65,7 @@ sudo rm -rf /usr/share/phpmyadmin/phpMyAdmin-"$PMA_VER"-all-languages /usr/share randomBlowfishSecret=$(openssl rand -base64 22) sudo sed -e "s|cfg\['blowfish_secret'\] = ''|cfg['blowfish_secret'] = '$randomBlowfishSecret'|" /usr/share/phpmyadmin/config.sample.inc.php > /usr/share/phpmyadmin/config.inc.php sudo systemctl restart apache2 +sudo ufw allow 8080 echo -e "==================================================================" publicipaddress=$(curl -sS --connect-timeout 10 -m 60 https://ipv4.icanhazip.com/ || curl -sS --connect-timeout 10 -m 60 https://api.ipify.org ) intenalip=$(ip addr | grep -E -o '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' | grep -E -v "^127\.|^255\.|^0\." | head -n 1)