How to Build a Video Hosting Site on Your Windows 2003 Server

This tutorial guides you to use the Flash Video Encoder for Adobe Flash (Command-Line Version) to setup a video hosting site for instant video uploading, encoding and exhibition. To setup your video hosting site on a Windows 2003 Server,...
Method 1 of 5:

Setup on Windows 2003 Server

To setup your video hosting site on a Windows 2003 Server, please follow these steps:

  1. Step 1: Setup folders and files
  2. Step 2: Create Application Pool for the Web site
  3. Step 3: Configure the Web site
  4. Step 4: Create MIME Map for .flv files
  5. Step 5: Test your Web site
Method 2 of 5:

Setup folder and files

  1. Log on to your server with Administrator privilege.
  2. Download Flash Video Encoder and install it on your Web server.
  3. Find the file fvec-asp-demo.zip file in the installation folder of Flash Video Encoder for Adobe Flash (Command-Line Version); Open it with WinZip and extract the files to a sub-folder under your wwwroot folder, for example, c:inetpubwwwrootfvec.
  4. If you have changed the installation folder of Flash Video Encoder for Adobe Flash (Command-Line Version), you should open file fvec.asp and change the path to the correct one.
  5. How to Build a Video Hosting Site on Your Windows 2003 Server Picture 1How to Build a Video Hosting Site on Your Windows 2003 Server Picture 1
    Assign "full control" permission to account "IUSR_COMPUTERNAME" for folder"c:inetpubwwwrootfvecfiles". By default, video files uploaded by users and encoded *.flv files will be stored in this folder.
  6. Assign "full control" permission to account "IUSR_COMPUTERNAME" for file "c:inetpubwwwrootfvecfvec.mdb". In this demo site, we use Microsoft Access database to simplify the configuration. If you would like to use other databases, for example, SQL Server or Oracle, you can open the file db.inc and modify the database provider and connection string yourself.
  7. How to Build a Video Hosting Site on Your Windows 2003 Server Picture 2How to Build a Video Hosting Site on Your Windows 2003 Server Picture 2
    Open Command Prompt. Change the current directory to "c:inetpubwwwrootfvec" and register MyRequest.dll using regsvr32.exe. This will install a component for ASP to handle file uploading.
Method 3 of 5:

Create Application Pool for the Web site

  1. Open Internet Information Service Manager.
  2. How to Build a Video Hosting Site on Your Windows 2003 Server Picture 3How to Build a Video Hosting Site on Your Windows 2003 Server Picture 3
    Expand the "Internet Information Services (IIS) Manager" node. Right click the "Application Pools" node and select New > Application Pool.
  3. Give a name for the new Application Pool, for example, "MyAppPool" and click OK.
  4. Expand the "Application Pools" node, and right click "MyAppPool", select Properties.
  5. How to Build a Video Hosting Site on Your Windows 2003 Server Picture 4How to Build a Video Hosting Site on Your Windows 2003 Server Picture 4
    Click the "Identify" page, change the predefined security account from "Network Service" to "Local System" and click OK.
Method 4 of 5:

Configure the Web site

  1. Open Internet Information Service Manager.
  2. Expand the "Internet Information Services (IIS) Manager" node. Right click your Web site and select "Properties".
  3. Change the Execute permissions to "Scripts and Executables".
  4. How to Build a Video Hosting Site on Your Windows 2003 Server Picture 5How to Build a Video Hosting Site on Your Windows 2003 Server Picture 5
    Change the Application pool to "MyAppPool".
  5. Change the file uploading limitation of IIS. By default, IIS does not allow users to upload files larger than 200 KB.
    1. Open Internet Information Service Manager.
    2. Right click the "Internet Information Services (IIS) Manager" node and select "Properties". Select "Enable Direct Metabase Edit" and click OK.
      How to Build a Video Hosting Site on Your Windows 2003 Server Picture 6How to Build a Video Hosting Site on Your Windows 2003 Server Picture 6
    3. Open C:WINDOWSsystem32inetsrvMetabase.xml with a text editor; Find AspMaxRequestEntityAllowed and change its value to a proper value.
    4. Save Metabase.xml and restart IIS.
Method 5 of 5:

Create MIME Map for .flv files

  1. Select the site to configure in IIS, right click and select "Properties".
  2. How to Build a Video Hosting Site on Your Windows 2003 Server Picture 7How to Build a Video Hosting Site on Your Windows 2003 Server Picture 7
    Under HTTP Headers Tab, click the "MIME Types" button and select "New".
  3. How to Build a Video Hosting Site on Your Windows 2003 Server Picture 8How to Build a Video Hosting Site on Your Windows 2003 Server Picture 8
    Enter ".flv" as the extension and "video/x-flv" as the MIME type and click OK.
4 ★ | 1 Vote