Plesk: Wichtige Befehle für das Commandline Tool %plesk_bin%

Rekonfigurieren einer Domain

Standardpfad zur Pleskinstallation

%plesk_bin%

C:\Program Files (x86)\Parallels\Plesk\admin\bin

 

CMD:

%plesk_bin%“\websrvmng.exe –remove-vhost –vhost-name=testdomain.com

%plesk_bin%“\websrvmng.exe –reconfigure-vhost –vhost-name=testdomain.com

%plesk_bin%“\websrvmng.exe –reconfigure-all

Zum Reconfigurien der FTP Zugänge

%plesk_bin%“\ftpmng.exe –remove-vhost –vhost-name=yourdomain.com
%plesk_bin%“\ftpmng.exe –reconfigure-vhost –vhost-name=yourdomain.com

Für alle Domains

„%plesk_bin%“\ftpmng.exe –remove-all
„%plesk_bin%“\ftpmng.exe –reconfigure-all

Komplette Reference

–help

–features

–status
–start
–stop
–restart

–install
–uninstall

–reconfigure-all
–remove-all

–add-ip-address –ip-address=<ip_address>
–remove-ip-address –ip-address=<ip_address>
–change-ip-address  –old-ip-address=<ip_address> –new-ip-address=<ip_address>

–set-certificate –ip-address=<ip>

–add-domain –domain-name=<domain>
–remove-domain  –domain-name=<domain>

–set-default-domain –ip-address=<ip> –vhost-name=<domain>
–reset-default-domain –ip-address=<ip>

–add-alias  –domain-name=<domain> –alias-name=<alias> [–web] [–mail]
–remove-alias  –domain-name=<domain> –alias-name=<alias> [–web] [–mail]
–rename-alias  –domain-name=<domain> –old-alias-name=<alias> –new-alias-name [–web] [–mail]
–change-alias-type –domain-name=<domain> –alias-name=<alias>
[–old-web] [–old-mail]
[–new-web] [–new-mail]

–install-vhost –vhost-name=<domain>
–reconfigure-vhost –vhost-name=<domain> [–config=<xml>]
–reconfigure-vhosts –vhost-names=<dom1[;dom2;…]>
–remove-vhost –vhost-name=<domain>
–rename-vhost –old-name=<old_domain> –new-name=<new_domain>
–start-vhost –vhost-name=<domain>
–stop-vhost  –vhost-name=<domain>
–set-vhost-mime-types –vhost-name=<domain> –mime-types=<ext=type;…>
–get-vhost-mime-types –vhost-name=<domain>
–get-vhost-log-dir –vhost-name=<domain>
–get-vhost-default-doc –vhost-name=<domain>
–get-vhost-performance –vhost-name=<domain>
–set-vhost-performance –vhost-name=<domain> –bandwidth=<bandwidth> –max-connections=<max_connections>

–add-subdomain –vhost-name=<domain> –subdomain=<subdomain>
–update-subdomain –vhost-name=<domain> –subdomain=<subdomain> [–config=<xml>]
–remove-subdomains –vhost-name=<domain> [–subdomains=<sub1[;sub2;…]>]
–rename-subdomain –vhost-name=<domain> –old-name=<old_sub> –new-name=<new_sub>
–start-subdomain –vhost-name=<domain> –subdomain=<subdomain>
–stop-subdomain –vhost-name=<domain> –subdomain=<subdomain>
–get-subdomain-performance –vhost-name=<domain> –subdomain=<subdomain>
–set-subdomain-performance –vhost-name=<domain> –subdomain=<subdomain>
–bandwidth=<bandwidth> –max-connections=<max_connections>

–add-web-user  –vhost-name=<domain> –web-user=<user> [–no-default-pages]
–update-web-user –vhost-name=<domain> –web-user=<user>
–update-web-users –vhost-name=<domain>
–remove-web-users  –vhost-name=<domain> [–web-users=<user1[;user2;…]>]

