• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

cli

  1. Giu

    Question Restore Backup with API/CLI from remote Storage

    Hi, i have two questions: 1) there is no way with the xml api or the REST api to restore a backup from a remote storage right? 2) if so then i need to make use of the cli: pleskrestore: Restoration from Backup my question here is: will this cli restore automatically check for the remote...
  2. E

    Resolved Wordpress toolkit CLI, can't enable smart update from CLI

    Hi, I tried to enable smart updates with wordpress toolkit cli using this command: plesk ext wp-toolkit --smart-update -instance-id 1 (I changed instance-id for right wordpress installation using list command: plesk ext wp-toolkit --list) which I found from here...
  3. Z

    Question Restore Backup in CLI

    Hi to all. I try to restore website backup in CLI (i need this in future for Cronjob). The backup is saved locally on server. I'm trying to do this with the following command : plesk bin pleskrestore --restore /var/lib/psa/dumps/domains/imnserver.de/backup_user-data_2309141019.tzst -only-sites...
  4. M

    Question Did /usr/local/psa/bin/dns change in August?

    I have a script running some 4 years which removes a TXT-record and then adds a new one. It used the syntax: /usr/local/psa/bin/dns --del ${DOMAIN} -txt '' -domain ${SUBDOMAIN} Notice the double single quotes. I never gave it the TXT-value, but still the record was removed. I never tested if...
  5. B

    Resolved 503 error after changing php_handler_id for site

    Hi all, I have some PHP software that updates via a bash script. As part of that script I want to update the PHP handler for a given domain, I'm attempting to do that like so: plesk bin site -u "mydomain.com" -php_handler_id plesk-php82-fpm That command runs ok and I can see in the PHP...
  6. M

    Question How to provide CLI Commands with spaces

    Hi, it seems like Plesk CLI Commands are unable to process space characters in Parameters. For example: # plesk bin service_plan --info "Default Admin" An error occurred while getting the hosting plan information: Unknown option 'Admin': /usr/local/psa/bin/service_plan --info Default Admin I...
  7. K

    Question Question: allow_sendmail subscription status cli

    In certain situations we disable the option to allow websites to send e-mails, by disallowing use of sendmail. We use a script to automate this. The primary command of the script is: /usr/sbin/plesk bin subscription_settings -u domain.tld -outgoing_messages_enable_sendmail false This disables...
  8. M

    Question Global sttings of HSTS via CLI

    Hi, on my plesk admin-web-server I got many many Subscriptions. After a Server Issue I had to backup, but now all subscritions are not resolveable. I tested out why, its something with HSTS. A switch of will make everything fine. So is it possible to switch global all subscriptons on "false" via...
  9. R

    Question Lock Abonement via Console

    Hey, is it possible, that a customer can lock his subscription via console? Greetings
  10. A

    Resolved REST API /api/v2/cli/* returns 404

    Hi, Since I migrated my Plesk vm to a new IP, I realized the REST API calls to CLI returns 404: https://<IP_ADDRESS>:8443/api/v2/cli/commands/ returns 404 https://<host.domain.tld>:8443/api/v2/cli/commands/ returns 404 command curl -k -u 'admin:password' -X GET...
  11. E

    Question CLI - Get list of databases by domain

    Hello, Do you know if there's a way to get the list of databases associated with a domain from the CLI (Bash script)?
  12. Sven Wappler

    Question PHP CLI versions in chrooted environment

    Hello, first I would like to ask a question of understanding because I am new to Plesk users. I am a server administrator and PHP developer and would like to use Plesk as a reseller among other things. I am also looking for solutions for partner agencies. PHP software needs more and more access...
  13. M

    Question REST API One time login with redirect url

    I am trying to create an one time login that logins as an system user or redirect to a specific client or domain. In the XML API it can be done with server -> create_session, but how can i do it with the rest api (somewhere in cli??) Is it even possible??
  14. E

    Question Backup Database MS SQL Server by Command Line in windows

    Hi i use this command for backup MySQL Database in Plesk Obsidian and Windows Server 2016 : cd C:\Program Files (x86)\Plesk\mysql\bin mysqldump.exe -uMyUsername -pMySamplePassword -P3306 SampleDatabse > D:\BACKUP\MySQL\SampleDatabse.sql BUT i can not find command for Get Backup ( MS SQL...
  15. O

    Question changing virtual host directory

    Hello My virtual directory path currently is on "C" drive and I want to move it to "D" drive . The problem is that size of vhost directory is about 380 GB and I want a secure way to change the vhost directory. the size is huge , It causes my websites to be down for a long time. can I copy the...
  16. C

    Issue Installation without NGINX component

    Hello everyone! My first message in the forum, I hope to do well and that you can help me :) I have a virtual machine on HYPER-V in which I am trying to install Plesk without the NGINX module since I would like everything to be served by Apache. Product version: Plesk Obsidian 18.0.32.2 OS...
  17. D

    Question Plesk Backup CLI output to both Local storage + FTP

    It is obvious how to backup to both local storage and FTP via the web browser but, how do you do it from the command line? I can do it the hard way by specifying an output file in psa/dumps/backup-201234567.tar, Then use FTP to send it to the FTP server, then Untar it for local storage but...
  18. P

    Resolved Domain status disabled/suspended unclear

    Hi, I want to use CLI/bash to be able to enable, disable or suspend a domain. I am also trying to write a bash script that shows all enabled/disabled/suspended domains. There seems to be a problem with the domain status though, or maybe I am doing something wrong? I use "sudo plesk bin site...
  19. Sysop

    Question Check Plesk License Status from CLI

    I know there's the following command(s) to check an activation status: $ plesk bin license -c Although that doesn't return anything. There's also: $ plesk bin license -i <license> Which does return some information about a license when trying to install it, however, is it possible check without...
  20. nilsringersma_nl

    Input CLU utils notifications

    OS ‪CentOS Linux 7.7.1908 (Core)‬ Product Plesk Obsidian 18.0.19 My wish: Turn off all Plesk notifications to admin/reseller/client through CLI utilities. Used documentation: notification: Email Notification About System Events Input 1: # plesk bin notification --update -id 12 -send2reseller...
Back
Top