2.3 Configuring Perl for NetWare

Perl for NetWare can be configured through the following methods:

2.3.1 Configuring Perl through Apache 2.0

Perl for Apache 2.0 can be configured in either of the two methods mentioned below:

Configuring Perl CGI

Proceed with the following steps to configure Apache Web server for Perl.

  1. Open the file sys:apache2\conf\httpd.conf.

  2. Enter the following configuration details in httpd.conf file.

    <IfModule mod_cgi.c>
    ScriptAlias /perl sys:\perl\web
    
    CGIMAPExtension sys:/perl/Perlcgi/Perlcgi.nlm .pl
    
    </IfModule>
    

    NOTE:If the Perl scripts are kept in a different directory enter the corresponding path for ScriptAlias.

Configuring mod_perl

Perl works with the Apache Web Server using the mod_perl apache module. The configuration for this interface is provided in the sys:/apache2/conf/mod_perl.conf file.

To complete the configuration, add the following line in the sys:\apache2\conf\httpd.conf file.

include sys:\apache2\conf\mod_perl.conf

Restarting Apache 2.0

Execute the following command at server console to restart Apache Web Server on completion of the any of the above configurations:

ap2webrs

2.3.2 Configuring Perl through Command Line

The Perl command line scripts can be executed from the directory of your choice, either by setting the environment variable PERL_ROOT or by providing the complete path.

Type the following command at the console prompt:

env PERL_ROOT=SYS:\USER_DIRECTORY

where, USER_DIRECTORY is the directory where you have placed your scripts.

By default, the Perl scripts are placed in SYS:/PERL/SCRIPTS directory.