From 949361f3c0bdbfb591541bc6fb6e9c32fccc9b8d Mon Sep 17 00:00:00 2001 From: Sophia Atkinson Date: Wed, 19 Oct 2022 20:30:04 -0700 Subject: [PATCH] Update 'scripts/pmainstall.sh' --- scripts/pmainstall.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/pmainstall.sh b/scripts/pmainstall.sh index 3f8e113..bc57949 100644 --- a/scripts/pmainstall.sh +++ b/scripts/pmainstall.sh @@ -23,11 +23,16 @@ sudo a2enmod mpm_event sudo a2enmod proxy sudo a2enmod proxy_fcgi sudo a2enconf php8.1-fpm - sudo systemctl restart php8.1-fpm sudo systemctl enable apache2 sudo systemctl restart apache2 +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) + echo "phpMyAdmin Should be available at http://${intenalip}/phpmyadmin" + echo "Or If you are using a VPS at http://${publicipaddress}:3000/phpmyadmin" +echo -e "=================================================================="