Theme editor

Guide Plesk Most Useful SSH Commands for Plesk Panel (2025 Guide)

  • Thread starter Thread starter CL4Y
  • Start date Start date
  • Views 159

CL4Y

Keyboard Ninja
Administrator
Thread owner
If you don’t have a Plesk license, you can manage your domains and server manually via SSH.

COMMANDDESCRIPTION
plesk bin domain –listList all domains
plesk bin domain –remove sub.example.comDeletes a subdomain
plesk bin domain –remove example.comDeletes a domain
plesk bin php_handler –listLists all PHP versions
plesk installer –select-release-current –install-component nginxInstalls Nginx
/usr/local/psa/admin/sbin/nginxmng –enableEnables Nginx
/usr/local/psa/admin/sbin/nginxmng –disableDisables Nginx
plesk repair all -yRepairs the entire Plesk configuration
plesk repair installationReconfigures the Plesk installation

If you want to quickly view all domains and their associated IP addresses on a Plesk server, use the following command:
Code:
plesk db "SELECT d.id AS 'Domain ID', d.name AS 'Domain', ipc.ipAddressId AS 'IP ID', ip.ip_address AS 'IPv4/IPv6' FROM domains d, DomainServices ds, IpAddressesCollections ipc, IP_Addresses ip WHERE d.id = ds.dom_id AND ds.type = 'web' AND ds.ipCollectionId = ipc.ipCollectionId AND ip.id = ipc.ipAddressId ORDER BY d.id ASC"

To create a complete hosting subscription:
Code:
plesk bin subscription --create example.com -owner admin -service-plan "Unlimited" -ip yourserverip -login username -passwd "password"
 
Back
Top