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

Table of Contents

Advertisement

Install and activate a module from source code with the commands cd
/path/to/module/source; apxs2 -cia mod_foo.c (-c compiles the
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
tion 40.4.2, "Activation and Deactivation"
WARNING: CGI Security
Allowing the server to execute CGI scripts is a potential security hole. Refer to
Section 40.7, "Avoiding Security Problems"
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
Configuration"
you must unlock and configure this directory.
764
Installation and Administration
(page 743)) and want to place your scripts in a host-specific directory,
(page 757) for details on activating modules.
(page 772) for additional information.
Section "Virtual Host
Sec-

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10

Table of Contents