• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Resolved Please help me to run plesk cli on Debian

gmg777

New Pleskian
I have a problem using Plesk cli on Debian (OS: ‪Debian 10.8‬ Product: Plesk Obsidian 18.0.33 Update #1)
Server Administration Panel of Plesk works fine, no problem, but if I try to execute command on SSH - I get an error:

( execute commands as root)

root@hungry-carv:~# plesk
bash: plesk: command not found

root@hungry-carv:/usr/local/psa/bin# plesk
bash: plesk: command not found

root@hungry-carv:/opt/psa/bin# plesk
bash: plesk: command not found


I used the recommendations from this article, but this doesn't work in my case...
I understand that the problem is probably in the wrong path, but I could not find a solution in the documentation for Plesk....
 
Last edited:
Looks like a corrupted Plesk installation: not all the required Plesk packages are installed on the server.
  1. Download Plesk installer script:
    # wget https://autoinstall.plesk.com/plesk-installer
  2. Add executable permission to the downloaded script:
    # chmod +x ./plesk-installer
  3. Run the script and proceeded further on the menu to install the missing packages:
    # sh ./plesk-installer
 
I found a solution of this problem.
I did search for executable files and find correct path to Plesk CLI in my server - /usr/sbin/
Now CLI works fine:

root@hungry-carv:/# /usr/sbin/plesk
Usage: plesk [command]

Commands:
bin - Run the specified Plesk command-line utility (e.g., domain, client)
checkupgrade - Download the preupgrade checker for the latest, or specific Plesk version
conf - Open the specified Plesk configuration file in the editor
..............

OR

root@hungry-carv:/usr/sbin# ./plesk version
Product version: Plesk Obsidian 18.0.33.1
OS version: Debian 10.8 x86_64
Build date: 2021/02/25 14:00
............

I will be glad if this information helps someone.
 
Back
Top