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

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

Advertisement

The apxs2 binaries are located under /usr/sbin:
• /usr/sbin/apxs2—suitable for building an extension module that works with
any MPM. The installation location is /usr/lib/apache2.
• /usr/sbin/apxs2-prefork—suitable for prefork MPM modules. The instal-
lation location is /usr/lib/apache2-prefork.
• /usr/sbin/apxs2-worker—suitable for worker MPM modules.
apxs2 installs modules so they can be used for all MPMs. The other two programs
install modules so they can only be used for the respective MPMs. apxs2 installs
modules in /usr/lib/apache2, apxs2-prefork and apxs2-worker installs
modules in /usr/lib/apache2-prefork or /usr/lib/apache2-worker.
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"
766
Installation and Administration
(page 760) for details on activating modules.
(page 774) for additional information.
Sec-

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux enterprise server 10

Table of Contents