Hi all,

I can't attach a file, so if the formatting of this is a little off, my apologies. The following is a setup guide for streaming using Apache on Windows 7, but should be generally applicable to any OS that can run Apache. The portions referencing the Studio need to be done on Windows. This also refers to streaming an SVM file, instead of a model. If you are unfamiliar with modelling, please review the user guide for more information, ask here on the forum, or if needed open an SR for assistance from the support team.

Spoon Standalone Server with Apache
This document outlines how to configure a Spoon Standalone Server with Apache as the webserver.

Step 1: Install and Configure Apache HTTP Server

This can be done on a Windows environment or any supported Operating System for Apache. This example will go through the process for a Windows 7 environment.
After the Apache is installed, verify that Apache is running by going to: http://localhost/

You should see a web page with the words “It works!” If you don’t see this, then Apache may not be running properly.

Note: This assumes Apache is listening on port 80, the default port for HTTP traffic.


Step 2: Install the Standalone Server files

The Standalone Server files are provided a in zip file (Streaming) on the download page.

1. Unzip the Standalone Server filesto a temporary folder on the system.
2. Go to the folder “htdocs” in the folder where Apache was installed.
a. In Windows default install: C:\Program Files\Apache Software Foundation\Apache2.2\htdocs
3. Create a folder called streaming.
4. Place all of the files and folders for the Standalone Server into the streaming folder.


Step 3: Configure the Standalone Server

1. Edit the file scripts\zenworks_config.js

// set ZENworks configuration variables
ZENworks_SiteRootUrl = 'http://localhost';
ZENworks_SiteRoot = '/streaming/';
ZENworks_PluginVersion = '3.32.3.28';


Note: The variable ZENworks_SiteRootUrl should have the fully qualified domain name for your server. In this example the test will only occur on the local system, so localhost is being used. If the server is accessed from another system, then the appropriate URL should be used.

2. Edit the file config\xvm.xml

<Configuration>
<Layers>
<Layer entry="True" type="Exe">http://localhost/streaming/layers/xvm/10-1-2269-0__0/xvm.exe</Layer>
</Layers>
<XStream>
<Buffering showUi="False" />
</XStream>
<Platform>
<Supported />
</Platform>
<Hosts />
</Configuration>

Step 4: Build the Application

1. Load the application configuration into ZAV Studio.
2. Select the Project type as Component to build an SVM file.
3. Copy the SVM file to the layers folder under htdocs\streaming

Note: For applications that are using a model (streaming), all of the model files would be copied into this folder instead of the SVM file.


Step 5: Generate a Site Certificate

1. Load the application configuration into ZAV Studio.
2. Click on the “Advanced” tab at the top.
3. Click on “Create Site Certificate”.
4. Enter the details for your site and click Create.
5. Save the certificate.xml file to the streaming folder under htdocs.


Step 6: Generate an App Configuration file

1. After creating the Site Certificate, click on the Create App Configuration button
2. Enter the details for the application.

Note: If the SVM file or XM file is not found at the specified URL an error will be thrown.

3. Click Create and save the XML file to the config folder.


Step 7: Edit the launch.html file

1. Find the launch.html file in the streaming folder
2. Change the HTML code to reference the application configuration.

<a href="#" onclick="OnRunClick('7Zip', false);return false;"><imgsrc="images/novell.png" border="0"></a>


Step 8: Test the application

Go to: http://localhost/streaming/launch.html