Plesk Port Check Script (for Linux)
bash
#!/bin/bash
# List of Plesk service ports
declare -A ports=(
["Plesk Panel HTTPS"]=8443
["Plesk Panel HTTP"]=8880
["Plesk Update"]=8447
["HTTP"]=80
["HTTPS"]=443
["FTP"]=21
["FTPS"]=990
["SMTP"]=25
["SMTP SSL"]=465
["SMTP TLS"]=587
["POP3"]=110
["POP3S"]=995
["IMAP"]=143
["IMAPS"]=993
["MySQL"]=3306
["PostgreSQL"]=5432
["DNS"]=53
["SSH"]=22
)
# Target IP (localhost by default)
target="127.0.0.1"
echo "🔍 Starting Plesk port check: $target"
echo "-------------------------------------------"
for service in "${!ports[@]}"; do
port=${ports[$service]}
timeout 2 bash -c "echo > /dev/tcp/$target/$port" 2>/dev/null
if [ $? -eq 0 ]; then
echo "✅ $service (Port $port) open"
else
echo "❌ $service (Port $port) closed or unreachable"
fi
done
echo "-------------------------------------------"
echo "🧠 Note: Closed ports may be caused by the firewall, service status or IP access restrictions."
📌 How to Use
-
Save the script to a file:
plesk-port-check.sh -
Make it executable before running it in the terminal:
bashchmod +x plesk-port-check.sh -
Then run it:
bash./plesk-port-check.sh
