的Plesk API shell访问 [英] plesk api shell access
本文介绍了的Plesk API shell访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试创建脚本来添加在Plesk中丝毫API的新领域,即时通讯写这个脚本:
i try create script to add new domain in plesk whit api, im write this script :
<packet version='1.4.2'>
<domain>
<add>
<gen_setup>
<name>domain.com</name>
<client_id>1</client_id>
<ip_address>127.0.0.1</ip_address>
<status>0</status>
</gen_setup>
<hosting>
<vrt_hst>
<ftp_login>username</ftp_login>
<ftp_password>password</ftp_password>
<php>true</php>
<ssi>true</ssi>
<cgi>true</cgi>
<php_safe_mode>false</php_safe_mode>
<ip_address>127.0.0.1</ip_address>
</vrt_hst>
</hosting>
</add>
</domain>
</packet>
脚本中添加新的域蝙蝠不工作ssh访问,我需要添加到这个脚本shell访问。感谢所有
The script add new domain bat not working ssh access, i need add shell access to this script. Thanks all
推荐答案
这要看的Plesk /协议版本。尝试添加&LT;壳&GT; /斌/ bash的&LT; /壳&gt;在
&LT; vrt_hst&GT; ...&LT; / vrt_hst&GT;
It depends on plesk/protocol version. Try to add <shell>/bin/bash</shell>
in <vrt_hst>...</vrt_hst>
下一页查询工程的Plesk 10/11:
Next query works for Plesk 10/11:
<packet version="1.6.3.0">
<webspace>
<add>
<gen_setup>
<name>example.com</name>
<owner-id>1</owner-id>
<htype>vrt_hst</htype>
<ip_address>10.0.0.1</ip_address>
<status>0</status>
</gen_setup>
<hosting>
<vrt_hst>
<property>
<name>shell</name>
<value>/bin/bash</value>
</property>
<property>
<name>ftp_login</name>
<value>ftp16se4fdf0</value>
</property>
<property>
<name>ftp_password</name>
<value>qweqwe</value>
</property>
<ip_address>10.0.0.1</ip_address>
</vrt_hst>
</hosting>
</add>
</webspace>
</packet>
这篇关于的Plesk API shell访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文