• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Use Plesk API for post install server configuring.

P

Patrick M

Guest
Hi,

I work on an environment where we build Virtuozzo containers with Plesk server installed on each instance. All the steps are done through the Virtuozzo API and Plesk API. Building the container and intalling Plesk 9.3 works great. My final step is to reset the admin password on the Plesk control panel in order to prevent anyone from guessing the IP address of the installed Plesk, and inputting the default user/pass (admin/setup) that are selected on installation.

My approach is to use the Plesk API and call the SetPassword command as follows:
<packet version="1.5.2.0">
<server>
<set>
<password> + newPassword + </password>
</set>
</server>
</packet>

When sending this command, I get the following error:
Plesk is not configured. You should go to the control panel for postinstall server configuring.

I understand that on a typical manual installation, you have to login using the default user/pass and setup some configuration. The post install wizard asks a few questions like the contact infos and such. But I really don't want to do this manually before i can change the admin password. Remember that this whole process is automatic and waiting for someone to complete this step manually is far from ideal.

Is there a way to bypass this check and change the admin password through the plesk API?
Is there a way to complete the post install process through Plesk API calls?
 
I just saw a button in Virtuozzo Linux PIM that can be used to change the admin password manually.

Go to the container's Software tab, click Control Panels, and click 'Manage' under Plesk control panel.
The next windows show a 'Log In to Plesk' and a 'Change password' link.

What I want it this same functionality through either the virtuozzo api or the plesk api.

Anybody has seen a way to do this?
Someone at parallels must know how to do it, since you implemented it...
 
Back
Top