Getting Cgi Scripts To Work - Novell LINUX ENTERPRISE SERVER 10 SP2 - INSTALLATION AND ADMINISTRATION Installation Manual

Hide thumbs Also See for LINUX ENTERPRISE SERVER 10 SP2 - INSTALLATION AND ADMINISTRATION:
Table of Contents

Advertisement

module, -i installs it, and -a activates it). Other options of apxs2 are described in
the apxs2(1) man page.

40.5 Getting CGI Scripts to Work

Apache's Common Gateway Interface (CGI) lets you create dynamic content with
programs or scripts usually referred to as CGI scripts. CGI scripts can be written in any
programming language. Usually, script languages such as Perl or PHP are used.
To enable Apache to deliver content created by CGI scripts, mod_cgi needs to be acti-
vated. mod_alias is also needed. Both modules are enabled by default. Refer to Sec-
tion 40.4.2, "Activation and Deactivation" (page 764) for details on activating modules.
WARNING: CGI Security
Allowing the server to execute CGI scripts is a potential security hole. Refer to
Section 40.7, "Avoiding Security Problems" (page 779) for additional information.
40.5.1 Apache Configuration
In SUSE Linux Enterprise Server, the execution of CGI scripts is only allowed in the
directory /srv/www/cgi-bin/. This location is already configured to execute CGI
scripts. If you have created a virtual host configuration (see Section "Virtual Host
Configuration" (page 750)) and want to place your scripts in a host-specific directory,
you must unlock and configure this directory.
The Apache HTTP Server
771

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10 sp3

Table of Contents