Previous PageNext Page

2.3.1 Configuring Apache

The Chili!Soft ASP server links to the Apache Web server through Apache's module facility. See the following sections for instructions on installing Chili!Soft ASP for Apache Web server version 1.2.6, 1.3.3, 1.3.4, 1.3.6, 1.3.9, or 1.3.11 followed by instructions for modifying the Apache configuration files. For the most up-to-date information on using Chili!Soft ASP with the Apache Web server, please refer to the product README file.
 

Note:

If you are using Apache 1.3.3, 1.3.4, 1.3.6, 1.3.9, or 1.3.11 with DSO (Dynamic Shared Object) support enabled and you selected the DSO option during Chili!Soft ASP installation, you may not need to read this section. See the note below. All other Apache users should read this section.

Note:

If you are using the FrontPage Server extensions with your Apache Web server, or you are using a version of Apache not listed in this section, or you are using a modified version of Apache, and you are using DSO, the pre-compiled DSO modules provided by Chili!Soft may not work with your server. Instructions for building a new DSO module against your specific version of Apache are provided at the end of this section.

2.3.1.1 To install the Chili!Soft ASP module in Apache 1.2.6

  1. Copy the files module/source/build/mod_casp2.c and module/source/build/dispint.h from the subdirectory of the Chili!Soft ASP installation directory to the src subdirectory for your Apache source directory.
     
  2. Change to the src directory for your Apache installation.
    Using a text editor, open the file "Configuration".
    Find the line that reads:

    EXTRA_LIBS=


    and change it to read:

    EXTRA_LIBS=-ldl

    Move to the end of the file and add the following line:

    Module casp2_module mod_casp2.o


    make sure there is a tab between
    casp2_module and mod_casp2.o.
    Save the Configuration file and close it.
    Run the Configure script to add these changes to the Apache Makefile:

    #./Configure

    Make the new server by running make:

    #make


     
  3. When make finishes, a new web server (httpd) will be built.

2.3.1.2 To static link the Chili!Soft ASP module with Apache 1.3.3, 1.3.4, 1.3.6, 1.3.9, or 1.3.11 (No DSO support)

  1. Copy all of the files in the subdirectory module/source/build/ from the subdirectory of the Chili!Soft ASP installation directory to the src/modules/extra subdirectory of your Apache source directory.
     
  2. Change to the Apache source directory.
    Type the following command:

    #./configure --prefix=[WEB SERVER ROOT DIR] --activate-module=src/modules/extra/mod_casp2.c


    where [WEB SERVER ROOT DIR] is the root directory for your installed Web server.

    After the configure script is complete, edit src/Makefile with a text editor. Add "-ldl" to the EXTRA_LIBS section (without quotes).
    Return to the Apache install directory. Type:

    # make

    To copy all of the new Web server files to the appropriate location, type:

    # make install


     
  3. Installation is automatic. When the installation process is complete, restart your Web server.

2.3.1.3 Dynamically Linking the Chili!Soft ASP Module with Apache 1.3.3, 1.3.4, 1.3.6, 1.3.9, or 1.3.11 (Building a new DSO Module).

If you have not modified your Apache server with the FrontPage module or other modules, then the Chili!Soft ASP module configured by the install script should work fine. However, if your Apache server is not starting up properly and/or you have modified Apache with the FrontPage module or other modules, you may need to build a new DSO module for Chili!Soft ASP. The following steps assume you have already installed Chili!Soft ASP to your Apache Web server, using the Apache DSO option in the caspi installation script. It also assumes you have an Apache server that has DSO enabled.
 
  1. Type the following command:
     
  2. # [WEB SERVER ROOT DIR]/bin/apxs -c mod_casp2.c
    where [WEB SERVER ROOT DIR] is the root directory for your installed Web server.

     

    Next, type the following command:
    # [WEB SERVER ROOT DIR]/bin/apxs -i -a -n casp2 mod_casp2.so

    Repeat step 4 for each Apache Web server to which you have installed Chili!Soft ASP.


     
  3. Copy the generated mod_casp2.so library to the module/apache_1.3.x subdirectories of the Chili!Soft ASP installation directory.

 

2.3.1.4 Uninstalling Chili!Soft ASP

If you are uninstalling Chili!Soft ASP and your Apache Web server has DSO support, all you need to do is run the uninstall script provided. However, if you do not have DSO support for your Apache Web server, you will need to recompile the Web server after running the uninstall script.
 

Copyright © 2000 Chili!Soft

Previous PageTop Of PageNext Page