• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

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