Plesk Port Check Script (for Linux)

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

 
  1. Save the script to a file: plesk-port-check.sh

  2. Make it executable before running it in the terminal:

    bash
    chmod +x plesk-port-check.sh
    
  3. Then run it:

    bash
    ./plesk-port-check.sh
    
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How Do I Create an Email Account in Plesk?

Creating an email account in Plesk Panel is easy and takes only a few steps. Here is a...

Creating a Subdomain in Plesk

Creating a subdomain in Plesk Panel means creating a separate web space under your main domain....

Editing DNS Records in Plesk

Editing DNS records in Plesk Panel lets you control how a domain is routed on the Internet. For...

Changing an Email Password in Plesk

Changing the password of an email address in Plesk Panel is easy. Here is how to do it step by...

How Do I Set Up an Autoresponder in Plesk?

Setting up an autoresponder for an email address in Plesk Panel lets you send automatic replies...