ASP

To install the integration script, perform the following steps:

1. Complete Plesk Sitebuilder setup and register the administrator account.

2. Configure IIS as follows:

  1. Create mapping between an IIS virtual folder and the working directory where the script will be deployed. For this, create a virtual folder in the IIS and then create a matching working folder, or map the IIS virtual folder to the already existing physical folder where the script must be deployed.
  2. Select the Run scripts (such as ASP) checkbox at the Virtual Directory Access permissions page.

3. Place the script to the working directory.

You have here two options:

Click the following link to retrieve the code: code sample.

4. Create the required plans in the Plesk Sitebuilder Administrator Panel.

5. Open TestSbIntegration.asp in a text editor and edit the following lines (11-13):

baseUrl="http://<sitebuilder-host>" 'base URL to Sitebuidler without end slash

adminLogin="admin" 'administrator login, it is required to authenticate API calls

adminPassword="admin" 'administrator password, it is required to authenticate API calls

6. In Plesk Sitebuilder Administrator Panel, open Server -> Trial Site Settings -> Publish step message and edit the message with the following text, specifying the correct path to TestIntegration.asp:

<p align=center>Your temporary site will be available for a sb:lifetime at sb:sitepreviewlink</p><hr><p align=center>If you want to save it, please <a href="http://<yourserver>/<yourpath>/TestSbIntegration.asp?siteId=sb:siteid">register</a></p>