Setup
This document outlines the details for setting up the most recent version of Exyus.
Requirements
There are very few requirements for installing and running Exyus.
- Windows XP, Windows 2003, Windows Vista (not yet tested)
- Internet Information Server 6.0
- ASP.NET 2.0
- ISAPI Rewrite 2.0
Exyus also uses the MVP XML Project.
Install
Installing Exyus is relatively straight-forward. The current version installs with some sample files that you can use to confirm the installation is working properly.
Setup File Space
The first step is to copy the physical Exyus runtime files onto the server. You also need to set up initial file rights for the folders within the runtime folder tree.
- Create a folder to hold the Exyus runtime files (
c:\exyus\
) - Copy the latest
exyus_runtime.zip
to the target server and expand the ZIP archive into the folder you created in step 1 (Figure 1) - Set the user access for the
storage
folder (Figure 2)- After expanding the folders from the archive into the target folder, locate the
storage
folder. - Right-click on the folder and select the "Proeprties" item from the context menu.
- On the "Security" tab, highlight the "Users" group and then check ON the "Modify" checkbox.
- Click "Apply" and "OK" to save the changes and close the dialog box.
- After expanding the folders from the archive into the target folder, locate the
Configure IIS
For this series of steps, you need to use the Internet Information Services Manager.
- Create the XCS Virtual Directory (Figure 3)
- Open the IIS Manager and expand the tree to find the root of your web server.
- Right-click over the root of the web and select "New..." and "Virtual Directory" from the context menu.
- Walk through the Virtual Directory Creation Wizard and create a VDir called "
xcs
" that points to the physical folder you created when you set up the Exyus file space. Be sure to check ON the "Run Scripts" checkbox.
-
Set the Application Name (Figure 4)
Right-click on thexcs
folder and press the "Create" button to mark the root folder as an application. - Set up URL Mapping (Figure 5)
- Right-click on the
xcs
folder and select "Properties" from the context menu - On the "Virtual Directory" tab, click on the "Configuration" button.
- On the "Application Configuration" dialog, select the "Mappings" tab.
- Click on the "Add" button to call up the "Add/Edit Application Extension Mapping" dialog.
- Enter the location of the ASP.NET 2.0 DLL in the "Executable" input box (
mark-root-folder-as-application
) - Enter "
.xcs
" in the "Extension" input box. - Check ON the "All Verbs" radio
- Check ON the "Scrtipt Engine" check box
- Check OFF the "Check that file exists" check box.
- Click "OK" three times to save your changes and close all the open dialog boxes.
- Right-click on the
- Set Security Access for the
xcs
folder (Figure 6)- Right-click over the
xcs
folder and select "Properties" from the context menu - Click on the "Directory Security" tab
- In the "Anonymous access and authentication control" section, click on the "Edit" button.
- Make sure only the "Anonymous Access" check box is checked ON. All other checkboxes should be checked OFF.
- Right-click over the
Edit Configuration Files
In this step, you need to edit several configuration files with a simple text editor.
- Edit the
web.config
file (Figure 7) - Using the File Explorer, locate the
web.config
file in thexcs
folder. - Open the
web.config
file with a text editor - Locate the
<systemUser>
element in the<exyusSecurity> section.
- Edit the value in this element to contain your own personal username and password.
- Save the changes and close the editor.
- Edit the
auth-users.xml
configuraiton file (Figure 8)- Using File Explorer, navigate to the
/config/
subfolder at the root of the web. - Open the
auth-users.xml
configuration file. - Update the first user in the file (
exyus
) by replacing theuser
andpassword
attributes with the values you entered in thesystemUser
element of thefile. - Save your changes and close the file.
- Using File Explorer, navigate to the
Configure ISAPI_Rewrite
The ISAPI_Rewirte tool is a third-party utility that works very much like the mod_rewrite tool for Apache servers. While no strictly required, this version of Exyus assumes that a URL rewriter is installed. You can download a free (for personal use) verison of the ISAPI_Rewrite tool and install it on your server. This section walks you through the details of adding rewrite rules needed for Exyus to work properly.
- Open the
httpd.ini
file for editing (Figure 9) - add the following two rules to the
httpd.ini
file:
# start exyus rules RewriteRule .*(?:/config/|/documents/|/storage/).* [F,I,O] RewriteRule (.*)/xcs/([^.?]*)(?:\.xcs)?(\?.*)? $1/xcs/$2.xcs$3 [L,I] # end exyus rules
- Save the changes and close the file.
Configure Samples
This installation of Exyus comes with a set of samples that you can use to
confirm the runtime is properly installed. All you need to do is make sure the samples are referenced
in the web.config
at the root of the application.
- Open and edit
web.config
at the root of thexcs
site (Figure 10) - In the <httpHandlers> section, make sure the following element is added:
<add verb="*" path="*.samples" type="Exyus.Samples.StaticExamples.samplesRoot,Exyus.Samples"/>
- Save the changes and close the file.
You can test your installation by pointing your web brower to the following URL:
http://localhost/xcs/samples/
You should see a list of links to other pages in the sample application.