[FIX] Error setting up hosting for a domain using Plesk RPC API

Article ID: 1115 
Last Review: Oct,6 2008
Author: Oleg Beznosov
Last updated by: system APPLIES TO:
  • Plesk 7.5.x for Windows
  • Plesk 7.6.x for Windows
  • Plesk 8.1 for Windows
  • Plesk 8.2 for Windows

Symptoms

When attempting to add hosting to a domain using the Plesk RPC API the following message is displayed:

Domain adding was failed. Error: Unable to update hosting preferences. Unable to create system user: Usage : usermng add 'user' 'password' 'homedir' usermng del 'user' 'homedir' ('homedir' MUST be in HTTPD_VHOST_D) usermng mod 'user' 'newuser' (homedirs is not modifying inside) usermng home 'user' 'homedir' (old homedir move to 'homedir') usermng shell 'user' ("Login Disabled" | "Login Enabled") usermng passwd 'user' 'password' usermng exist 'user' usermng quota 'user' 'quota' ('quota' set in bytes) usermng access (on|off) (users from stdin (delimiter - \\n) usermng --isquotable usermng --remove-all usermng --quota-state 'user'

Even though the same RPC packet works with Plesk for Linux.

Resolution

Most likely the Linux-format shell parameter is used:

Example:

<shell> /bin/false </shell>

On a windows machine this parameter takes different values:

"Login Disabled" 
or "Login Enabled"

Exapmle:

<shell> "Login Disabled" </shell>


Subscription for this article changesSubscription for this article changes

Please provide feedback on this article

Did this article help you solve your issue?
Yes
No
Partially
I do not know yet
 
Strongly Agree   Strongly Disagree
  9 8 7 6 5 4 3 2 1
The article is easy to understand
The article is accurate
Additional Comments:
*Please provide us with your email address in case we need to contact you.
* - required fields