Documentation Center

Setting up Content Delivery for the sample single-machine installation

Use the PowerShell Content Delivery express installation script to install the SDL Web server-side Content Delivery microservices.

Procedure

  1. Open a Windows command prompt.
  2. Enter the following command:
    set JAVA_HOME="c:\Program Files\Java\jre.VERSION

    where VERSION is the specific version of Java 8 installed on your system, for example 1.8.0_112. (The Content Manager installer will have installed Java if you did not yet have it installed on your machine.)

  3. Open Windows Explorer.
  4. Create the folder c:\SDLCDinstall\.
  5. Access the SDL Web installation media.
  6. Go to the Content Delivery\ folder.
  7. Copy the resources\ folder with all of its contents, including subfolders, to c:\SDLCDinstall\.
  8. Create the folder c:\SDLCDinstall\roles\.
  9. On the installation media, navigate to the Content Delivery\roles\ folder.
  10. From the installation media, copy the following folders with all of their contents, including subfolders, into the c:\SDLCDinstall\roles\ folder:
    • context\
    • deployer\
    • discovery\
    • preview\
    • session\
  11. Go to c:\SDLCDinstall\resources\quickinstall\.
  12. Open setenv.ps1 in Notepad or another plain-text editor.
  13. Change the values of the following properties as indicated:
    PropertyValue
    $delivery_vars["CONTENT_DEFAULT_SERVER_NAME"]"localhost"
    $delivery_vars["CONTENT_DEFAULT_DATABASE_NAME"]"Tridion_Broker"
    $delivery_vars["CONTENT_DEFAULT_USER"]"TridionBrokerUser"
    $delivery_vars["CONTENT_DEFAULT_PASSWORD"]"tridion"
    $delivery_vars["PREVIEW_DEFAULT_SERVER_NAME"]"localhost"
    $delivery_vars["PREVIEW_DEFAULT_DATABASE_NAME"]"SDLWeb_xpm_sample"
    $delivery_vars["PREVIEW_DEFAULT_USER"]"TridionBrokerUser"
    $delivery_vars["PREVIEW_DEFAULT_PASSWORD"]"tridion"
    $delivery_vars["DEPLOYER_STATE_DEFAULT_SERVER_NAME"]"localhost"
    $delivery_vars["DEPLOYER_STATE_DEFAULT_DATABASE_NAME"]"Tridion_Broker"
    $delivery_vars["DEPLOYER_STATE_DEFAULT_USER"]"TridionBrokerUser"
    $delivery_vars["DEPLOYER_STATE_DEFAULT_PASSWORD"]"tridion"
  14. Save and close setenv.ps1.
  15. In Windows Explorer, create a new c:\SDL\ and a subfolder c:\SDL\Web\.
  16. From the folder that contains your license files, copy cd_licenses.xml to c:\SDL\Web\.
  17. Start PowerShell as an administrator-level user by right-clicking the PowerShell icon and selecting Run as administrator, even if you are already logged in to Windows as an administrator-level user.
    The PowerShell console opens.
  18. Enter the following command:
    Set-ExecutionPolicy Unrestricted

    Answer A (All) when prompted.

  19. Navigate to c:\SDLCDinstall\resources\quickinstall\
  20. Enter the following command:
    .\quickinstall.ps1 -enable-discovery -enable-context -enable-deployer-combined -enable-preview -enable-session -auto-register -discovery-url http://localhost:8082/discovery.svc
    The express installation script installs and registers the selected microservices. Disregard all warnings that appear.
  21. In Windows Explorer, go to c:\SDL\Web\discovery\config\.
  22. Open cd_storage_conf.xml in Notepad or another plain-text editor.
  23. Within the <Roles> section, insert the following child element:
    <Role Name="WebCapability" />
  24. Save and close cd_storage_conf.xml.
  25. In Windows Explorer, copy the file discovery-registration.jar from the folder c:\SDLCDinstall\roles\discovery\registration\ to the folder c:\SDL\Web\discovery\config\.
  26. In the Windows command prompt, go to c:\SDL\Web\discovery\config\.
  27. Run the following command:
    java -jar discovery-registration.jar update
  28. Remove the folder c:\SDLCDinstall\ to free up disk space on your machine.