cPAPI2 AddonDomain without FTP?
Hi,
In the cPanel UI we have the option to create an Addon Domain without creating an FTP account (default option). This means it's possible to add addon domains to a package with a FTP account limit of zero.
But running the cPAPI2 AddonDomain function on the same account fails, requiring a FTP account limit greater than zero.
Is there an extra parameter we can use with cPAPI2 AddonDomain function to bypass the FTP account limit?
[CODE=bash]cpanelresult:
apiversion: 2
data:
-
reason: You have exceeded the maximum allowed FTP (File Transfer Protocol) accounts.
result: 0
error: You have exceeded the maximum allowed FTP (File Transfer Protocol) accounts.
event:
result: 1
func: addaddondomain
module: AddonDomain
-
Hello,
This is a 5 years old threads resurrection, but the solution is to specify ftp_is_optional value when calling the API.
You have to put ftp_is_optional = 1.
I hope this will help someone one day.
0
Please sign in to leave a comment.
Comments
1 comment