• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    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.

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