↑ ↓ select, Enter open, Esc close

Plesk

Plesk Obsidian can be controlled almost entirely from the command line. Here are the commands for domains, subscriptions, repairs, updates and the Plesk database that would take several clicks in the panel.

48 one-liners: 35 harmless, 13 caution, 0 destructive

All Plesk one-liners

Back up a single domain with Plesk tools

#plesk bin pleskbackup --domains-name example.com --output-file=/root/backup-example.com.tar
caution

Change the password of a Plesk mailbox

#plesk bin mail --update info@example.com -passwd 'NewSecurePassword'
caution

Change the PHP version of a domain from the command line

#plesk bin domain --update example.com -php_handler_id plesk-php83-fpm
caution

Check if Plesk is listening on ports 8443 and 8880

#ss -tlnp | grep -E ':(8443|8880)\b'
harmless

Check the mail configuration in Plesk without changes

#plesk repair mail -n
harmless

Check the Plesk database for inconsistencies

#plesk repair db -n
harmless

Server is clean. Is the site?

How fast does the website really load?

GENLOC.SEO measures PageSpeed and Core Web Vitals on mobile and desktop and tells you clearly what to fix first. Free, no time limit.

by GENLOC.NETWORK, the team behind myline.de

Check the Plesk installation for errors without changes

#plesk repair all -n
harmless

Check the Plesk installer log after a failed update

#tail -n 100 /var/log/plesk/install/autoinstaller3.log
harmless

Check the status of the Plesk core services

#systemctl status sw-engine sw-cp-server psa --no-pager
harmless

Create a domain alias in Plesk from the command line

#plesk bin domalias --create example.de -domain example.com
caution

Create an email mailbox in Plesk from the command line

#plesk bin mail --create info@example.com -mailbox true -passwd 'NewSecurePassword'
caution

Disk usage of all webspaces under /var/www/vhosts

#du -sh /var/www/vhosts/*/ 2>/dev/null | sort -rh | head -20
harmless

Find the system user of each domain in Plesk

#plesk db "SELECT d.name, s.login FROM domains d JOIN hosting h ON h.dom_id = d.id JOIN sys_users s ON s.id = h.sys_user_id ORDER BY d.name"
harmless

Fix file permissions and ownership with plesk repair

#plesk repair fs example.com -y
caution

Follow the Plesk panel log in real time

#tail -f /var/log/plesk/panel.log
harmless

Generate a one-time login link for Plesk

#plesk login
harmless

Install a Plesk component from the command line

#plesk installer --select-product-id plesk --select-release-current --install-component php8.3
caution

Install Plesk updates from the command line

#plesk installer update
caution

List all customers in Plesk

#plesk bin customer --list
harmless

List all databases with their domain in Plesk

#plesk db "SELECT d.name AS domain, db.name AS datenbank, db.type FROM data_bases db JOIN domains d ON d.id = db.dom_id ORDER BY d.name, db.name"
harmless

List all domains of a Plesk subscription

#plesk db "SELECT d.name FROM domains d LEFT JOIN domains p ON p.id = d.webspace_id WHERE d.name = 'example.com' OR p.name = 'example.com' ORDER BY d.name"
harmless

List all domains on a Plesk server

#plesk bin domain --list
harmless

List all email addresses on a Plesk server

#plesk db "SELECT CONCAT(m.mail_name, '@', d.name) AS adresse, m.postbox FROM mail m JOIN domains d ON d.id = m.dom_id ORDER BY d.name, m.mail_name"
harmless

List all service plans in Plesk

#plesk bin service_plan --list
harmless

List all subscriptions in Plesk

#plesk bin subscription --list
harmless

List all WordPress installations in WP Toolkit

#plesk ext wp-toolkit --list
harmless

List available PHP handlers in Plesk

#plesk bin php_handler --list
harmless

List database servers registered in Plesk

#plesk db "SELECT id, host, port, type, admin_login FROM DatabaseServers"
harmless

List installed Plesk extensions

#plesk bin extension --list
harmless

List IP addresses registered in Plesk

#plesk bin ipmanage --ip_list
harmless

List the SSL certificates of a domain in Plesk

#plesk bin certificate --list -domain example.com
harmless

Mailbox disk usage per domain in Plesk

#du -sh /var/qmail/mailnames/*/ 2>/dev/null | sort -rh | head -20
harmless

Read hosting type and status of all domains from the Plesk database

#plesk db "SELECT name, htype, status FROM domains ORDER BY name"
harmless

Regenerate the web server configuration of a domain

#plesk sbin httpdmng --reconfigure-domain example.com
caution

Repair a domain's web server configuration with plesk repair

#plesk repair web example.com -y
caution

Reset the Plesk admin password from the command line

#plesk bin admin --set-admin-password -passwd 'NewSecurePassword'
caution

Restart the Plesk panel when the interface does not load

#systemctl restart sw-engine sw-cp-server
caution

Show custom Plesk settings in panel.ini

#cat /usr/local/psa/admin/conf/panel.ini
harmless

Show details and disk usage of a Plesk subscription

#plesk bin subscription --info example.com
harmless

Show details of a domain in Plesk

#plesk bin domain --info example.com
harmless

Show installed and available Plesk components

#plesk installer --select-product-id plesk --select-release-current --show-components
harmless

Show nginx errors of a Plesk domain (502, 504)

#tail -n 50 /var/www/vhosts/system/example.com/logs/proxy_error_log
harmless

Show the document root of all domains in Plesk

#plesk db "SELECT d.name, h.www_root FROM domains d JOIN hosting h ON h.dom_id = d.id ORDER BY d.name"
harmless

Show the error log of the Plesk panel web server sw-cp-server

#tail -n 50 /var/log/sw-cp-server/error_log
harmless

Show the installed Plesk version

#plesk version
harmless

Show the Plesk license and expiration date

#plesk bin keyinfo --list
harmless

Show the Web Application Firewall (ModSecurity) status in Plesk

#plesk bin server_pref --show-web-app-firewall
harmless

Suspend a subscription in Plesk

#plesk bin subscription --suspend example.com
caution

Read first, then run.

The commands on myline.de act directly on servers, files and databases. A wrong path or placeholder can delete data irreversibly or make a server unreachable.

  • All commands are provided without warranty and are not tested on every system.
  • Understand what a command does before running it, and check every placeholder.
  • Make a backup first and, if possible, try it on a test system.
  • You run commands at your own risk. Liability for damages is excluded to the extent permitted by law.