irielogo.gif (1617 bytes)
Irie Tools

Irie Pascal

CGI
  Introduction
  Install
  Examples
  Links

Links

Pascal Search Engine


Join Mailing List

Do you want to receive email announcements about  important developments at Irie Tools? If so, please enter your email address below:

Apache (Windows)

This document describes the procedure for executing Irie Pascal CGI applications on Apache web servers. It is assumed that you have already installed a copy of the Irie Virtual Machine (IVM) interpreter on the web server.

Configuring Apache

First you need to configure Apache to recognize CGI applications. One popular choice is to configure Apache so that it assumes any file ending with .cgi is a CGI applications. Then you can make your Irie Pascal CGI applications end with .cgi and Apache will recognize them. For detailed information on how to configure Apache web servers go to the Apache home page, or try one of the recommended books at the end of this page.

Inserting the #! header

Next you need to tell Apache where to find the interpreter it needs to run your CGI applications. This is done by putting a header like

#!pathname

where "pathname" is the full name of the IVM interpreter.

in front of each of your Irie Pascal CGI applications. So for example if the interpreter is installed in C:\irie then you need to put the following header

#!c:\irie\ivm.exe

in front of each application. The #! header can be inserted by the IDE, the command-line compiler or by the Irie Pascal Header utility. Detailed information about this can be found in the Irie Pascal User's Manual, which is available here.

Uploading your CGI applications

If you are using a remote web server then you need to upload your CGI applications to the web server. Remember to always upload in binary mode.


Recommended Books


Next > Examples