Perl for NetWare can be configured through the following methods:
Perl for Apache 2.0 can be configured in either of the two methods mentioned below:
Proceed with the following steps to configure Apache Web server for Perl.
Open the file sys:apache2\conf\httpd.conf.
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.
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
Execute the following command at server console to restart Apache Web Server on completion of the any of the above configurations:
ap2webrs
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.