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 "=================================================================="