–add-fp-user –vhost-name=<domain> –fp-user=<user>
–rename-fp-user  –vhost-name=<domain> –old-user=<user> –new-user=<user>
–remove-fp-user –vhost-name=<domain> –fp-user=<user>]
–update-fp-mail-settings  –domain-name=<domain>
–update-fp-settings –domain-name=<domain> [–subdomain=<sub>]

–list-wellknown-content-types
–get-mime-types –vhost-name=<vhost> [–vdir-name=<vdir>]
–set-mime-types –vhost-name=<vhost> –mime-types=<ext=type;…> [–vdir-name=<vdir>]
–set-global-mime-type –extension=<ext> –type=<type>

–get-error-docs –vhost-name=<vhost> [–vdir-name=<vdir>]
–set-error-docs –vhost-name=<vhost> –error-docs=<xml> [–vdir-name=<vdir>]

–exists-vdir –vhost-name=<vhost> [–vdir-name=<vdir>]
–get-vdir –vhost-name=<vhost> [–vdir-name=<vdir>]
–add-vdir –vhost-name=<vhost> –vdir-config=<xml> [–parent-vdir=<vdir>]
–update-vdir –vhost-name=<vhost> –vdir-config=<xml> [–parent-vdir=<vdir>]
–remove-vdir –vhost-name=<vhost> –vdir-name=<vdir>
–rename-vdir –vhost-name=<vhost> –old-name=<old_vdir> –new-name=<new_vdir>
–get-vdir-subtree –vhost-name=<vhost> [–vdir-name=<vdir>]

–list-wdirs  –vhost-name=<vhost> [–wdir-name=<wdir>]
–remove-wdir –vhost-name=<vhost> –wdir-name=<wdir>
–rename-wdir –vhost-name=<vhost> –old-name=<old_wdir> –new-name=<new_wdir>

–add-extension  –file=<file> –description=<description> [–group=<group>]
–remove-extension  –file=<file>
–allow-extension –file=<file>
–prohibit-extension –file=<file>

–add-protection –vhost-name=<domain> –directory=<dir> [–subdomain=sub]
–update-protection –vhost-name=<domain> –directory=<dir> [–subdomain=sub]
–remove-protections  –vhost-name=<domain> [–directories=<dir1[;dir2;…]>] [–subdomain=sub]

–change-admin-email –email=<admin_email>

–reconfigure-webmail [–webmail=<type>]
–update-webmail-link –domain-name=<domain>

–reconfigure-sqladmin
–update-sqladmin-link –domain-name=<domain>

–reconfigure-sitebuilder
–update-sitebuilder-link –domain-name=<domain>

–update-anon-password –domain-name=<domain>
–update-anon-passwords-all

–get-scripts –vhost-name=<vhost> –app-name=<vdir>
–set-scripts –vhost-name=<vhost> –app-name=<vdir> –scripts=<xml>

–remove-sites-cache

–update-www-prefix –domain-name=<domain> [–subdomain=<sub>]

–set-aspmaxbody –vhost-name=<vhost> –vdir-name=<vdir> [–value=<value of AspMaxRequestEntityAllowed IIS property>]
–set-aspmaxbuffer  –vhost-name=<vhost> –vdir-name=<vdir> [–value=<value of AspBufferingLimit IIS property>]
–get-aspmaxbody –vhost-name=<vhost> –vdir-name=<vdir>
–get-aspmaxbuffer –vhost-name=<vhost> –vdir-name=<vdir>

–set-aspenableserverdebug –vhost-name=<vhost> –vdir-name=<vdir> [–value=<true|false>]
–set-aspenableclientdebug  –vhost-name=<vhost> –vdir-name=<vdir> [–value=<true|false>]
–get-aspenableserverdebug –vhost-name=<vhost> –vdir-name=<vdir>
–get-aspenableclientdebug –vhost-name=<vhost> –vdir-name=<vdir>