Installing on your own IIS web server

Coordinator
Mar 28, 2011 at 2:21 PM
Edited Nov 1, 2013 at 9:00 AM
*These instructions are primarily for the ZIP file versions of AVFP setup. The Installer version of the setup automates most of these tasks.

Installing on your own IIS web server:
1.) IIS 6 (Windows 2003 Server) or higher is supported. 
Use ActiveVFP 6.03 for Windows VISTA or above
Use ActiveVFP 5.53(for ASP.NET 2.0) for Windows 2003 Server

2.) Unzip the ActiveVFP 5.61 zip file or the AVFP5.51 (for ASP.NET 2.0) zip file to its own folder.

3.)  IIS must be installed.  If it's not or you're not sure: From 'Control Panel\Install Programs', choose 'Turn Windows features on or off'. Choose 'Internet Information Services'. Press OK.

4.) ASP.NET and ASP must be enabled from Control Panel\Install Programs\Turn Windows Features on.  From Control Panel, Expand Internet Information Services, then World Wide Web Services, then Application Development Features.  Select ASP.net and ASP and then click OK.

5.) If you're running a 64-bit version of Windows you must enable 32 bit apps via IIS Manager (Application Pools/DefaultAppPool/Advanced Settings/Set Enable 32-bit applications to True) or issue the following command from Run or the CMD line(you must Run as Administrator):  %systemroot%\system32\inetsrv\APPCMD set apppool /apppool.name: "DefaultAppPool" /enable32bitapponwin64:true OR cscript %SYSTEMDRIVE%\inetpub\adminscripts\adsutil.vbs SET W3SVC/AppPools/Enable32bitAppOnWin64 1 

6.) In IIS Manager create an Application (Windows 7, Vista, or above)  or Virtual Directory (Windows 2003 Server) over the folder by right-clicking Default Web Site and taking the appropriate option.  If asked, give Write and Script permissions.  

7.) Optionally, apply write privileges in IIS Manager to the Data directory and the Temp directory if you intend to update data.

8.) To test from a web browser: http://localhost/<the virtual directory>/default.aspx (for example, http://localhost/regfreetest/default.aspx) for AVFP version 5.51 or http://localhost/<the virtual directory>/default.avfp for AVFP version 5.61

9.) To develop a new ActiveVFP web application, just create a file in Notepad or MS Expression saved with an .avfp extension (5.61) or as one of the HTML templates (5.51).  For example: hello world from  <%=version()%> <%=date()%> Save as helloworld.avfp (5.61) or Helloworld.htm (5.51) and call from any browser: http://localhost/demo/helloworld.avfp       (5.61) http://localhost/demo/default.aspx?action=helloworld    (5.51)  NOTE:  /prg/main.prg is where pre-processing and post processing occurs.  It can optionally be used when needed.

10.)  See the demo code.