If you don’t have a Plesk license, you can manage your domains and server manually via SSH.
If you want to quickly view all domains and their associated IP addresses on a Plesk server, use the following command:
To create a complete hosting subscription:
| COMMAND | DESCRIPTION |
|---|---|
| plesk bin domain –list | List all domains |
| plesk bin domain –remove sub.example.com | Deletes a subdomain |
| plesk bin domain –remove example.com | Deletes a domain |
| plesk bin php_handler –list | Lists all PHP versions |
| plesk installer –select-release-current –install-component nginx | Installs Nginx |
| /usr/local/psa/admin/sbin/nginxmng –enable | Enables Nginx |
| /usr/local/psa/admin/sbin/nginxmng –disable | Disables Nginx |
| plesk repair all -y | Repairs the entire Plesk configuration |
| plesk repair installation | Reconfigures 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"